aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/hyprland/keybindings.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-26 00:13:26 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-26 00:13:26 +0530
commit2f64a2097812c1820766909037e724f3415c7576 (patch)
tree8dd91e2d68df1530e3db00db82be91135c672e36 /modules/desktop/hyprland/keybindings.nix
parent550cadaf45165ccbc3dbe050a45d0d041c2c221d (diff)
downloadhome-manager-config-2f64a2097812c1820766909037e724f3415c7576.tar.gz
home-manager-config-2f64a2097812c1820766909037e724f3415c7576.zip
feat: migrate to Wayland-native media tools, drop X11 cruft, polish waybar and hyprland
- Switch ffmpeg/maim/slop → grim/slurp/wf-recorder (X11→Wayland) - Rewrite screen-recording script for wf-recorder+slurp - Add window-rewrite icons and style workspace buttons in waybar - Set --class on kitty desktop entries for correct hyprland window matching - Remove i3-keybindings script and stale rofi window rules - Tweak cursor size, border colors, file-explorer dimensions
Diffstat (limited to 'modules/desktop/hyprland/keybindings.nix')
-rw-r--r--modules/desktop/hyprland/keybindings.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/desktop/hyprland/keybindings.nix b/modules/desktop/hyprland/keybindings.nix
index f8f074c..a72c965 100644
--- a/modules/desktop/hyprland/keybindings.nix
+++ b/modules/desktop/hyprland/keybindings.nix
@@ -134,9 +134,13 @@ in
(bind "SHIFT + 0" "hl.dsp.window.move({ workspace = 10 })")
# --- Screenshots ---
- (bind "P" (execLuaSingle "grim -g \"$(slurp)\" - | wl-copy"))
- (bind "SHIFT + P" (
- execLuaSingle "mkdir -p ~/Pictures/Screenshots && grim -g \"$(slurp)\" ~/Pictures/Screenshots/screenshot-$(date +%Y%m%d-%H%M%S).png"
- ))
+ (lib.optionals (config.media.grim.enable && config.media.slurp.enable) [
+ (bind "P" (
+ execLuaSingle "${lib.getExe config.media.grim.package} -g \"$(${lib.getExe config.media.slurp.package})\" - | wl-copy"
+ ))
+ (bind "SHIFT + P" (
+ execLuaSingle "mkdir -p ~/Pictures/Screenshots && ${lib.getExe config.media.grim.package} -g \"$(${lib.getExe config.media.slurp.package})\" ~/Pictures/Screenshots/screenshot-$(date +%Y%m%d-%H%M%S).png"
+ ))
+ ])
];
}