add clipboard manager

This commit is contained in:
Guilherme Rugai Freire 2021-08-06 19:02:35 -03:00
parent da3ae78aba
commit 220f672406
No known key found for this signature in database
GPG Key ID: 0F9FE41723A8A297
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,9 @@ picom --experimental-backends &
# Start notification server # Start notification server
dunst & dunst &
# Start clipboard manager
greenclip daemon &
# Display background image # Display background image
nitrogen --restore nitrogen --restore

View File

@ -21,6 +21,7 @@ TERMINAL = "alacritty"
LAUNCHER = "rofi -show drun" LAUNCHER = "rofi -show drun"
WEB = "firefox" WEB = "firefox"
FILE_MANAGER = "nautilus -w" FILE_MANAGER = "nautilus -w"
CLIPBOARD_MANAGER = "rofi -modi \"clipboard:greenclip print\" -show clipboard -run-command '{cmd}'"
SCREENSHOT = "gnome-screenshot" SCREENSHOT = "gnome-screenshot"
SCREENSHOT_UTILITY = "gnome-screenshot -i" SCREENSHOT_UTILITY = "gnome-screenshot -i"
POWER_MENU = os.path.expanduser( POWER_MENU = os.path.expanduser(
@ -79,6 +80,8 @@ keys = [
Key([MOD], "BackSpace", lazy.spawn(POWER_MENU), desc="Open power menu"), 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([], "Print", lazy.spawn(SCREENSHOT), desc="Take a screenshot of all the screens"),
Key([MOD], "Print", lazy.spawn(SCREENSHOT_UTILITY), desc="Open screenshot utility"), 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 # Media
Key([], "XF86AudioPlay", lazy.spawn(f"{MEDIA_CONTROL} play"), desc="Media control - play"), Key([], "XF86AudioPlay", lazy.spawn(f"{MEDIA_CONTROL} play"), desc="Media control - play"),
Key([], "XF86AudioStop", lazy.spawn(f"{MEDIA_CONTROL} stop"), desc="Media control - stop"), Key([], "XF86AudioStop", lazy.spawn(f"{MEDIA_CONTROL} stop"), desc="Media control - stop"),