Hi Mack you can make it simplier because awk can also 'grep' strings: In your polybar module: exec = df -H | awk '/nvme0n1p1/{print $5" - "$4}' The output will be: 61% - 194G In case a script is not necessary...
@makc3 жыл бұрын
This is true. For some reason I had it in my head that it would be better to do this in a separate script. But I can confirm, it works fine either way.
@Mangeshrex_3 жыл бұрын
You're thumbnail god bruh 🙇🙇
@rafaelantonioricardibranco23363 жыл бұрын
I think the "efficient way" is something like: df -h / | awk '{ print $5 " - " $4 }' | tail -n 1 you can change the " - " by any emogi, I guess. And yes, sed -e '1d' at the end should be a little better, and a little harder to read Edit: If are you using awk anyway, just use: df -h / | awk 'NR==2 { print $5 " - " $4 }' makes more sense. Edit 2: in the video, in the "windows part" Mark are calling "dh", not "df".
@carlobucosse54583 жыл бұрын
I have an identical polybar setup as yours. Is there for the centered dots to show the active workspace? I’d like for the active workspace icon to be different
@makc3 жыл бұрын
There is an xworkspaces module that works pretty well for a lot of window managers; but it’s borked in Awesome (also DWM, I think). That’s the best way I know of to achieve something like that.
@carlobucosse54583 жыл бұрын
@@makc do you know if it’s borked in i3wm?
@makc3 жыл бұрын
Polybar has its own i3 module. Should work great there.
@LordChaos19733 жыл бұрын
To delete the first line easily, pipe it through: sed -e '1d'
@hakanozkum3 жыл бұрын
Hey. İ have a issue w polybar. I have a laptop and i've tried your dot conf for awesomewm and polybar. everything is fine on wm side. But when i press left click on polybar, just broken. I didnt anything on polybar. right click and scroll-down/up is okay. I'm a so noob user i know :C
@makc3 жыл бұрын
Try swapping the font to something else maybe? I didn’t install fonts from the AUR, so that could be the issue.
@hakanozkum3 жыл бұрын
@@makc nope. i figured out i think. That all about xwindow. I removed the xwindow module in the modeles.ini everyting is fine now. but idk why thats was happen.
@makc3 жыл бұрын
I literally just got home from work, played with it, and came back here to tell you to ditch the xwindow module. I'm not sure why but that's breaking it for me as well. Might be a polybar issue, because I'm pretty sure it was working fine like two weeks ago. Thanks for watching! Edit: Turns out that this problem can be solved by adding: [bar/awesome] override-redirect = true But, this also makes the bar always stay on top of windows (including full screen ones). I did a little bit of looking around through GitHub issues, and it seems like polybar just doesn't play as nicely with some window managers (apparently awesome is one of them). I think I'll probably just ditch that module for my config, until a fix comes around.
@hakanozkum3 жыл бұрын
@@makc thank u your feedback. We can write a script about the fullscreen i mean stay on top of windows. But this time it will run a little bit slowly. İ will research.
@hakanozkum3 жыл бұрын
Maybe awesome bar is good to us. İ will try to make a theme like this plybar theme. Maybe its better idea.
@sarundayo3 жыл бұрын
What auto-completion plugin do you use? CoC?
@makc3 жыл бұрын
Coc.nvim
@fritzrehde91823 жыл бұрын
Did you recently switch from MacOS to Arch Linux?
@makc3 жыл бұрын
I've been running linux for like a year and a half; but yes