A Decently Good Way to Create Custom Polybar Modules

  Рет қаралды 4,697

MAKC

MAKC

Күн бұрын

Пікірлер: 19
@linuxinfrench9388
@linuxinfrench9388 3 жыл бұрын
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...
@makc
@makc 3 жыл бұрын
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_
@Mangeshrex_ 3 жыл бұрын
You're thumbnail god bruh 🙇🙇
@rafaelantonioricardibranco2336
@rafaelantonioricardibranco2336 3 жыл бұрын
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".
@carlobucosse5458
@carlobucosse5458 3 жыл бұрын
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
@makc
@makc 3 жыл бұрын
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.
@carlobucosse5458
@carlobucosse5458 3 жыл бұрын
@@makc do you know if it’s borked in i3wm?
@makc
@makc 3 жыл бұрын
Polybar has its own i3 module. Should work great there.
@LordChaos1973
@LordChaos1973 3 жыл бұрын
To delete the first line easily, pipe it through: sed -e '1d'
@hakanozkum
@hakanozkum 3 жыл бұрын
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
@makc
@makc 3 жыл бұрын
Try swapping the font to something else maybe? I didn’t install fonts from the AUR, so that could be the issue.
@hakanozkum
@hakanozkum 3 жыл бұрын
@@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.
@makc
@makc 3 жыл бұрын
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.
@hakanozkum
@hakanozkum 3 жыл бұрын
@@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.
@hakanozkum
@hakanozkum 3 жыл бұрын
Maybe awesome bar is good to us. İ will try to make a theme like this plybar theme. Maybe its better idea.
@sarundayo
@sarundayo 3 жыл бұрын
What auto-completion plugin do you use? CoC?
@makc
@makc 3 жыл бұрын
Coc.nvim
@fritzrehde9182
@fritzrehde9182 3 жыл бұрын
Did you recently switch from MacOS to Arch Linux?
@makc
@makc 3 жыл бұрын
I've been running linux for like a year and a half; but yes
Polybar (Volume II)
24:22
MAKC
Рет қаралды 9 М.
Inside the V3 Nazi Super Gun
19:52
Blue Paw Print
Рет қаралды 2,8 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Using Polybar with the Awesome WM
29:44
MAKC
Рет қаралды 54 М.
Polybar: How To Define And Format Custom Script Modules
20:40
Brodie Robertson
Рет қаралды 12 М.
The Pywal Video
12:34
MAKC
Рет қаралды 7 М.
Become a shell wizard in ~12 mins
12:25
CODE IS EVERYTHING
Рет қаралды 269 М.
How A Steam Bug Deleted Someone’s Entire PC
11:49
Kevin Fang
Рет қаралды 1 МЛН
Learn "fuser", a little-known Linux workhorse command!
7:23
Veronica Explains
Рет қаралды 133 М.
Making a DWM Status Bar and Adding the Bling
30:36
OldTechBloke
Рет қаралды 33 М.
Customizing i3Blocks For the Ultimate Status Bar on i3WM
27:23
The Linux Cast
Рет қаралды 38 М.