add script to change colors
This commit is contained in:
parent
3cd70ee110
commit
7a9999725d
12
scripts/color-mode
Executable file
12
scripts/color-mode
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
xcolor() { xrdb -query | grep -Po "color$1:\s+\K#\w+"; }
|
||||
|
||||
xrdb -override $XDG_CONFIG_HOME/x/$1
|
||||
test "$1" == light &&
|
||||
xsetroot -fg $(xcolor 14) -bg $(xcolor 11) -bitmap ~/img/tiles/tile.xbm
|
||||
test "$1" == dark &&
|
||||
xsetroot -fg $(xcolor 6) -bg $(xcolor 0) -bitmap ~/img/tiles/tile.xbm
|
||||
|
||||
pkill -USR1 'qutebrowser|urxvt'
|
||||
$XDG_CONFIG_HOME/bspwm/bspwmrc
|
Loading…
Reference in New Issue
Block a user