Screen filter

This commit is contained in:
Geoffrey Frogeye 2017-02-11 16:22:44 +01:00
parent 78f7d99b09
commit 93ca57c9a3
2 changed files with 26 additions and 0 deletions

View file

@ -342,6 +342,21 @@ mode "$mode_screen_HDMI1" {
bindsym Escape mode "default"
}
bindsym $mod+y mode "$mode_temp"
set $mode_temp Temperature [R] Red [D] Dust storm [C] Campfire [O] Normal [A] All nighter [B] Blue
mode "$mode_temp" {
bindsym r exec sct 1000
bindsym d exec sct 2000
bindsym c exec sct 4500
bindsym o exec sct
bindsym a exec sct 8000
bindsym b exec sct 10000
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
# Start i3bar to display a workspace bar (plus the system information i3status if available)
bar {
#i3bar_command ~/.config/lemonbar/i3_lemonbar.sh

View file

@ -251,6 +251,17 @@ function install-preferences {
elif [ $ARCH == 1 ]; then
altInst qutebrowser
fi
# Screen filter
if [ $ARCH == 1 ]; then
altInst sct
elif [ $DEBIAN == 1 ]; then
if [ ! -f $DEBLOC_ROOT/usr/bin/sct ]; then
TMP=$(mktemp)
wget http://www.tedunangst.com/flak/files/sct.c -O $TMP
cc -std=c99 -O2 -I /usr/X11R6/include -o $DEBLOC_ROOT/usr/bin/sct $TMP -L /usr/X11R6/lib -lm -lX11 -lXrandr
fi
fi
fi
if [ $EXTRA == 1 ]; then