polybar | A fast and easy-to-use status bar
kandi X-RAY | polybar Summary
kandi X-RAY | polybar Summary
The main purpose of Polybar is to help users create awesome status bars. It has built-in functionality to display information about the most commonly used services. Some of the services included so far:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of polybar
polybar Key Features
polybar Examples and Code Snippets
Community Discussions
Trending Discussions on polybar
QUESTION
I wrote a script to show down- and up-speed of my notebook with polybar. The problem I run into is to put the output of echo
in formation.
ATM my output looks like this (bash script loops in terminal) ...
...ANSWER
Answered 2022-Jan-08 at 18:45Align left with printf
:
QUESTION
I am trying to edit my .config/awesome/theme.lua
and .config/theme/rc.lua
files for AwesomeWM. I have the following lines in the theme.lua
file:
ANSWER
Answered 2021-Aug-17 at 16:17Try something like this in your rc.lua, it works for me
QUESTION
I'm using manjaro-linux-i3 with polybar and I'm currently working on my multiple monitor setup. I have a TV which I normally use with the amplifier it is connected to. In addition I have my desk with a triple monitor setup which I normally use with my headphones for audio output. One of my screens is in portrait orientation which always messes up my login screen.
I'm able to change my audio ouput and my active monitor as I wish. But I want it to be more efficient. At the moment I'm using arandr to change my monitor and pavucontrol to change my audio output when needed.
I want that my login manager(lightdm) is always displayed correctly on my monitors(even on the portrait one). It would be nice if anybody could give me way how to combine changing monitors and the audio output in one blow. So that I don't have to this every time manually.
...ANSWER
Answered 2021-Apr-27 at 14:00I have similar setup and I got everything working what you might want if I understood you corretely.
If you setup everything right, then your loginmanager should always be displayed on the monitor which is active at boot and you can switch your monitors&sink with a simple keybind.
First, you can add a script to lightdm to config your monitors so that everything is displayed correctely. But be aware that a broken script can leed to the effect that your loginmanager won't be loaded correctly (blackscrren).
in /etc/lightdm/lightdm.conf
you can define a script at #greeter-setup-script=
. Simply uncomment the line and add the path to your script.
An easy way to config your monitors the way you want is to use arandr. Simply config your monitor the ways you want and save the setup. You will be saving an usual xrandr command, which can be used in your script.
Here is my script. It is very basic and actually only checks if a monitor of my desk is active. If so, it initialises the monitors of my desk. If not, it initialises my tv. It also sets the audio output I use with those monitors.
To get a list of all active monitors use this command:
xrandr --listactivemonitors | awk '!/Monitors/ {print $4}'
To get a list off all sinks(audio output) use this command:
pacmd list-sinks | grep -e 'name:' -e 'index:' | awk '{print $2}'| awk '{print substr($0, 2, length($0) - 2)}'
Now you can change my commands (sink and monitor names) with the onces you need. You can execute the script in the terminal so get feedback of the choosen sink and monitor (for testing). Don't forget to make your script executable else it won't work.
I got a similar script to manually change between my tv and my desk (mirroring scrrens, duplicate, tv-only, ect)
It too changes the sink according to the selected monitors. As you are using polybar too, you might notice that I relaunch polybar with sh /home/lluks/.config/polybar/launch.sh
This is the script.
It ensures that my applets are displayed on the main monitor as poylbar can only display them on one monitor. This is archieved by using a 2 diffrent bars for poylbar.
For this script to work, you need dmenu and rofi. If I remember corretely, you also need Font Awesome for the icons.
QUESTION
In my i3 config file I have many scripts that I want to run when i3 starts, including a script to select a wallpaper and another to run polybar. Both of these scripts worked perfectly for more than a year, but suddenly they started behaving strangely: sometimes none of them run, sometimes just one of them run and sometimes only half of the script runs (wtf).
What I mean by only running half of the script is that, for example, polybar might kill all instances of polybar (first line) but not run my bar (second line), or the wal script might change the colors as intended, but not set the wallpaper.
All other scripts in the config run perfectly fine, except for these two. Running them individually in the terminal always works.
This is a part of .config/i3/config:
...ANSWER
Answered 2021-Feb-08 at 13:16If, as you say, only half the script runs. Most likely, the parts that apparently don't run, they do actually run, but fail for some reason and you don't see the effect those commands normally have.
Programs generally write some kind of error messages in these cases. So this is mostly a debugging issue.
For polybar, you already redirect the output to a logfile at /tmp/polybar1.log
. This file will most likely contain information about why the bar couldn't start.
I suggest you do the same for your pywal script to see why it fails to set the wallpaper.
QUESTION
I'm using Polybar 3.4.0 and I would like to know if it was possible to put one bar at the top of the screen and another one at the bottom.
I would like to display a lot of information at the same time, but my bar isn't large enough.
If someone knows a better alternative to polybar to perform this, you suggestions are welcome.
I'm using i3-wm 4.18.1 on Ubuntu 20.04 LTS.
Thank you for your help.
...ANSWER
Answered 2020-May-17 at 13:10Yes this is possible.
You have to create multiple bars and position one of them at the top and the other at the bottom.
In the bar section for each bar, there is a bottom
setting. So for one bar you would set bottom = true
and for the other bottom = false
. This could look something like this:
QUESTION
I'm trying to customize my Ubuntus on both of my computers with i3-wm, polybar and zsh (with oh-my-zsh on it)
I have some issues on one of my computers I haven't on the other one, despite proceeding on the same way and using the same config files for both of them in order to have the same workspace on both of my devices.
On zsh, I'm using the powerlevel10k/powerlevel10k
theme I installed on oh-my-zsh to have a more beautiful terminal.
The thing is that the shell is showing nice font-awesome icons like the branch icon when I'm on a git project, or the clock icon next to the displayed time, etc.
This working perfectly on my first computer, but not on the second one. The icons are not displayed, so my terminal is less attractive on it.
I have the same problem with polybar. Some icons are well rendered on one computer, while on the other one, they are not rendered. Sometimes, they're even replaced by strange Asian (I think it's from an Asian language but I'm not sure) characters.
I would like to know why I don't have the same result on both devices and how to fix it on computer 2.
Here is a summary of the used versions:
...ANSWER
Answered 2020-Apr-12 at 10:14You need to install a capable font and configure your terminal to use. Since you are using powerlevel10k, it's a good idea to use the font that powerlevel10k recommends.
Meslo Nerd Font patched for Powerlevel10kGorgeous monospace font designed by Jim Lyles for Bitstream, customized by the same for Apple, further customized by André Berg, and finally patched by yours truly with customized scripts originally developed by Ryan L McIntyre of Nerd Fonts. Contains all glyphs and symbols that Powerlevel10k may need. Battle-tested in dozens of different terminals on all major operating systems.
Automatic font installationIf you are using iTerm2 or Termux,
p10k configure
can install the recommended font for you. Simply answerYes
when asked whether to install Meslo Nerd Font.If you are using a different terminal, proceed with manual font installation.
Manual font installationDownload these four ttf files:
Double-click on each file and click "Install". This will make
MesloLGS NF
font available to all applications on your system. Configure your terminal to use this font:
- iTerm2: Open iTerm2 → Preferences → Profiles → Text and set Font to
MesloLGS NF
. Alternatively, typep10k configure
and answerYes
when asked whether to install Meslo Nerd Font.- Apple Terminal Open Terminal → Preferences → Profiles → Text, click Change under Font and select
MesloLGS NF
family.- Hyper: Open Hyper → Edit → Preferences and change the value of
fontFamily
undermodule.exports.config
toMesloLGS NF
.- Visual Studio Code: Open File → Preferences → Settings, enter
terminal.integrated.fontFamily
in the search box and set the value toMesloLGS NF
.- GNOME Terminal (the default Ubuntu terminal): Open Terminal → Preferences and click on the selected profile under Profiles. Check Custom font under Text Appearance and select
MesloLGS NF Regular
.- Konsole: Open Settings → Edit Current Profile → Appearance, click Select Font and select
MesloLGS NF Regular
.- Tilix: Open Tilix → Preferences and click on the selected profile under Profiles. Check Custom font under Text Appearance and select
MesloLGS NF Regular
.- Windows Console Host (the old thing): Click the icon in the top left corner, then Properties → Font and set Font to
MesloLGS NF
.- Windows Terminal (the new thing): Open Settings (
Ctrl+,
), search forfontFace
and set value toMesloLGS NF
for every profile.- Termux: Type
p10k configure
and answerYes
when asked whether to install Meslo Nerd Font.IMPORTANT: Run
p10k configure
after changing terminal font. The old~/.p10k.zsh
may work incorrectly with the new font.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install polybar
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page