diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-09-24 12:13:36 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-09-24 12:13:36 +0200 |
commit | 23a888aa872a5deefc000288932ea213f1415402 (patch) | |
tree | adc15c4aa34bc0dc28f5e42a98152241a08b2fd2 | |
parent | f809e61b33336a0959562d40ab94cd335ad72e15 (diff) |
add xsettingsd for live gtk theme switching
-rw-r--r-- | .config/i3/autostart##template | 1 | ||||
-rw-r--r-- | .config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml | 44 | ||||
-rwxr-xr-x | .local/share/bin/mode | 1 |
3 files changed, 46 insertions, 0 deletions
diff --git a/.config/i3/autostart##template b/.config/i3/autostart##template index 6c33a94..be02602 100644 --- a/.config/i3/autostart##template +++ b/.config/i3/autostart##template @@ -15,6 +15,7 @@ xset r rate 250 40 autocutsel & fcitx5 -d zsh -c "xbindkeys -f ~/.config/xbindkeys/main" +xfsettingsd & {% if yadm.hostname == "thoncc" %} xdimmer -t 45 -p 3 & light-locker --no-late-locking & diff --git a/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml b/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml new file mode 100644 index 0000000..c0435d9 --- /dev/null +++ b/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<channel name="xsettings" version="1.0"> + <property name="Net" type="empty"> + <property name="ThemeName" type="string" value="Skeuos-Blue-Dark"/> + <property name="IconThemeName" type="empty"/> + <property name="DoubleClickTime" type="empty"/> + <property name="DoubleClickDistance" type="empty"/> + <property name="DndDragThreshold" type="empty"/> + <property name="CursorBlink" type="empty"/> + <property name="CursorBlinkTime" type="empty"/> + <property name="SoundThemeName" type="empty"/> + <property name="EnableEventSounds" type="empty"/> + <property name="EnableInputFeedbackSounds" type="empty"/> + </property> + <property name="Xft" type="empty"> + <property name="DPI" type="empty"/> + <property name="Antialias" type="empty"/> + <property name="Hinting" type="empty"/> + <property name="HintStyle" type="empty"/> + <property name="RGBA" type="string" value="rgb"/> + </property> + <property name="Gtk" type="empty"> + <property name="CanChangeAccels" type="empty"/> + <property name="ColorPalette" type="empty"/> + <property name="FontName" type="string" value="Inter 11"/> + <property name="MonospaceFontName" type="string" value="JetBrainsMono Nerd Font 10"/> + <property name="IconSizes" type="empty"/> + <property name="KeyThemeName" type="empty"/> + <property name="ToolbarStyle" type="empty"/> + <property name="ToolbarIconSize" type="empty"/> + <property name="MenuImages" type="empty"/> + <property name="ButtonImages" type="empty"/> + <property name="MenuBarAccel" type="empty"/> + <property name="CursorThemeName" type="string" value="OpenZone_Black"/> + <property name="CursorThemeSize" type="empty"/> + <property name="DecorationLayout" type="string" value="menu:minimize,maximize,close"/> + <property name="DialogsUseHeader" type="empty"/> + <property name="TitlebarMiddleClick" type="empty"/> + </property> + <property name="Gdk" type="empty"> + <property name="WindowScalingFactor" type="empty"/> + </property> +</channel> diff --git a/.local/share/bin/mode b/.local/share/bin/mode index 27851e2..e25404b 100755 --- a/.local/share/bin/mode +++ b/.local/share/bin/mode @@ -92,6 +92,7 @@ switch_gtk() { sed "s/-Light/-Dark/" -i ~/.config/gtk-3.0/settings.ini sed "s/gtk-application-prefer-dark-theme.*/gtk-application-prefer-dark-theme=true/" -i ~/.config/gtk-3.0/settings.ini fi + grep gtk-theme-name .config/gtk-3.0/settings.ini | cut -f2 -d= | xargs xfconf-query -c xsettings -p /Net/ThemeName -s } switch_fcitx5() { |