Add rofi keybindings to XMonad

master
Hektor Misplon 2024-06-04 13:25:46 +02:00
parent 2f4ed6cc51
commit 5a29b672a2
1 changed files with 5 additions and 0 deletions

View File

@ -197,6 +197,8 @@ myKeys =
("<F8>", spawnKeepassXC), ("<F8>", spawnKeepassXC),
("M-z", spawnZettelkasten), ("M-z", spawnZettelkasten),
("M-p", spawnLauncher), ("M-p", spawnLauncher),
("M-w", spawnWindowSwitcher),
("M-S-w", spawnWifiMenu),
("<Insert>", pasteSelection), ("<Insert>", pasteSelection),
("<Print>", printScreen), ("<Print>", printScreen),
("<XF86AudioRaiseVolume>", raiseVol), -- Audio volume & playback ("<XF86AudioRaiseVolume>", raiseVol), -- Audio volume & playback
@ -260,6 +262,9 @@ spawnKeepassXC = spawn "keepassxc"
fullscreenBrowser :: X () fullscreenBrowser :: X ()
fullscreenBrowser = spawn "firefox --fullscreen" fullscreenBrowser = spawn "firefox --fullscreen"
spawnWindowSwitcher = spawn "rofi -show window -show-icons"
spawnWifiMenu = spawn "rofi -show wifi -modi \"wifi:iwdrofimenu\""
spawnLauncher, spawnClipManager, spawnCalculator :: X () spawnLauncher, spawnClipManager, spawnCalculator :: X ()
spawnLauncher = spawn "rofi -show drun -show-icons" spawnLauncher = spawn "rofi -show drun -show-icons"
spawnClipManager = spawn "rofi -modi 'clipboard:greenclip print' -show clipboard -run-command '{cmd}'" spawnClipManager = spawn "rofi -modi 'clipboard:greenclip print' -show clipboard -run-command '{cmd}'"