From 2f64a2097812c1820766909037e724f3415c7576 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 26 Jul 2026 00:13:26 +0530 Subject: feat: migrate to Wayland-native media tools, drop X11 cruft, polish waybar and hyprland MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- modules/desktop/hyprland/default.nix | 22 +++------------------- modules/desktop/hyprland/keybindings.nix | 12 ++++++++---- 2 files changed, 11 insertions(+), 23 deletions(-) (limited to 'modules/desktop/hyprland') diff --git a/modules/desktop/hyprland/default.nix b/modules/desktop/hyprland/default.nix index 37f22d8..7c5f811 100644 --- a/modules/desktop/hyprland/default.nix +++ b/modules/desktop/hyprland/default.nix @@ -32,7 +32,7 @@ in border_size = 1; col = { active_border = { - colors = [ (toHyprColor base03) ]; + colors = [ (toHyprColor base07) ]; angle = 45; }; inactive_border = toHyprColor base00; @@ -67,29 +67,13 @@ in { name = "size-file-explorer"; match.class = "^(file-explorer)$"; - size = "1280 720"; + size = "1000 600"; } { name = "center-file-explorer"; match.class = "^(file-explorer)$"; center = true; } - - { - name = "float-rofi"; - match.class = "^(rofi)$"; - float = true; - } - { - name = "size-rofi"; - match.class = "^(rofi)$"; - size = "800 600"; - } - { - name = "center-rofi"; - match.class = "^(rofi)$"; - center = true; - } ]; }; }; @@ -98,7 +82,7 @@ in enable = true; package = pkgs.rose-pine-hyprcursor; name = "rose-pine-hyprcursor"; - size = 20; + size = 18; hyprcursor.enable = true; gtk.enable = false; x11.enable = false; 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" + )) + ]) ]; } -- cgit v1.2.3