Guest User

Untitled

a guest
Jun 18th, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. mywibox[s].widgets = {
  2.         {
  3.         mycpuimg, myspace, mycpu,
  4.         myspace, mysep, myspace,
  5.         mymemimg, myspace, mymem.widget,
  6.         myspace, mysep, myspace,
  7.         myfsrootimg, myspace, myfsrootlbl, myspace, myfsroot.widget,
  8.  
  9. -- this part procure an error, can i use "if" there?
  10.         if os.execute("df | awk '{ print $6 }' | grep /") == 0 then
  11.         myfsrootimg, myspace, myfsrootlbl, myspace, myfsroot.widget,
  12.         end
  13.  
  14.             layout = awful.widget.layout.horizontal.leftright
  15.         },
  16.         layout = awful.widget.layout.horizontal.rightleft
  17.     }
Add Comment
Please, Sign In to add comment