add faff theme
This commit is contained in:
parent
a025d08b52
commit
ed63dac495
@ -100,6 +100,28 @@ schemas:
|
||||
foreground: '#454545'
|
||||
normal: *lupan-light-normal
|
||||
bright: *bright-colors
|
||||
faff: &faff
|
||||
primary:
|
||||
background: '#cdc8b1'
|
||||
foreground: '#000000'
|
||||
normal:
|
||||
black: '#000000'
|
||||
red: '#cd0000'
|
||||
green: '#008b00'
|
||||
yellow: '#ffff00'
|
||||
blue: '#0000ee'
|
||||
magenta: '#8b008b'
|
||||
cyan: '#008b8b'
|
||||
white: '#ffffff'
|
||||
bright:
|
||||
black: '#666666'
|
||||
red: '#ec6261'
|
||||
green: '#008b00'
|
||||
yellow: '#f0c649'
|
||||
blue: '#63b4f6'
|
||||
magenta: '#cb77f9'
|
||||
cyan: '#86d7db'
|
||||
white: '#d3d2d1'
|
||||
|
||||
colors: *dark
|
||||
|
||||
|
@ -38,6 +38,7 @@ program[suspend] = systemctl suspend
|
||||
program[term] = alacritty
|
||||
program[term2] = st
|
||||
program[theme_dark] = lupan-set-theme dark
|
||||
program[theme_faff] = lupan-set-theme faff
|
||||
program[theme_light] = lupan-set-theme light
|
||||
program[volume_dec] = pactl set-sink-volume @DEFAULT_SINK@ -10%
|
||||
program[volume_inc] = pactl set-sink-volume @DEFAULT_SINK@ +10%
|
||||
@ -55,6 +56,7 @@ bind[mixer] = MOD+Control+p
|
||||
bind[suspend] = MOD+Control+s
|
||||
bind[term2] = MOD+Control+Return
|
||||
bind[theme_dark] = MOD+Control+d
|
||||
bind[theme_faff] = MOD+Control+f
|
||||
bind[theme_light] = MOD+Control+l
|
||||
bind[volume_dec] = XF86AudioLowerVolume
|
||||
bind[volume_inc] = XF86AudioRaiseVolume
|
||||
|
@ -5,11 +5,17 @@ THEME="$1"
|
||||
if [ "$THEME" = dark ]; then
|
||||
SIGNAL=USR1
|
||||
BGCOLOR=#4a4a4a
|
||||
GTK_THEME=Materia-dark
|
||||
elif [ "$THEME" = light ]; then
|
||||
SIGNAL=USR2
|
||||
BGCOLOR=#dde1e3
|
||||
GTK_THEME=Materia-light
|
||||
elif [ "$THEME" = faff ]; then
|
||||
SIGNAL=USR2
|
||||
BGCOLOR=#4a4a4a
|
||||
GTK_THEME=Materia-light
|
||||
else
|
||||
echo "error: unknown theme: should be either dark or light" >&2
|
||||
echo "error: unknown theme: should be either dark, light or faff" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -28,7 +34,7 @@ pkill -$SIGNAL -x st
|
||||
|
||||
# GTK
|
||||
if [ -f ~/.config/xsettingsd/xsettingsd.conf ]; then
|
||||
sed -i -E "s#(Net/ThemeName) .*#\\1 \"Materia-$THEME\"#" ~/.config/xsettingsd/xsettingsd.conf
|
||||
sed -i -E "s#(Net/ThemeName) .*#\\1 \"${GTK_THEME}\"#" ~/.config/xsettingsd/xsettingsd.conf
|
||||
pkill -HUP -x xsettingsd
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user