formatting

This commit is contained in:
Daniel Mevec 2023-01-23 15:48:40 +01:00
parent fef86161ff
commit 3e28390476

View file

@ -28,10 +28,10 @@ keys = [
# ## The essentials
Key([mod], "Return", lazy.spawn(myTerm), desc='Launches My Terminal'),
Key([mod, "shift"], "Return", lazy.spawn("rofi -show run"), desc='Run Launcher'),
Key([mod], "b", lazy.spawn(myBrowser),desc='Qutebrowser'),
Key([mod], "b", lazy.spawn(myBrowser), desc='Qutebrowser'),
Key([mod], "l", lazy.spawn("cinnamon-screensaver-command -a"), desc='Qutebrowser'),
Key([mod], "Tab", lazy.next_layout(), desc='Toggle through layouts'),
Key([mod, "shift"], "c",lazy.window.kill(), desc='Kill active window'),
Key([mod, "shift"], "c", lazy.window.kill(), desc='Kill active window'),
Key([mod, "shift"], "r", lazy.restart(), desc='Restart Qtile'),
Key([mod, "shift"], "q", lazy.shutdown(), desc='Shutdown Qtile'),
@ -39,20 +39,20 @@ keys = [
Key([mod], "period", lazy.next_screen(), desc='Move focus to next monitor'),
Key([mod], "comma", lazy.prev_screen(), desc='Move focus to prev monitor'),
# ## Window controls
Key([mod], "Up", lazy.layout.up(), desc='Move focus up' ),
Key([mod], "Down", lazy.layout.down(), desc='Move focus down' ),
Key([mod], "Left", lazy.layout.left(), desc='Move focus left' ),
Key([mod], "Right", lazy.layout.right(), desc='Move focus right' ),
Key([mod], "Up", lazy.layout.up(), desc='Move focus up'),
Key([mod], "Down", lazy.layout.down(), desc='Move focus down'),
Key([mod], "Left", lazy.layout.left(), desc='Move focus left'),
Key([mod], "Right", lazy.layout.right(), desc='Move focus right'),
Key([mod, "shift"], "Up", lazy.layout.shuffle_up(), lazy.layout.section_up(),
desc='Move windows up in current stack'),
desc='Move windows up in current stack'),
Key([mod, "shift"], "Down", lazy.layout.shuffle_down(), lazy.layout.section_down(),
desc='Move windows down in current stack' ),
Key([mod, "shift"], "Left", lazy.layout.shuffle_left(), desc='Move windows left' ),
Key([mod, "shift"], "Right", lazy.layout.shuffle_right(), desc='Move windows right' ),
desc='Move windows down in current stack'),
Key([mod, "shift"], "Left", lazy.layout.shuffle_left(), desc='Move windows left'),
Key([mod, "shift"], "Right", lazy.layout.shuffle_right(), desc='Move windows right'),
Key([mod], "minus", lazy.layout.shrink(), lazy.layout.decrease_nmaster(),
desc='Shrink window (MonadTall), decrease number in master pane (Tile)'),
desc='Shrink window (MonadTall), decrease number in master pane (Tile)'),
Key([mod], "equal", lazy.layout.grow(), lazy.layout.increase_nmaster(),
desc='Expand window (MonadTall), increase number in master pane (Tile)'),
# Grow windows. If current window is on the edge of screen and direction
@ -66,7 +66,7 @@ keys = [
Key([mod], "m", lazy.layout.maximize(), desc='toggle window between minimum and maximum sizes'),
Key([mod, "shift"], "f", lazy.window.toggle_floating(), desc='toggle floating'),
Key([mod], "f", lazy.window.toggle_fullscreen(), desc='toggle fullscreen' ),
Key([mod], "f", lazy.window.toggle_fullscreen(), desc='toggle fullscreen'),
### Stack controls
Key([mod, "shift"], "Tab", lazy.layout.rotate(), lazy.layout.flip(),
@ -77,7 +77,7 @@ keys = [
]
groups = [Group("CHT", layout='max', matches=[Match(wm_class=('microsoft teams - preview'))]),
Group("WWW", layout='monadtall', matches=[Match(wm_class=['Firefox','firefox','firefox-bin','Chromium','Google-chrome','google-chrome'])]),
Group("WWW", layout='monadtall', matches=[Match(wm_class=['Firefox', 'firefox', 'firefox-bin', 'Chromium', 'Google-chrome', 'google-chrome'])]),
Group("DEV", layout='max'),
Group("SYS", layout='monadtall'),
Group("REF", layout='monadtall'),
@ -90,8 +90,7 @@ groups = [Group("CHT", layout='max', matches=[Match(wm_class=('microsoft teams -
from libqtile.dgroups import simple_key_binder
dgroups_key_binder = simple_key_binder("mod4")
groups.append(ScratchPad('scratch',
[
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('file', myExplorer, height=0.66, width=0.66, x=0.166, y=0.166),