mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Change rules with i3 opening some windows as floating
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
case $BLOCK_BUTTON in
|
||||
1) printf " "$(date '+%d/%m/%y') ; exit ;;
|
||||
2|3) i3-sensible-terminal -e "$SHELL -c 'cal -y $(date +'%Y')';$SHELL" &;;
|
||||
2|3) i3-sensible-terminal -r i3blocks-clock-term --geometry 68x35 -e "$SHELL -c \"cal -y $(date +'%Y');$SHELL\"" &>/dev/null & ;;
|
||||
*) printf " "$(date '+%H:%M')
|
||||
esac
|
||||
|
@ -5,7 +5,7 @@ import os
|
||||
|
||||
button = os.environ.get('BLOCK_BUTTON')
|
||||
if button == '1':
|
||||
os.system("i3-sensible-terminal -e 'pacaur -Syu'")
|
||||
os.system("i3-sensible-terminal -r i3blocks-update-term -e 'pacaur -Syu'")
|
||||
|
||||
updates = commands.getstatusoutput("/usr/bin/checkupdates | wc -l")[1]
|
||||
if updates and updates != '0':
|
||||
|
Reference in New Issue
Block a user