From 220f672406719786b48e7cc057223f2d18028913 Mon Sep 17 00:00:00 2001 From: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Date: Fri, 6 Aug 2021 19:02:35 -0300 Subject: [PATCH] add clipboard manager --- .config/qtile/autostart.sh | 3 +++ .config/qtile/config.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.config/qtile/autostart.sh b/.config/qtile/autostart.sh index ae4434d..caddd8c 100755 --- a/.config/qtile/autostart.sh +++ b/.config/qtile/autostart.sh @@ -12,6 +12,9 @@ picom --experimental-backends & # Start notification server dunst & +# Start clipboard manager +greenclip daemon & + # Display background image nitrogen --restore diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 776210e..06a353c 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -21,6 +21,7 @@ TERMINAL = "alacritty" LAUNCHER = "rofi -show drun" WEB = "firefox" FILE_MANAGER = "nautilus -w" +CLIPBOARD_MANAGER = "rofi -modi \"clipboard:greenclip print\" -show clipboard -run-command '{cmd}'" SCREENSHOT = "gnome-screenshot" SCREENSHOT_UTILITY = "gnome-screenshot -i" POWER_MENU = os.path.expanduser( @@ -79,6 +80,8 @@ keys = [ Key([MOD], "BackSpace", lazy.spawn(POWER_MENU), desc="Open power menu"), Key([], "Print", lazy.spawn(SCREENSHOT), desc="Take a screenshot of all the screens"), Key([MOD], "Print", lazy.spawn(SCREENSHOT_UTILITY), desc="Open screenshot utility"), + # Clipboard + Key([MOD, "shift"], "c", lazy.spawn(CLIPBOARD_MANAGER), desc="Launch clipboard manager"), # Media Key([], "XF86AudioPlay", lazy.spawn(f"{MEDIA_CONTROL} play"), desc="Media control - play"), Key([], "XF86AudioStop", lazy.spawn(f"{MEDIA_CONTROL} stop"), desc="Media control - stop"),