1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Move i3blocks config into i3 directory

This commit is contained in:
2016-04-02 20:01:07 +01:00
parent 0a44260c49
commit 2e634ae33f
19 changed files with 3 additions and 3 deletions

13
.config/i3/blocks/updates Executable file
View File

@ -0,0 +1,13 @@
#!/bin/python2
import commands
import os
button = os.environ.get('BLOCK_BUTTON')
if button == '1':
os.system("i3-sensible-terminal -e 'yaourt -Syua'")
updates = commands.getstatusoutput("/usr/bin/checkupdates | wc -l")[1]
if updates and updates != '0':
print updates
print updates