Gammastep waybar
This commit is contained in:
parent
2c4ef97a1b
commit
156ff9221d
|
@ -17,7 +17,7 @@ unless ($pid) {
|
|||
open STDOUT, '>>/dev/null';
|
||||
open STDERR, '>>/dev/null';
|
||||
|
||||
`gammastep -l $lat_lon -b 1:0.7`;
|
||||
`gammastep -l $lat_lon -b 0.7:0.3`;
|
||||
}
|
||||
|
||||
sub fetch_lat_lon
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
RUNNING=$(pgrep gammastep)
|
||||
|
||||
if [[ $1 == 'toggle' ]]; then
|
||||
echo "toggling"
|
||||
if [ "$RUNNING" ]; then
|
||||
kill -9 $RUNNING 2&>1 /dev/null
|
||||
else
|
||||
$HOME/scripts/sway/gammastep.pl
|
||||
fi
|
||||
RUNNING=$(pgrep gammastep)
|
||||
fi
|
||||
|
||||
|
||||
if [ "$RUNNING" ]; then
|
||||
echo '{"text":"ɣ","icon":"ɣ","tooltip":"Disable Gammastep","class":"enabled"}'
|
||||
else
|
||||
echo '{"text":"ɣ","icon":"ɣ","tooltip":"Enable Gammastep","class":"disabled"}'
|
||||
fi
|
Loading…
Reference in New Issue