qtile: add calculator keybind

This commit is contained in:
Guilherme Rugai Freire 2021-08-29 22:29:32 -03:00
parent 28205a90ea
commit 5aa5e9f19b
No known key found for this signature in database
GPG Key ID: 0F9FE41723A8A297

View File

@ -24,6 +24,7 @@ FILE_MANAGER = "nautilus -w"
CLIPBOARD_MANAGER = "rofi -modi \"clipboard:greenclip print\" -show clipboard -run-command '{cmd}'" 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"
CALCULATOR= "rofi -show calc -modi calc -no-show-match -no-sort"
POWER_MENU = os.path.expanduser( POWER_MENU = os.path.expanduser(
"~/.scripts/bin/simple-power-menu" "~/.scripts/bin/simple-power-menu"
) )
@ -50,6 +51,7 @@ keys = [
Key([MOD], "p", lazy.spawn(WEB_QUICK_OPEN), desc="Open web browser quick launcher"), Key([MOD], "p", lazy.spawn(WEB_QUICK_OPEN), desc="Open web browser quick launcher"),
Key([MOD], "b", lazy.spawn(BITWARDEN_LAUNCHER), desc="Open bitwarden launcher"), Key([MOD], "b", lazy.spawn(BITWARDEN_LAUNCHER), desc="Open bitwarden launcher"),
Key([MOD], "f", lazy.spawn(FILE_MANAGER), desc="Open file manager"), Key([MOD], "f", lazy.spawn(FILE_MANAGER), desc="Open file manager"),
Key([MOD], "c", lazy.spawn(CALCULATOR), desc="Open calculator"),
# Closes window. # Closes window.
Key([MOD], "q", lazy.window.kill(), desc="Kill focused window"), Key([MOD], "q", lazy.window.kill(), desc="Kill focused window"),
# Switch between windows # Switch between windows