add turn off LCD and get location to damietta

This commit is contained in:
Dr. Amr Osman 2019-03-30 01:01:52 +02:00
parent 382c465e1f
commit e25eac0257
5 changed files with 4 additions and 4 deletions

View File

@ -123,6 +123,7 @@ mode "Leave" {
bindsym z exec --no-startup-id prompt "Suspend computer?" "systemctl suspend";mode default
bindsym r exec --no-startup-id prompt "Reboot computer?" "$reboot"
bindsym h exec --no-startup-id prompt "Hibernate computer?" "$hibernate";mode default
bindsym o exec --no-startup-id xset dpms force off;mode default
bindsym e exit
# back to normal: Enter or Escape
bindsym Return mode "default"
@ -350,7 +351,6 @@ bindsym Shift+Print exec --no-startup-id maimpick
bindsym $mod+Print exec --no-startup-id dmenurecord
bindsym $mod+Scroll_Lock exec --no-startup-id "killall screenkey || screenkey"
bindsym $mod+Delete exec $stoprec
bindsym $mod+BackSpace exec --no-startup-id xset dpms force off
bindsym $mod+Shift+BackSpace exec --no-startup-id systemctl suspend

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 785 KiB

View File

@ -5,7 +5,7 @@
export PATH="$PATH:$(du "$HOME/.scripts/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
export EDITOR="nvim"
export TERMINAL="st"
export BROWSER="firefox"
export BROWSER="chromium"
export READER="zathura"
export FILE="vu"
export BIB="$HOME/Documents/LaTeX/uni.bib"

View File

@ -1,6 +1,6 @@
#!/bin/sh
# Updates weather forecast
ping -q -w 1 -c 1 "$(ip r | grep default | tail -1 | cut -d ' ' -f 3)" >/dev/null || exit
location="$1"; [ -z "$location" ] || location="$location+"
location="$1"; [ -z "$location" ] || location="$location"
curl -s "wttr.in/$location" > /tmp/weatherreport
pkill -RTMIN+5 i3blocks && notify-send "🌞 Weather forecast updated."

View File

@ -1,5 +1,5 @@
#!/bin/sh
[ "$(stat -c %y /tmp/weatherreport | awk '{print $1}')" != "$(date '+%Y-%m-%d')" ] && getforecast
[ "$(stat -c %y /tmp/weatherreport | awk '{print $1}')" != "$(date '+%Y-%m-%d')" ] && getforecast damietta
case $BLOCK_BUTTON in
1) $TERMINAL -e less -S -R /tmp/weatherreport ;;