Compare commits

..

2 Commits

Author SHA1 Message Date
ff415386b6 apps 2025-08-16 23:16:47 +02:00
0ba548f7e5 added last keybinds and cleaned up 2025-08-16 23:16:14 +02:00
2 changed files with 43 additions and 72 deletions

View File

@@ -11,6 +11,7 @@ apps = {
"filebrowser": "nemo", "filebrowser": "nemo",
} }
modifier_keys = { modifier_keys = {
"M": "mod4", "M": "mod4",
"A": "mod1", "A": "mod1",

View File

@@ -5,26 +5,10 @@ from config import apps, modifier_keys
keys = [ keys = [
# Focus manipulation # Focus manipulation
Key( Key("M-h", lazy.layout.left(), desc="Move focus to the left"),
"M-h", Key("M-l", lazy.layout.right(), desc="Move focus to the right"),
lazy.layout.left(), Key("M-j", lazy.layout.down(), desc="Move focus to the down"),
desc="Move focus to the left", Key("M-k", lazy.layout.up(), desc="Move focus to the up"),
),
Key(
"M-l",
lazy.layout.right(),
desc="Move focus to the right",
),
Key(
"M-j",
lazy.layout.down(),
desc="Move focus to the down",
),
Key(
"M-k",
lazy.layout.up(),
desc="Move focus to the up",
),
# Window manipulation # Window manipulation
Key( Key(
"M-S-h", "M-S-h",
@@ -36,92 +20,59 @@ keys = [
lazy.layout.swap_right(), lazy.layout.swap_right(),
desc="Move window to the right", desc="Move window to the right",
), ),
Key( Key("M-S-j", lazy.layout.shuffle_down(), desc="Move window down"),
"M-S-j", Key("M-S-k", lazy.layout.shuffle_up(), desc="Move window up"),
lazy.layout.shuffle_down(), Key("M-S-i", lazy.layout.shrink(), desc="Increase window size"),
desc="Move window down", Key("M-S-m", lazy.layout.grow(), desc="Decrease window size"),
), Key("M-c", lazy.window.kill(), desc="Closes window"),
Key( # Layout manipulation
"M-S-k",
lazy.layout.shuffle_up(),
desc="Move window up",
),
Key(
"M-S-i",
lazy.layout.shrink(),
desc="Increase window size",
),
Key(
"M-S-m",
lazy.layout.grow(),
desc="Decrease window size",
),
Key( Key(
"M-n", "M-n",
lazy.layout.normalize(), lazy.layout.normalize(),
desc="Normalize all window sizes", desc="Normalize all window sizes",
), ),
Key( Key("M-S-n", lazy.layout.reset(), desc="Resets all window sizes"),
"M-S-n",
lazy.layout.reset(),
desc="Resets all window sizes",
),
Key( Key(
"M-t", "M-t",
lazy.window.toggle_floating(), lazy.window.toggle_floating(),
desc="Toggles between floating and tiled state of a window", desc="Toggles between floating and tiled state of a window",
), ),
Key( Key(
"M-o", lazy.layout.maximize(), desc="Maximizes the window in the current layot" "M-o",
lazy.layout.maximize(),
desc="Maximizes the window in the current layot",
), ),
Key( Key(
"M-f", "M-f",
lazy.window.toggle_fullscreen(), lazy.window.toggle_fullscreen(),
desc="Toggles wiondow between tiled/floating and fullscreen", desc="Toggles wiondow between tiled/floating and fullscreen",
), ),
Key( Key("<M-Tab>", lazy.next_layout(), desc="Switches between layouts"),
"M-Tab", Key("<M-C-r>", lazy.reload_config(), desc="Reload config"),
lazy.next_layout(),
desc="Switches between layouts",
),
Key(
"M-c",
lazy.window.kill(),
desc="Closes window",
),
Key(
"M-C-r",
lazy.reload_config(),
desc="Reload config",
),
# Audio and media control # Audio and media control
Key("<F86AudioMute>", lazy.spawn("pamixer -t"), desc="Mutes Audio"),
Key( Key(
"XF86AudioMute", "<XF86AudioLowerVolume>",
lazy.spawn("pamixer -t"),
desc="Mutes Audio",
),
Key(
"XF86AudioLowerVolume",
lazy.spawn("pamixer -d 2"), lazy.spawn("pamixer -d 2"),
desc="Lower Audio Volume", desc="Lower Audio Volume",
), ),
Key( Key(
"XF86AudioRaiseVolume", "<XF86AudioRaiseVolume>",
lazy.spawn("pamixer -i 2"), lazy.spawn("pamixer -i 2"),
desc="Raise Audio Volume", desc="Raise Audio Volume",
), ),
Key( Key(
"XF86AudioPrev", "<XF86AudioPrev>",
lazy.spawn("playerctl previous"), lazy.spawn("playerctl previous"),
desc="Play Previous Media", desc="Play Previous Media",
), ),
Key( Key(
"XF86AudioNext", "<XF86AudioNext>",
lazy.spawn("playerctl next"), lazy.spawn("playerctl next"),
desc="Play Next Media", desc="Play Next Media",
), ),
Key( Key(
"XF86AudioPlay", "<XF86AudioPlay>",
lazy.spawn("playerctl play-pause"), lazy.spawn("playerctl play-pause"),
desc="Toggle Play/Pause", desc="Toggle Play/Pause",
), ),
@@ -132,8 +83,27 @@ keys = [
desc="Spawns Rofi", desc="Spawns Rofi",
), ),
Key( Key(
"A-Tab", "A-<Tab>",
lazy.spawn("rofi -show window -show-icons"), lazy.spawn("rofi -show window -show-icons"),
desc="Tab Windows", desc="Tab Windows",
), ),
# Scratchpads
Key(
"C-1",
lazy.group["scratchpad"].dropdown_toggle("term"),
desc="Toggles terminal scratchpad",
),
Key(
"C-2",
lazy.group["scratchpad"].dropdown_toggle("calc"),
desc="Calculator in scratchpad",
),
# Application shortcuts
Key(
"M-e",
lazy.spawn(apps["filebrowser"]),
desc="Launches filebrowser",
),
Key("M-b", lazy.spawn(apps["browser"])),
Key("M-<Return>", lazy.spawn(apps["terminal"])),
] ]