Collection of Polybar theme and module.
The theme and module collection for Polybar based on Nord colors. This theme provides two bar setups, each of them has light and dark variants. Besides the official modules, there are also scripts from polybar-scripts and myself which are configured to suit the theme.
Required dependency:
Optional dependency:
- Weather Icon (required by
weather
module) - Dunst (required by
notify
module) - redshift (required by
backlight
module) - clash (required by
clash-widget
module) - onedrive (required by
onedrive-widget
module) - clipmenu (required by
clipmenu-widget
module) - nord-oneline (required by
rofi-run
module)
git clone https://github.com/Yucklys/polybar-nord-theme ~/.config/polybar/
~/.config/polybar
is the default path for polybar configuration, if you want to use other location, change ~/.config/polybar
to your location and also change the location specified in the launch.sh
file.
- Enter the installation directory
cd ~/.config/polybar
. - Run
./launch.sh light
for light theme, and./launch.sh dark
for dark theme. - For customization, most of the options are listed in
nord-config
file. For more details, check [File Structure](#File Structure) part. pkill polybar
to kill the bars.
The color for dark and light theme. You don't need to edit these flies unless you want to change the color globally.
The configuration for dark and light theme. Most of the settings are covered by nord-config
except font settings. You can change the font setting in these files.
The global configuration. You can customize the position of the bars, DPI setting, modules, etc. The detailed help messages are in the comment for each option.
The modules for top and bottom bar setup. For some specific modules you need to edit these files. For more details of these modules check [Module Details](#Module Details).
The directory contains all the scripts and files that required by the modules.
- alsa
- backlight
- date
- notify (基于dunst)
- network-detail
- network-short
- battery
- keyboard
- mpd
- spotify
- i3
- bspwm
- workspace-name
- title
- weather
- info-hackspeed
- github
- daily-poem
- temperature
- memory
- cpu
- show-desktop
- powermenu
- clash-widget
- onedrive-widget
- clipmenu-widget
- rofi-run
Display current volume. The default sound card is default
, you can change this option in nord-config
.
Bind | Event |
---|---|
mouse left click | toggle mute |
scroll up | volume + 5% for each |
scroll down | volume - 5% for each |
Display current lightness of screen.
Bind | Event |
---|---|
scroll up | lightness + 5% for each |
scroll down | lightness - 5% for each |
mouse left click | toggle redshift |
Display date and time.
Bind | Event |
---|---|
mouse left click | switch between date/time format |
Notify icon.
Bind | Event |
---|---|
mouse left click | key event ctrl+grave , the default hotkey for dunst history notify |
Display upload and download speed in KB/s. Need to set your network interface at nord-config.interface
.
Display network connection icon. By defailt left click on the icon will call networkmanager-dmenu
. For more details of this you can check networkmanager-dmenu.
Bind | Event |
---|---|
mouse left click | networkmanager-dmenu |
Display battery infomation. Requires to set nord-config.battery-full-at
, nord-config.battery-bat
and nord-config.battery-adp
.
Display keyboard CapsLock indicator.
Display mpd information. It is hidden when mpd process does not running. There are three layout corresponding to play, pause and stop.
- Display full content when in play status, including pause, prev, artist - song, next, stop, progress bar, cycle and random.
- Display part of the content when in pause status, including play, prev, artist - song, next, stop.
- Display play only in stop status.
Requires nord-config.mpd-host
and nord-config.mpd-port
.
Display currently playing spotify song title.
Display i3 workspace icon. Icon list can be customized in nord-top
.
Bind | Event |
---|---|
mouse left click | i3-msg workspace |
scroll up | i3-msg workspace prev |
scroll down | i3-msg workspace next |
Display bspwm workspace icon.
Display the name of current workspace which is defined in the configuration of i3. The format should be index:identifier
, for example 1:Home
.
Display the title of current active window.
Display weather information from Openweather with scripts polybar/polybar-scripts/openweather-fullfeatured. Personal API and city code is required. For more detailed usage check the project's README.
Display the speed of inputting in cpm(char per minute) or wpm (word per minute). The script comes from polybar/polybar-scripts/info-hackspeed.
Display Chese poem. The API is from 今日诗词 API. Before usage you need to get your token from https://v2.jinrishici.com/token and replace mine in .nord-down
You can use this module without any configuration, but if you want to customize the output format, you can change the command in nord-down
. For help on the command, scripts/daily-poem -h
will list all the options for you.
- 今日诗词(jrsc)
- ...
Display internal temperature. You can specify the thermal-zone in nord-config.thermal-zone
, the default value is 0. When the temperature is lower than nord-config.base-temperature
it will switch to lowest temperature layout; when the temperature is higher than nord-config.warn-temperature
is will switch to warning temperature layout. The color of icon will change between base-temperature
and warn-temperature
, so set the proper values for your environment.
Display memory usage in the format used/total.
Display CPU usage.
Display desktop. By default it will switch to 25:Desktop
. You can customize this in nord-down
.
Bind | Event |
---|---|
mouse left click | i3-msg workspace 25:Desktop |
List of power options, shutdown
, reboot
and logout
.
Require clash service. You can write by yourself or use mine in systemd/clash.service
.
Bind | Event |
---|---|
mouse left click | toggle service |
mouse right click | update status |
Require onedrive.
Bind | Event |
---|---|
mouse left click | toggle service |
mouse right click | update status |
Require clipmenu.
Bind | Event |
---|---|
mouse left click | trigger menu |
double left click | toggle service |
mouse right click | update status |
One-line style program runner. It will cover the top panel by left click the icon.