diff --git a/.config/gtk-4.0/assets b/.config/gtk-4.0/assets deleted file mode 120000 index 1f3c554..0000000 --- a/.config/gtk-4.0/assets +++ /dev/null @@ -1 +0,0 @@ -/home/mike/.themes/Rosepine-Dark/gtk-4.0/assets \ No newline at end of file diff --git a/.config/gtk-4.0/gtk-dark.css b/.config/gtk-4.0/gtk-dark.css deleted file mode 120000 index eec36a7..0000000 --- a/.config/gtk-4.0/gtk-dark.css +++ /dev/null @@ -1 +0,0 @@ -/home/mike/.themes/Rosepine-Dark/gtk-4.0/gtk-dark.css \ No newline at end of file diff --git a/.config/gtk-4.0/gtk.css b/.config/gtk-4.0/gtk.css deleted file mode 120000 index ae07cd6..0000000 --- a/.config/gtk-4.0/gtk.css +++ /dev/null @@ -1 +0,0 @@ -/home/mike/.themes/Rosepine-Dark/gtk-4.0/gtk.css \ No newline at end of file diff --git a/.config/timewall/config.toml b/.config/timewall/config.toml index ffae583..9520135 100644 --- a/.config/timewall/config.toml +++ b/.config/timewall/config.toml @@ -3,5 +3,5 @@ lat = 50.27 lon = 19.04 [setter] -command = ['feh', '--bg-fill', '%f'] +command = ['feh', '--bg-scale', '%f'] # command = ['swww', 'img', '%f'] diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua index 96b9445..89ade8b 100644 --- a/.config/wezterm/wezterm.lua +++ b/.config/wezterm/wezterm.lua @@ -28,7 +28,7 @@ config.keys = { local theme = wezterm.plugin.require('https://github.com/neapsix/wezterm').main -- This is where you actually apply your config choices --- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- config.color_scheme = "rose-pine" -- Using custom Rose Pine theme +-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- config.color_scheme = "rose-pine" -- Using custom Rose Pine theme -- the font is named 'Source Code Pro ExtraLight', but I actually use the DemiBold weight. looks awesome config.font = wezterm.font('Hack Nerd Font') config.colors = theme.colors() diff --git a/.local/bin/dark b/.local/bin/dark index f13656e..cbd1d6c 100755 --- a/.local/bin/dark +++ b/.local/bin/dark @@ -36,6 +36,50 @@ gtk-theme-name="Rosepine-Dark" gtk-icon-theme-name="Papirus-Dark" EOF +# Configure xsettingsd for dynamic theme updates +mkdir -p "$HOME/.config/xsettingsd" +cat > "$HOME/.config/xsettingsd/xsettingsd.conf" << EOF +Net/ThemeName "Rosepine-Dark" +Net/IconThemeName "Papirus-Dark" +Gtk/CursorThemeName "Adwaita" +Net/EnableEventSounds 1 +EnableInputFeedbackSounds 0 +Xft/Antialias 1 +Xft/Hinting 1 +Xft/HintStyle "hintslight" +Xft/RGBA "rgb" +Net/DndDragThreshold 8 +Gtk/CanChangeAccels 0 +Gtk/ColorPalette "black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90" +Gtk/FontName "Ubuntu 11" +Gtk/IconSizes "" +Gtk/KeyThemeName "" +Gtk/ToolbarStyle "both" +Gtk/ToolbarIconSize "large-toolbar" +Gtk/MenuImages 1 +Gtk/ButtonImages 1 +Gtk/MenuBarAccel "F10" +Gtk/CursorBlinkTime 1200 +Gtk/CursorThemeSize 24 +Gtk/DecorationLayout "close,minimize,maximize:" +Gtk/DialogsUseHeader 1 +Gtk/PrimaryButtonWarpsSlider 1 +Gtk/RecentFilesMaxAge 30 +Gtk/ShellShowsAppMenu 0 +Gtk/ShellShowsDesktop 0 +Gtk/ShellShowsMenubar 0 +Gtk/ShowInputMethodMenu 1 +Gtk/ShowUnicodeMenu 1 +Gtk/TimeoutExpand 500 +Gtk/TimeoutInitial 200 +Gtk/TimeoutRepeat 50 +Gtk/TitlebarDoubleClick "toggle_maximize" +Gtk/TitlebarMiddleClick "lower" +Gtk/TitlebarRightClick "menu" +Gtk/UseOverlayScrollbars 1 +Gtk/ApplicationPreferDarkTheme 1 +EOF + # Update Qt6 theme using qt6ct if command -v qt6ct >/dev/null 2>&1; then export QT_QPA_PLATFORMTHEME=qt6ct @@ -187,9 +231,18 @@ else echo "⚠ Bar is not running - start it with: ~/repos/dwm/bar.sh" fi -# Try to reload GTK applications via xsettingsd if available +# Start or restart xsettingsd to apply theme changes dynamically if command -v xsettingsd >/dev/null 2>&1; then - pkill -HUP xsettingsd >/dev/null 2>&1 || true + echo "Restarting xsettingsd for dynamic theme updates..." + # Kill existing xsettingsd + pkill xsettingsd >/dev/null 2>&1 || true + sleep 0.2 + # Start xsettingsd with new configuration + nohup xsettingsd >/dev/null 2>&1 & + sleep 0.5 + echo "✓ xsettingsd started with dark theme configuration" +else + echo "⚠ xsettingsd not found - install it for dynamic GTK theme updates" fi # Restart GTK settings daemon if using GNOME diff --git a/.local/bin/light b/.local/bin/light index db5c89c..0ceaea7 100755 --- a/.local/bin/light +++ b/.local/bin/light @@ -36,6 +36,50 @@ gtk-theme-name="Rosepine-Light" gtk-icon-theme-name="Papirus-Light" EOF +# Configure xsettingsd for dynamic theme updates +mkdir -p "$HOME/.config/xsettingsd" +cat > "$HOME/.config/xsettingsd/xsettingsd.conf" << EOF +Net/ThemeName "Rosepine-Light" +Net/IconThemeName "Papirus-Light" +Gtk/CursorThemeName "Adwaita" +Net/EnableEventSounds 1 +EnableInputFeedbackSounds 0 +Xft/Antialias 1 +Xft/Hinting 1 +Xft/HintStyle "hintslight" +Xft/RGBA "rgb" +Net/DndDragThreshold 8 +Gtk/CanChangeAccels 0 +Gtk/ColorPalette "black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90" +Gtk/FontName "Ubuntu 11" +Gtk/IconSizes "" +Gtk/KeyThemeName "" +Gtk/ToolbarStyle "both" +Gtk/ToolbarIconSize "large-toolbar" +Gtk/MenuImages 1 +Gtk/ButtonImages 1 +Gtk/MenuBarAccel "F10" +Gtk/CursorBlinkTime 1200 +Gtk/CursorThemeSize 24 +Gtk/DecorationLayout "close,minimize,maximize:" +Gtk/DialogsUseHeader 1 +Gtk/PrimaryButtonWarpsSlider 1 +Gtk/RecentFilesMaxAge 30 +Gtk/ShellShowsAppMenu 0 +Gtk/ShellShowsDesktop 0 +Gtk/ShellShowsMenubar 0 +Gtk/ShowInputMethodMenu 1 +Gtk/ShowUnicodeMenu 1 +Gtk/TimeoutExpand 500 +Gtk/TimeoutInitial 200 +Gtk/TimeoutRepeat 50 +Gtk/TitlebarDoubleClick "toggle_maximize" +Gtk/TitlebarMiddleClick "lower" +Gtk/TitlebarRightClick "menu" +Gtk/UseOverlayScrollbars 1 +Gtk/ApplicationPreferDarkTheme 0 +EOF + # Update Qt6 theme using qt6ct if command -v qt6ct >/dev/null 2>&1; then export QT_QPA_PLATFORMTHEME=qt6ct @@ -188,9 +232,18 @@ else echo "⚠ Bar is not running - start it with: ~/repos/dwm/bar.sh" fi -# Try to reload GTK applications via xsettingsd if available +# Start or restart xsettingsd to apply theme changes dynamically if command -v xsettingsd >/dev/null 2>&1; then - pkill -HUP xsettingsd >/dev/null 2>&1 || true + echo "Restarting xsettingsd for dynamic theme updates..." + # Kill existing xsettingsd + pkill xsettingsd >/dev/null 2>&1 || true + sleep 0.2 + # Start xsettingsd with new configuration + nohup xsettingsd >/dev/null 2>&1 & + sleep 0.5 + echo "✓ xsettingsd started with light theme configuration" +else + echo "⚠ xsettingsd not found - install it for dynamic GTK theme updates" fi # Restart GTK settings daemon if using GNOME