From 5549bbcc3c8f8c37b371b61fb7ac2b51f5a73a06 Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Sun, 7 Jun 2026 13:01:13 +0200 Subject: change cursor in hyprland --- nixos/config/hypr/hyprland.lua | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'nixos/config/hypr/hyprland.lua') diff --git a/nixos/config/hypr/hyprland.lua b/nixos/config/hypr/hyprland.lua index 0472b3b..5bfb333 100644 --- a/nixos/config/hypr/hyprland.lua +++ b/nixos/config/hypr/hyprland.lua @@ -27,12 +27,17 @@ hl.on("hyprland.start", function() hl.exec_cmd("sh ~/.local/bin/unblock-pipewire.sh") hl.exec_cmd("gsettings set org.gnome.desktop.interface gtk-theme \"Adwaita-dark\"") hl.exec_cmd("gsettings set org.gnome.desktop.interface color-scheme \"prefer-dark\"") + hl.exec_cmd("hyprpaper") end) hl.env("GDK_BACKEND", "wayland,x11,*") hl.env("XDG_CURRENT_DESKTOP", "Hyprland") hl.env("XDG_SESSION_TYPE", "wayland") hl.env("XDG_SESSION_DESKTOP", "Hyprland") +hl.env("XCURSOR_THEME", "Bibata-Modern-Ice") +hl.env("XCURSOR_SIZE", 24) +hl.env("HYPRCURSOR_THEME", "Bibata-Modern-Ice") +hl.env("HYPRCURSOR_SIZE", 24) hl.config({ general = { @@ -121,14 +126,10 @@ hl.bind(mainMod .. " + SHIFT + S", hl.dsp.window.move({ workspace = "special:mag hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true }) hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true }) -hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"), - { locked = true, repeating = true }) -hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), - { locked = true, repeating = true }) -hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), - { locked = true, repeating = true }) -hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), - { locked = true, repeating = true }) +hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"), { locked = true, repeating = true }) +hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), { locked = true, repeating = true }) +hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), { locked = true, repeating = true }) +hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), { locked = true, repeating = true }) hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"), { locked = true, repeating = true }) hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"), { locked = true, repeating = true }) hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"), { locked = true }) -- cgit v1.2.3