add arbitrary scratch file browser

This commit is contained in:
Daniel Mevec 2023-01-23 13:11:24 +01:00
parent f1910ef417
commit fef86161ff

View file

@ -20,6 +20,7 @@ from qutils import get_num_screens, get_network_interface, get_batteries, Colors
mod = "mod4" # Sets mod key to SUPER/WINDOWS
myTerm = "alacritty"
myBrowser = "firefox"
myExplorer = "nemo"
sound_ctrl = "cinnamon-settings sound"
update_distro_key = "Ubuntu"
@ -93,7 +94,7 @@ groups.append(ScratchPad('scratch',
[
DropDown('term', myTerm, height=0.66, width=0.66, x=0.166, y=0.166),
DropDown('qalc', myTerm+' -e qalc', height=0.66, width=0.33, x=0.33, y=0.166),
DropDown('nnn', myTerm+' -e nnn -d', height=0.66, width=0.66, x=0.166, y=0.166),
DropDown('file', myExplorer, height=0.66, width=0.66, x=0.166, y=0.166),
DropDown('sound', sound_ctrl, height=0.66, width=0.50, x=0.25, y=0.166),
]),
)
@ -101,7 +102,7 @@ groups.append(ScratchPad('scratch',
keys.extend([
Key([mod], 'q', lazy.group['scratch'].dropdown_toggle('qalc')),
Key([mod], 'w', lazy.group['scratch'].dropdown_toggle('term')),
Key([mod], 'e', lazy.group['scratch'].dropdown_toggle('nnn')),
Key([mod], 'e', lazy.group['scratch'].dropdown_toggle('file')),
Key([mod], 's', lazy.group['scratch'].dropdown_toggle('sound')),
])