diff options
author | Thore Bödecker <me@foxxx0.de> | 2022-06-26 11:21:59 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2022-06-26 11:41:32 +0200 |
commit | 836240e023df6ea5680c52cc2e59f7c86e79f3ad (patch) | |
tree | dce34d22e37d3eee8754a8511fe04bfb6cd57953 /fb.py | |
parent | 75da052b8093ea96f68702a1e7cbf628d8d8869b (diff) |
add wl-clipboard support for waylandv2.2.0
Diffstat (limited to 'fb.py')
-rwxr-xr-x | fb.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -401,6 +401,8 @@ class ConfigParser: self.config["clipboard_cmd"] = "xclip" if os.uname()[0] == "Darwin": self.config["clipboard_cmd"] = "pbcopy" + elif os.environ.get('XDG_SESSION_TYPE') == 'wayland': + self.config["clipboard_cmd"] = "wl-copy" self.config["apikey_file"] = os.path.join(xdg.BaseDirectory.xdg_config_home, "fb-client/apikey") self._parse(file, ignoreMissing=ignoreMissing) |