User Tools

Site Tools


sway:dark-mode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
sway:dark-mode [2020/10/13 17:49] adminsway:dark-mode [2020/10/14 16:33] admin
Line 3: Line 3:
  
 Unlike Desktop Environments like Gnome and KDE, Window Managers like Unlike Desktop Environments like Gnome and KDE, Window Managers like
-sway do not come with all the tools you might need or want. It's up to+**sway** do not come with all the tools you might need or want. It's up to
 the user to perceive a need, do the research and then install, the user to perceive a need, do the research and then install,
 configure and use the appropriate tools for the job. Notwithstanding configure and use the appropriate tools for the job. Notwithstanding
Line 11: Line 11:
 satisfaction of knowing what's going on. satisfaction of knowing what's going on.
  
-In my own history through fvwm, fluxbox, i3wm and now sway I've never+In my own history through **fvwm****fluxbox****i3wm** and now **sway** I've never
 really wanted to bother with themes. I just made terminals and emacs really wanted to bother with themes. I just made terminals and emacs
 have a black background and other programs could do what ever they have a black background and other programs could do what ever they
Line 29: Line 29:
 customising and a script that I use to do the flick. customising and a script that I use to do the flick.
  
-All of this is on Fedora-31.+All of this is on Fedora-31 but should be similar for other Linux distros.
  
 Apologies if this is all obvious and well documented elsewhere. It was a journey for me and non-trivial. Apologies if this is all obvious and well documented elsewhere. It was a journey for me and non-trivial.
Line 163: Line 163:
 Thanks to redditor r/progandy for this: Thanks to redditor r/progandy for this:
  
-''**qt5ct**(1)'' is the key.+''**qt5ct**(1)'' is the key - install it (Fedora) with: 
 + 
 +<code> 
 +sudo dnf install qt5ct 
 +</code>
  
 This needs to be in the session environment: This needs to be in the session environment:
Line 259: Line 263:
     dconf write /org/gnome/desktop/interface/gtk-theme "'$new_gtk_theme'"     dconf write /org/gnome/desktop/interface/gtk-theme "'$new_gtk_theme'"
     #gsettings set org.gnome.desktop.interface gtk-theme $new_gtk_theme     #gsettings set org.gnome.desktop.interface gtk-theme $new_gtk_theme
 +
 +    f=~/.config/qt5ct/qt5ct.conf
 +    [[ -w $f ]] &&
 +        sed -i "s/^style=.*/style=$new_gtk_theme/" $f
  
     [[ "$KITTY_WINDOW_ID" ]] &&     [[ "$KITTY_WINDOW_ID" ]] &&
sway/dark-mode.txt · Last modified: 2021/01/07 23:54 by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki