mirror of
https://github.com/GRFreire/dotfiles.git
synced 2026-01-10 20:39:39 +00:00
qtile: add screenshot shortcut
This commit is contained in:
parent
2e0b8e1197
commit
2efbc8441a
@ -20,6 +20,7 @@ TERMINAL = "alacritty"
|
|||||||
LAUNCHER = "rofi -show drun"
|
LAUNCHER = "rofi -show drun"
|
||||||
WEB = "firefox"
|
WEB = "firefox"
|
||||||
FILE_MANAGER = "nautilus -w"
|
FILE_MANAGER = "nautilus -w"
|
||||||
|
SCREENSHOT = "gnome-screenshot"
|
||||||
POWER_MENU = os.path.expanduser(
|
POWER_MENU = os.path.expanduser(
|
||||||
"~/.local/bin/simple-power-menu"
|
"~/.local/bin/simple-power-menu"
|
||||||
) # https://github.com/GRFreire/simple-power-menu
|
) # https://github.com/GRFreire/simple-power-menu
|
||||||
@ -72,6 +73,8 @@ keys = [
|
|||||||
Key([MOD, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
|
Key([MOD, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
|
||||||
# System
|
# System
|
||||||
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([MOD], "Print", lazy.spawn(f"{SCREENSHOT} -i"), desc="Open screenshot utility"),
|
||||||
# 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"),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user