From b28423dfdcdd0a3e7cc4b2053089004fd7df3980 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Tue, 23 Jan 2024 21:53:47 +0100 Subject: [PATCH] Add GTK support with cursor --- gtk/gtk.sh | 2 ++ hypr/conf/autostart.conf | 3 --- hypr/conf/cursor.conf | 1 + hypr/hyprland.conf | 5 +++++ 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 hypr/conf/cursor.conf diff --git a/gtk/gtk.sh b/gtk/gtk.sh index 84105f4..eab930e 100755 --- a/gtk/gtk.sh +++ b/gtk/gtk.sh @@ -15,3 +15,5 @@ gsettings set "$gnome_schema" icon-theme "$icon_theme" gsettings set "$gnome_schema" cursor-theme "$cursor_theme" gsettings set "$gnome_schema" font-name "$font_name" gsettings set "$gnome_schema" color-scheme "prefer-dark" + +echo "exec-once = hyprctl setcursor $cursor_theme 24" > ~/dotfiles/hypr/conf/cursor.conf \ No newline at end of file diff --git a/hypr/conf/autostart.conf b/hypr/conf/autostart.conf index b3abdeb..1f3facb 100644 --- a/hypr/conf/autostart.conf +++ b/hypr/conf/autostart.conf @@ -11,9 +11,6 @@ exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 # Load Dunst Notification Manager exec-once = dunst -# Set Cursor Theme -exec-once = hyprctl setcursor Bibata-Modern-Ice 24 - # Load GTK settings exec-once = ~/dotfiles/gtk/gtk.sh diff --git a/hypr/conf/cursor.conf b/hypr/conf/cursor.conf new file mode 100644 index 0000000..b3b3493 --- /dev/null +++ b/hypr/conf/cursor.conf @@ -0,0 +1 @@ +exec-once = hyprctl setcursor Bibata-Modern-Ice 24 diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 12f123d..0b2cdbb 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -17,6 +17,11 @@ source = ~/dotfiles/hypr/conf/monitor.conf # ----------------------------------------------------- source = ~/dotfiles/hypr/conf/autostart.conf +# ----------------------------------------------------- +# Cursor +# ----------------------------------------------------- +source = ~/dotfiles/hypr/conf/cursor.conf + # ----------------------------------------------------- # Environment # -----------------------------------------------------