Configuring The Xmobar Panel In Xmonad

  Рет қаралды 49,445

DistroTube

DistroTube

3 жыл бұрын

One of the trickiest things about setting up the Xmonad tiling window manager is configuring the panel, which for most Xmonad users is Xmobar. When new users look at the example configs and the documentation for Xmobar, they can be overwhelmed by the lengthy manual and the multitude of options available. But it's not as complicated as it seems.
REFERENCED:
► hackage.haskell.org/package/x... - Xmobar Documentation
► raw.githubusercontent.com/jao... - Example Xmobar config
► gitlab.com/dwt1/dotfiles/-/tr... - DT's Xmonad config
► gitlab.com/dwt1/dotfiles/-/tr... - DT's Xmobar config
WANT TO SUPPORT THE CHANNEL?
💰 Patreon: / distrotube
💳 Paypal: www.paypal.com/cgi-bin/webscr...
🛍️ Amazon: amzn.to/2RotFFi
👕 Teespring: teespring.com/stores/distrotube
SOCIAL PLATFORMS:
🗨️ Mastodon: distrotoot.com/@derek
💬 IRC: irc://freenode #distrotube
👫 Reddit: / distrotube
📽️ LBRY: lbry.tv/$/invite/@DistroTube:2
DT ON THE WEB:
🕸️ Website: distrotube.com/
🐿️ Gopherhole: gopher://distro.tube
📁 GitLab: gitlab.com/dwt1
🔊 Audio Podcasts: www.buzzsprout.com/1263722
FREE AND OPEN SOURCE SOFTWARE THAT I USE:
🌐 Brave Browser - brave.com/dis872
📽️ Open Broadcaster Software: obsproject.com/
🎬 Kdenlive: kdenlive.org
🎨 GIMP: www.gimp.org/
🎵 Audacity: www.audacityteam.org/
💻 VirtualBox: www.virtualbox.org/
🗒️ Doom Emacs: github.com/hlissner/doom-emacs
Your support is very much appreciated. Thanks, guys!

Пікірлер: 86
@andrearossato4087
@andrearossato4087 3 жыл бұрын
Hi, I originally wrote xmobar in 2007, when I was heavily contributing to the xmonad development. Later on Jose (jao) took over and added some nice new features, even though I think that the core of the status bar is still very close to what I wrote at that time. For me it is a real joy to see that people are still finding useful and so still using the code I wrote, with others contributing new features, documentation or tutorials like this one, for helping others to efficiently use their computers. This is the beauty of free software and I'm happy I contributed a little bit to it too. Thank you. andrea ps: the configuration file is a text representation of the Haskell data type that stores the configuration variables. What is cool, with Haskell, is that the parser for reading this textual representations of a data types comes for free and you do not have to write one yourself -- and I already needed a parser for reading the template for displaying the collected information. On the other side the built-in data type parser is not forgiving and that may result in incomprehensible (for non haskellers) error messages. But memory footprint and efficient parallel execution of different processes were the main goal -- a status bar should try to run with as little resources as possible in order to minimize its interference with the system it is meant to monitor.
@hhhyyy4375
@hhhyyy4375 3 жыл бұрын
I love you.
@anantgupta7916
@anantgupta7916 3 жыл бұрын
Great, red first line & replied
@anantgupta7916
@anantgupta7916 3 жыл бұрын
@@andrewangel9362 But i will search in duckduckgo
@andrearossato4087
@andrearossato4087 2 жыл бұрын
@@johnrinehart I think you are confusing me with someone else: I never said I was disillusioned with the quality of Linux desktop innovation, far from it, and, actually, I do not have a personal web site. I stopped working on xmobar because I didn't need any more features (I'm still using my original codebase) and when I was kicked out from the xmonad community I started working on a Haskell implementation of the Citation Style Language for Pandoc, which took much of my time -- then, and once again, for lack of time I stopped working on it too and John MacFarlane took over and kept working on what is now pandoc-citeproc. So I left to the free software community a couple of projects that happened to be a bit successful and this is something I'm quite proud of, even though I do not code for the community any longer, but just because I now have different priorities.
@johnrinehart
@johnrinehart 2 жыл бұрын
@@andrearossato4087 Please see my amendment above. My sincerest apologies for the confusion.
@griof
@griof 3 жыл бұрын
It is surprising that a person like you is aware about how good reading docs is. I'm a software engineer, you'd be surprised how many colleges don't care about reading docs properly
@robbyoconnor
@robbyoconnor 3 жыл бұрын
A lot of people seem to have an allergy to basic searching
@Phydoux2112
@Phydoux2112 3 жыл бұрын
If it's digitally searchable, I have no problem with that. I've seen some documents (mostly pdfs created from jpg, png, etc files) that are terrible to read especially if they don't have an index. You can't search for test in a picture. A lot of the stuff on the web is very noob friendly. Even if it's totally geek speak.
@robbyoconnor
@robbyoconnor 3 жыл бұрын
@@Phydoux2112 Most of it is searchable.
@Phydoux2112
@Phydoux2112 3 жыл бұрын
You should do a whole xmonad series. I'd love to see that. Just spend 20 to 30 minutes on something for each video. I think that would be very cool.
@harryedgeworth74
@harryedgeworth74 3 жыл бұрын
Was just here thinking the upload/download icons were mixed up, then I checked your Gitlab and you already realised with your commit 2 days ago :D
@marcovirtual
@marcovirtual 3 жыл бұрын
OMG I spent the entire afternoon customizing my xmonad and xmobar config and here comes another video from DT. THis will help me a lot! Thank you!
3 жыл бұрын
Ofcourse, there is always good content here & not there "Linus ... channel" pff...
3 жыл бұрын
Ohh sei italiano?:)) Be compra un nuovo pc o nuva platforma, DT ha un mostrelino de pc dektop... Ogi linux kernel ha bisogno tanto potere per volare, non e come prima 5, 10, o' 15:) anni fa?! Te salluto, ogni benne "amico". [ ;
@AndersJackson
@AndersJackson 3 жыл бұрын
This is where you are brilliant, DT. Your vidoes have made me start to watch into hacking Linux again. Like 25-30 year ago. :-)
@nekoill
@nekoill 3 жыл бұрын
Yay! I thought about it hard enough and you actually did it, you absolutely lovely person!
@hhhyyy4375
@hhhyyy4375 3 жыл бұрын
Just finished configuring my bar yesterday!
@drishalballaney6590
@drishalballaney6590 3 жыл бұрын
finally, a proper video dedicated to xmobar
@beke2345
@beke2345 3 жыл бұрын
I studied your configs for the last week and this is exactly what I needed. BIG thanks.
@umka7536
@umka7536 3 жыл бұрын
I tried to start from DT config, but is so massive, that I just started from default and built my own config. Only couple things I picked from DT's config.
@beke2345
@beke2345 3 жыл бұрын
@@umka7536 yep same here, but I'm glad that DT covers xmonad so well bcs I'm just starting in this field and I'm pretty sure xmonad is gonna be my favorite wm for a bit.
@wumi2419
@wumi2419 3 жыл бұрын
@@beke2345 Only thing i don't really like is how bad floating windows are for me. XMonad often tries to do something weird to size of windows that should be created as floating, especially if window is trying to open on my vertical screen.
@umka7536
@umka7536 3 жыл бұрын
@@wumi2419 For most common floating apps I just defined rules and particular sizes using doRectFloat and XMonad.StackSet. I took it from DT's config, BTW. import qualified XMonad.StackSet as W ... myManageHook = composeAll [ className =? "Deadbeef" --> doRectFloat (W.RationalRect 0.0 0.03 0.5 0.5) ] Opens Deadbeef floating in the position I want. Deadbeef player window size is 50% of screen horizontally, 47% vertically. Left top corner of window is position on point with (X,Y) = (0% of screen size, 3% of screen size)
@Aerodos12
@Aerodos12 3 жыл бұрын
Might consider adding this to my distro. Thanks for sharing!
@4w0ken
@4w0ken 3 жыл бұрын
true linux lover this guy.
@andrewcarpin2850
@andrewcarpin2850 3 жыл бұрын
Thanks DT! Needed this!
@stomponpie
@stomponpie 2 жыл бұрын
I don't click on a youtube video to get a lecture on reading the documentation! I'm here trying to escape that and get the easy shortcuts that mean I don't learn and have to keep coming back to videos rather than solving problems on my own!
@peteronfilm
@peteronfilm 2 жыл бұрын
This is finally gonna make my xmonad usable 🕺🏽thx!
@thetreeofclues
@thetreeofclues 3 жыл бұрын
I love xmobar. I love the way it (and xmonad) works with my 3 monitors. I even use it in some other window managers.
@DistroTube
@DistroTube 3 жыл бұрын
I played about with xmobar with herbstluftwm once. But ended up using polybar in my herbstluftwm configs because I figured if anyone ever wanted my herbstluftwm config, they probably wouldn't want to use xmobar due to the Haskell dependcies.
@thetreeofclues
@thetreeofclues 3 жыл бұрын
@@DistroTube yeah, people get confused why I have so many packages on my system with such a minimal window manager, haha. Thankfully they're really small packages
@anikbiswasarnob
@anikbiswasarnob 3 жыл бұрын
@@DistroTube DT, polybar is not available in debian. My only option there is to use the default dzen2 and I don't like the way it is. I'll now config xmobar to use with herbstluftwm. Thanks a lot for this video.
@favor94
@favor94 3 жыл бұрын
@@anikbiswasarnob its available if i see on the polybar github page, you can also build it from source
@andrewcarpin2850
@andrewcarpin2850 3 жыл бұрын
Now on to new gentoo content 😬 Edit: only made this comment because my next suggested video was the old gentoo install part 1. KZbin is throwing you under the bus DT!!!!
@arrtemfly
@arrtemfly 3 жыл бұрын
thank you so much, it was such a pain in the arse for me...
@lupanama1960
@lupanama1960 3 жыл бұрын
that's a lot of pp's there
@shan6333
@shan6333 3 жыл бұрын
Hey DT, In default case xmonad only shows 1 workspaces per window but how did you bring all your workspaces visible ???
@iampraneetverma
@iampraneetverma Жыл бұрын
Hey Derek, it's been a year since this video about configuring xmobar in xmonad, i tried to follow it but i think the constant updates in haskell and xmonad packages made it hard to configure, like i can never make the workspace icons work on the left side that "UnsafeStdinReader" does not work properly maybe new imports are necessary or names are changed, can you consider making a fresh new updated video about configuring xmonad and xmobar? Till then i think i have to use tint2 bar but i like xmobar better.
@Phydoux2112
@Phydoux2112 3 жыл бұрын
So, I have 3 monitors. All 3 are 1920x1080 but one is a 39" TV that sits above my 2 smaller 24" monitors. I'm guessing that I could get the monitor placement values from xrandr and put those coordinates in each xmobar config files. Do I have the right idea? I've never gotten your xmobar files to work with my monitor setup and that's probably why.
@poms3559
@poms3559 3 жыл бұрын
Thanks for listening to my comments.
@nikhilmosamkar1689
@nikhilmosamkar1689 2 жыл бұрын
He's the coolest dad
@tamrix
@tamrix 3 жыл бұрын
With your tray bar on your top right, are you just leaving space in your xmobar config and launching trayer (or something similar) within that space?
@DistroTube
@DistroTube 3 жыл бұрын
I have a script that dynamically adjusts the width of xmobar to allow for trayer's width depending on how many icons it has in it.
@starymarine
@starymarine 5 ай бұрын
Are there any "plugin" to show CWM groups with active group on xmobar?
@TheTtmx
@TheTtmx 3 жыл бұрын
Was on this exactly yesterday, what about the systray?
@netbotcl586
@netbotcl586 3 жыл бұрын
Why check for kernel update every 3600 seconds? It only get updated when you reboot, so why not just run it once?
@satria3001Al
@satria3001Al 3 жыл бұрын
You can centralize the modules by putting them between the parentheses "}{", if you use the parentheses as the alignsep, such as ....} %date% {.......
@PierpaoloMingolla
@PierpaoloMingolla 3 жыл бұрын
Wait those are deciseconds!? I thought they were milliseconds. Now I understand the delays in my commands.
@ruirodrigues705
@ruirodrigues705 3 жыл бұрын
the only downside for me in Xmobar is when using it with trayer, if i have apps that insert icons on it, trayer starts to grow and overlaps Xmobar information... I don't know if this is fixable, but it really annoys me... :/
@DistroTube
@DistroTube 3 жыл бұрын
I have a script that adjusts the empty space on my xmobar dynamically to accomodate the icons that are added/removed from trayer. Check out: gitlab.com/dwt1/dotfiles/-/tree/master/.config/xmobar The trayer-padding-icon script is what you want. ;)
@ruirodrigues705
@ruirodrigues705 3 жыл бұрын
@@DistroTube thz a lot DT! :)
@f23anone82
@f23anone82 3 жыл бұрын
guys is there an applet for sound / volume control similar to nm-applet for network applet? So it is minimal and not related to any de
@rialseebran2072
@rialseebran2072 3 жыл бұрын
there is one for pulse it's in the AUR just search for applets
@sambird7
@sambird7 3 жыл бұрын
Hey there, anyone have the problem where the internet speed and CPU widget just say "updating" forever? anyone know how to fix this? I'm pretty much just using DT's dotfiles.
@aserillll
@aserillll 3 жыл бұрын
The internet speed is using the Ethernet interface, yours might not be the same interface so you might have to adjust the “enp6s0” in the Run Network section to be what your computer uses for the interface
@alexburns5767
@alexburns5767 3 жыл бұрын
Only problem with xmobar & xmonad for me is that there's empty space where the xmobar would be on my second monitor, which isn't too big of a deal. Although, maybe I'll just have to make a second bar for my monitor :)
@rialseebran2072
@rialseebran2072 3 жыл бұрын
I think you can fix that. DT has a triple monitor setup on his Gitlab.
@edwardnihal248
@edwardnihal248 3 жыл бұрын
is it possible to have a one window opened and then all programs opened in tabs like in web browsers?
@netbotcl586
@netbotcl586 3 жыл бұрын
you can use the tabbed layout.
@roottoot6028
@roottoot6028 3 жыл бұрын
Those gaps are just a liiiiiiittle big ... ;-))
@YoutubeChannel-gg3hf
@YoutubeChannel-gg3hf 3 жыл бұрын
How did u get the xmonad logo on ur xmobar?
@aserillll
@aserillll 3 жыл бұрын
You need to download the Haskell xpm logo, place it in the .xmonad folder, and then in your xmobar config you need to import the icon and use it when setting the template I can link you my dot files if it would be easier to understand
@richieashton3927
@richieashton3927 3 жыл бұрын
Great Video. Can someone help me? I just want to know how to keybind a program like htop or vifm. Already bound most of my programs in xmonad. But don't know the one to launch a terminal based program. New to linux. Using Arch Linux with Xmonad Window Manager. Don't need any xmobar. Just want to know the command or how to write it. Thanks in Advance. Bless.
@Phydoux2112
@Phydoux2112 3 жыл бұрын
I'm no pro but since no one has answered your question, I figured I'd share my line for htop. , ("M-M1-h", spawn (myTerminal ++ " -e htop ")) That's Mod4+Alt+h to load htop. You can change the keybinding like this , ("M-M1-m", spawn (myTerminal ++ " -e mc ")) to load something else. That second line opens midnight commander in a terminal. I've got those mixed in with my other keybindings. Hope that helps! Enjoy!
@user-hk7uj9ng1n
@user-hk7uj9ng1n 2 жыл бұрын
how to add dependency in xmobar otf-font-awesome
@moha_linus
@moha_linus 3 жыл бұрын
Hello sir First thank you for your efforts Second I have problem with xmonad config Without clickable workspace I can't switch between workspaces only if i click on : Keymod shift and "+" I can't use numbers My keyboard us french language Is this the problem?? And thnks
@cedricvillani8502
@cedricvillani8502 3 жыл бұрын
No reply what a surprise lol, keep subscribing, pressing Like and Donate, there ya go
@ad_sidera_virgines
@ad_sidera_virgines 3 жыл бұрын
Hello there !
@robert58
@robert58 3 жыл бұрын
What's up
@ad_sidera_virgines
@ad_sidera_virgines 3 жыл бұрын
Nothing crazy is going on here ^^
@archimanchakraborty7772
@archimanchakraborty7772 3 жыл бұрын
hey how did you add systray in xmobar
@aserillll
@aserillll 3 жыл бұрын
He’s using a program called “trayer” and then applets like nm-applet for network and the volumeicon applet to control volume.
@harryvendryes
@harryvendryes 2 жыл бұрын
Laptop screens are so small that I display just text (no icons). As a single user Arch machine, one should know what all those letters and numbers refer to. Saved space = more info.
@brandonlee712
@brandonlee712 3 жыл бұрын
stupid question, would this work on pop_os
@DistroTube
@DistroTube 3 жыл бұрын
Every window manager should work on every distro.
@brandonlee712
@brandonlee712 3 жыл бұрын
@@DistroTube Thats what i thought. I must have screwed something up lol. All I get is a black screen with red outlines. *shrug* i should have read the fucking manual lol :)
@henninb
@henninb 3 жыл бұрын
I prefer to use polybar in xmonad.
@stonebeard
@stonebeard 3 жыл бұрын
early comment
@robert58
@robert58 3 жыл бұрын
Good for you
@dougtilaran3496
@dougtilaran3496 2 жыл бұрын
RTFMP
@manuelarias6013
@manuelarias6013 3 жыл бұрын
Primero = firts
Explaining Everything In My XMonad Config
34:22
DistroTube
Рет қаралды 35 М.
Hacking On Xmonad - ManageHooks, Prompts and Hoogle
19:52
DistroTube
Рет қаралды 16 М.
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 21 МЛН
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН
Summer shower by Secret Vlog
00:17
Secret Vlog
Рет қаралды 7 МЛН
Configuring Dwm's Panel Is Easy With Dwmblocks
17:53
DistroTube
Рет қаралды 44 М.
Why you'd want a TILING WINDOW MANAGER, and why I DON'T
16:56
The Linux Experiment
Рет қаралды 197 М.
DWM vs Xmonad - Which is Better?
37:57
The Linux Cast
Рет қаралды 15 М.
Qtile Is My New (Old) Window Manager
26:38
DistroTube
Рет қаралды 38 М.
What Are Linux Users Putting In Their Config Files?
31:47
DistroTube
Рет қаралды 92 М.
Getting Started With Xmonad
42:47
DistroTube
Рет қаралды 339 М.
You want to learn Haskell. This is why.
3:00
peppidesu
Рет қаралды 108 М.
Want A List Of Your Keybindings? Write A Shell Script!
27:11
DistroTube
Рет қаралды 24 М.
Why is Xmonad So Hard?
20:18
The Linux Cast
Рет қаралды 10 М.
Hacking on Xmonad - GridSelect, ToggleStruts, ToggleBorders
12:14
Самые крутые школьные гаджеты
0:49
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 9 МЛН
BEKMOBILDA Tecno Camon 30 smartfoni🔥🤩 #bekmobil
1:01
Bekmobil shorts
Рет қаралды 2,3 МЛН
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 1,3 МЛН