polybar | A fast and easy-to-use status bar

 by   polybar C++ Version: 3.6.3 License: MIT

kandi X-RAY | polybar Summary

kandi X-RAY | polybar Summary

polybar is a C++ library typically used in Utilities applications. polybar has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub, GitLab.

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

            kandi-support Support

              polybar has a medium active ecosystem.
              It has 12591 star(s) with 610 fork(s). There are 127 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 135 open issues and 1842 have been closed. On average issues are closed in 1020 days. There are 66 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of polybar is 3.6.3

            kandi-Quality Quality

              polybar has 0 bugs and 0 code smells.

            kandi-Security Security

              polybar has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              polybar code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              polybar is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              polybar releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 79 lines of code, 3 functions and 1 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of polybar
            Get all kandi verified functions for this library.

            polybar Key Features

            No Key Features are available at this moment for polybar.

            polybar Examples and Code Snippets

            No Code Snippets are available at this moment for polybar.

            Community Discussions

            QUESTION

            text formating to specific width
            Asked 2022-Jan-08 at 18:53

            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:45

            Align left with printf:

            Source https://stackoverflow.com/questions/70635276

            QUESTION

            How do I disable the window border in theme.lua/rc.lua (AwesomeWM)
            Asked 2021-Aug-22 at 14:12

            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:17

            Try something like this in your rc.lua, it works for me

            Source https://stackoverflow.com/questions/68611343

            QUESTION

            Automatically use desired monitor and the corresponding audio ouput
            Asked 2021-Apr-27 at 14:00

            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:00

            I 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.

            Source https://stackoverflow.com/questions/67283736

            QUESTION

            I3wm config randomly runs (or not) scripts
            Asked 2021-Feb-08 at 13:16

            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:16

            If, 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.

            Source https://stackoverflow.com/questions/66100527

            QUESTION

            Is it possible to have one polybar (or any other i3bar) on top and one other on the bottom of the same screen?
            Asked 2020-May-17 at 13:10

            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:10

            Yes 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:

            Source https://stackoverflow.com/questions/61845127

            QUESTION

            Why are Font Awesome characters not rendered or replaced on my terminal shell?
            Asked 2020-Apr-12 at 10:14

            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:14

            You 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 Powerlevel10k

            Gorgeous 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 installation

            If you are using iTerm2 or Termux, p10k configure can install the recommended font for you. Simply answer Yes when asked whether to install Meslo Nerd Font.

            If you are using a different terminal, proceed with manual font installation.

            Manual font installation

            Download 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, type p10k configure and answer Yes 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 under module.exports.config to MesloLGS NF.
            • Visual Studio Code: Open File → Preferences → Settings, enter terminal.integrated.fontFamily in the search box and set the value to MesloLGS 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 for fontFace and set value to MesloLGS NF for every profile.
            • Termux: Type p10k configure and answer Yes 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.

            Source https://stackoverflow.com/questions/61160791

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install polybar

            Polybar is already available in the package manager for many repositories. We list some of the more prominent ones here. Also click the image on the right to see a more complete list of available polybar packages. If you are using Debian (bullseye/11/stable) or later, you can install polybar using sudo apt install polybar. Newer releases of polybar are sometimes provided in the backports repository for stable users, you need to enable backports and then install using sudo apt -t buster-backports install polybar. If you are using Ubuntu 20.10 (Groovy Gorilla) or later, you can install polybar using sudo apt install polybar. If you are using Arch Linux, you can install the AUR package polybar to get the latest version, or polybar-git for the most up-to-date (unstable) changes. If you are using Void Linux, you can install polybar using xbps-install -S polybar. If you are using NixOS, polybar is available in both the stable and unstable channels and can be installed with the command nix-env -iA nixos.polybar. If you are using Slackware, polybar is available from the SlackBuilds repository. If you are using Source Mage GNU/Linux, polybar spell is available in test grimoire and can be installed via cast polybar. If you are using openSUSE Tumbleweed, polybar is available from the official repositories and can be installed via zypper install polybar. If you are using openSUSE Leap, polybar is available from OBS. The package is available for openSUSE Leap 15.1 and above. If you are using FreeBSD, polybar can be installed using pkg install polybar. Make sure you are using the latest package branch. If you are using Gentoo, both release and git-master versions are available in the main repository. If you are using Fedora, you can install polybar using sudo dnf install polybar. If you can't find your distro here, you will have to build from source.

            Support

            If you find yourself stuck, have a look at our Support page for resources where you can find help.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/polybar/polybar.git

          • CLI

            gh repo clone polybar/polybar

          • sshUrl

            git@github.com:polybar/polybar.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular C++ Libraries

            tensorflow

            by tensorflow

            electron

            by electron

            terminal

            by microsoft

            bitcoin

            by bitcoin

            opencv

            by opencv

            Try Top Libraries by polybar

            polybar-scripts

            by polybarShell

            polybar.github.io

            by polybarHTML