hyprland-plugins/hyprbars
2024-12-18 14:51:25 +00:00
..
barDeco.cpp hyprbars: manually detect pointer focus 2024-12-18 14:51:25 +00:00
barDeco.hpp hyprbars: chase hyprland 2024-12-17 00:27:36 +00:00
CMakeLists.txt treewide: add CMake files 2024-05-05 16:36:13 +03:00
default.nix treewide: add CMake files 2024-05-05 16:36:13 +03:00
globals.hpp all: chase hyprland (#252) 2024-12-04 15:58:09 +01:00
main.cpp all: chase hyprland (#252) 2024-12-04 15:58:09 +01:00
Makefile treewide: update pkgconfig flags to include irregular locations of headers on distros like openSUSE (#150) 2024-04-20 13:05:44 +03:00
meson.build treewide: update pkgconfig flags to include irregular locations of headers on distros like openSUSE (#150) 2024-04-20 13:05:44 +03:00
README.md hyprbars: add bar_color & title_color windowrules (#192) 2024-08-08 20:59:51 +02:00

hyprbars

Adds simple title bars to windows.

preview

Config

All config options are in plugin:hyprbars:

plugin {
    hyprbars {
        # example config
        bar_height = 20

        # example buttons (R -> L)
        # hyprbars-button = color, size, on-click
        hyprbars-button = rgb(ff4040), 10, 󰖭, hyprctl dispatch killactive
        hyprbars-button = rgb(eeee11), 10, , hyprctl dispatch fullscreen 1
    }
}

bar_color -> (col) bar's background color

bar_height -> (int) bar's height (default 15)

col.text -> (col) bar's title text color

bar_title_enabled -> (bool) whether to render the title (default true)

bar_text_size -> (int) bar's title text font size (default 10)

bar_text_font -> (str) bar's title text font (default Sans)

bar_text_align -> (str) bar's title text alignment (default center, can also be left)

bar_buttons_alignment -> (str) bar's buttons alignment (default: right, can also be left)

bar_part_of_window -> (bool) whether the bar is a part of the main window (if it is, stuff like shadows render around it)

bar_precedence_over_border -> (bool) whether the bar should have a higher priority than the border (border will be around the bar)

bar_padding -> (int) left / right edge padding (default 7)

bar_button_padding -> (int) padding between the buttons (default 5)

Buttons Config

Use the hyprbars-button keyword.

hyprbars-button = color, size, icon, on-click

Window rules

Hyprbars supports the following dynamic window rules:

plugin:hyprbars:nobar -> disables the bar on matching windows. plugin:hyprbars:bar_color -> sets the bar background color on matching windows. plugin:hyprbars:title_color -> sets the bar title color on matching windows.