diff options
| author | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-06-14 19:29:33 +0300 |
|---|---|---|
| committer | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-06-14 19:29:33 +0300 |
| commit | 56082af20a8712570edd6ed523baad4755ecd241 (patch) | |
| tree | 2366ad69de817a80403cdcbe5cdd48ad90106bd6 /config/waybar | |
init
Diffstat (limited to 'config/waybar')
| -rw-r--r-- | config/waybar/config | 52 | ||||
| -rwxr-xr-x | config/waybar/scripts/power.sh | 24 | ||||
| -rw-r--r-- | config/waybar/style.css | 49 |
3 files changed, 125 insertions, 0 deletions
diff --git a/config/waybar/config b/config/waybar/config new file mode 100644 index 000000000..712a093a3 --- /dev/null +++ b/config/waybar/config @@ -0,0 +1,52 @@ +{ + "layer": "top", + "height": 26, + "position": "top", + "modules-left": ["hyprland/workspaces"], + "modules-center": ["clock"], + "modules-right": ["custom/capslock","pulseaudio", "tray"], +// "hyprland/language" +"clock": { + "format": "{:%H:%M:%S}", + "interval": 1, + "tooltip": false +}, + +"hyprland/workspaces": { + "format": "{id}", + "all-outputs": true, + "move-to-monitor": true, + "persistent-workspaces": { + "*": [1,2,3,4,5,6,7,8,9,10] + } +}, + +// "hyprland/language": { +// "format": "{}", +// "format-en": "us", +// "format-ru": "ru", +// "tooltip": false +// }, + +"pulseaudio": { + "format": "{icon} {volume}%", + "format-muted": " {volume}%", + "scroll-step": 1, + "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", + "on-click-right": "pavucontrol", + "tooltip": false, + "format-icons": { + "default": "", + "muted": "" + } +}, + + "tray": { + "icon-size": 16, + "spacing": 6, + "show-passive-items": true, + "reverse-direction": false, + "expand": false + } +} + diff --git a/config/waybar/scripts/power.sh b/config/waybar/scripts/power.sh new file mode 100755 index 000000000..df0643dba --- /dev/null +++ b/config/waybar/scripts/power.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +choice=$(printf "Poweroff\nReboot\nLogout" | wofi \ + --dmenu \ + --window \ + --normal-window \ + --hide-scroll true \ + --hide-search true \ + --prompt "" \ + --width 10 \ + --lines 3 \ + --columns 1) + +case "$choice" in +Poweroff) + hyprshutdown --post-cmd 'systemctl poweroff' + ;; +Reboot) + hyprshutdown --post-cmd 'systemctl reboot' + ;; +Logout) + hyprshutdown + ;; +esac diff --git a/config/waybar/style.css b/config/waybar/style.css new file mode 100644 index 000000000..77670841e --- /dev/null +++ b/config/waybar/style.css @@ -0,0 +1,49 @@ +* { + font-size: 12px; + min-height: 1px; +} +#waybar { + font-family: "Inter Variable", "PxPlus IBM VGA8", "Symbols Nerd Font Mono"; + background: #24273a; +} + +#clock, +#hyprland-language, +#pulseaudio, +#network, +#memory, +#cpu, +#language, +/*#pulseaudio,*/ +#tray, +#workspaces button { + padding: 4px 12px; + border-radius: 6px; + background: #363a4f; + color: #cad3f5; + /* border-bottom: 1px solid #b7bdf8; */ + margin: 0 2px; +} +#pulseaudio { + margin-right: 1px; +} +#workspaces { + margin-left: -1px; +} + +#tray { + margin-right: 1px; + margin-left: 3px; +} + +#language { + min-width: 14px; +} + +#workspaces button.empty { + background: #1e2030; +} + +#workspaces button.active { + background: #6e738d; +} |
