feat: more hyprland refinements, add posy_cursor as default

This commit is contained in:
EinEtwas 2024-10-14 19:25:31 +02:00
parent 79d0d28826
commit 37774188bf
3 changed files with 37 additions and 22 deletions

View file

@ -17,6 +17,14 @@
home.homeDirectory = "/home/rhea";
programs.home-manager.enable = true;
home.pointerCursor = {
gtk.enable = true;
package = pkgs.posy-cursors;
name = "Posy_Cursor";
size = 16;
};
imports = [
./hyprland.nix
./git.nix

View file

@ -148,11 +148,8 @@
"$mod SHIFT, up, movewindow, u"
"$mod SHIFT, down, movewindow, d"
#",Print,exec,${grimblast} --notify copy screen"
#"SHIFT,Print,exec,${grimblast} --notify save screen"
"CTRL,Print,exec,grimblast --notify copy area"
"CTRL SHIFT,Print,exec,grimblast --notify save area"
# make Screenshot with Mod + Shift + S
"$mod SHIFT, S, exec, hyprshot -m region"
"$mod, 0, workspace, 10"
"$mod SHIFT, 0, movetoworkspacesilent, 10"
@ -160,24 +157,23 @@
++ (map (n: "$mod,${n},workspace,${n}") workspaces)
++ (map (n: "$mod SHIFT,${n},movetoworkspacesilent,${n}") workspaces);
#bindel = let
#swayosd = lib.getExe' pkgs.swayosd "swayosd-client";
#in [
# ", XF86AudioRaiseVolume, exec, ${swayosd} --output-volume=raise"
# ", XF86AudioLowerVolume, exec, ${swayosd} --output-volume=lower"
# ", XF86MonBrightnessUp,exec, ${swayosd} --brightness=raise"
# ", XF86MonBrightnessDown,exec, ${swayosd} --brightness=lower"
#];
bindel = let
brightnessctl = lib.getExe' pkgs.brightnessctl "brightnessctl";
in [
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
" ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
", XF86MonBrightnessUp,exec, ${brightnessctl} s 5%+"
", XF86MonBrightnessDown,exec, ${brightnessctl} s 5%-"
];
#bindl = let
# playerctl = lib.getExe' pkgs.playerctl "playerctl";
# swayosd = lib.getExe' pkgs.swayosd "swayosd-client";
#in [
# ", XF86AudioMute, exec, ${swayosd} --output-volume mute-toggle"
# ", XF86AudioPrev, exec, ${playerctl} previous"
# ", XF86AudioPlay, exec, ${playerctl} play-pause"
# ", XF86AudioNext, exec, ${playerctl} next"
#];
bindl = let
playerctl = lib.getExe' pkgs.playerctl "playerctl";
in [
", XF86AudioPrev, exec, ${playerctl} previous"
", XF86AudioPlay, exec, ${playerctl} play-pause"
", XF86AudioNext, exec, ${playerctl} next"
];
bindm = [
"$mod, mouse:272, movewindow"

View file

@ -7,5 +7,16 @@
gparted
# Authentication agent
polkit_gnome
# For Hyprland hotkeys:
# control backlight
brightnessctl
# control media players
playerctl
# make screenshots
hyprshot
# to better find execs
nix-index
];
}