From ef264af452f4b77896fde7b55b54b847c1b4478c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 24 Sep 2026 19:44:04 +0300 Subject: [PATCH] waybar: bare `waybar` now uses the niri config The default path ~/.config/waybar/config held the legacy Hyprland config, whose modules-left is hyprland/workspaces. Running plain `waybar` on niri disabled that module (HYPRLAND_INSTANCE_SIGNATURE unset) and the bar came up with no workspace names/numbers until the session restarted. config -> config-niri (symlink, single source of truth); the Hyprland config moved to config-hyprland and hyprland.conf spawns it explicitly. --- .config/hypr/hyprland.conf | 2 +- .config/waybar/config | 223 +-------------------------------- .config/waybar/config-hyprland | 222 ++++++++++++++++++++++++++++++++ 3 files changed, 224 insertions(+), 223 deletions(-) mode change 100644 => 120000 .config/waybar/config create mode 100644 .config/waybar/config-hyprland diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index e9374ea..893f135 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -5,7 +5,7 @@ monitor = HDMI-A-1, 1920x1080@75, 2560x0, 1, bitdepth, 10 exec-once = hyprpm reload -n exec-once = sleep 1 && /usr/libexec/polkit-mate-authentication-agent-1 exec-once = bash ~/.config/scripts/shared/song_detail_writer.sh -exec-once = sleep 1 && waybar +exec-once = sleep 1 && waybar -c ~/.config/waybar/config-hyprland exec-once = sleep 2 && nm-applet exec-once = sleep 2 && blueman-applet exec-once = sleep 2 && kdeconnect-indicator diff --git a/.config/waybar/config b/.config/waybar/config deleted file mode 100644 index 32a9164..0000000 --- a/.config/waybar/config +++ /dev/null @@ -1,222 +0,0 @@ -{ - "layer": "top", - "position": "top", - "height": 34, - "spacing": 16, - "modules-left": ["hyprland/workspaces", "custom/music"], - "modules-center": ["clock"], - "modules-right": ["privacy", "cpu", "memory", "wireplumber", "group/tray", "battery"], - - "cava": { - "framerate": 30, - "autosens": 1, - "sensitivity": 100, - "bars": 14, - "lower_cutoff_freq": 50, - "higher_cutoff_freq": 10000, - "method": "pulse", - "source": "auto", - "stereo": true, - "reverse": false, - "bar_delimiter": 0, - "monstercat": false, - "waves": false, - "noise_reduction": 0.77, - "input_delay": 2, - "format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ], - "actions": { - "on-click-right": "mode" - } - }, - - "wlr/taskbar": { - "format": "{icon}", - "icon-size": 14, - "icon-theme": "Numix-Circle", - "tooltip-format": "{title}", - "on-click": "activate", - "on-click-middle": "close", - "ignore-list": [ - "Alacritty" - ], - "app_ids-mapping": { - "firefoxdeveloperedition": "firefox-developer-edition" - }, - "rewrite": { - "Firefox Web Browser": "Firefox", - "Foot Server": "Terminal" - } - }, - - "pulseaudio/slider": { - "min": 0, - "max": 100, - "orientation": "horizontal" - }, - - "privacy": { - "icon-spacing": 4, - "icon-size": 18, - "transition-duration": 250, - "modules": [ - { - "type": "screenshare", - "tooltip": true, - "tooltip-icon-size": 24 - }, - { - "type": "audio-out", - "tooltip": true, - "tooltip-icon-size": 24 - }, - { - "type": "audio-in", - "tooltip": true, - "tooltip-icon-size": 24 - } - ] - }, - - "custom/music": { - "format": "{}", - "exec": "tail -n 1 -F /tmp/song_detail_last 2>/dev/null", - "on-click": "bash ~/.config/scripts/shared/playerctl-active.sh play-pause", - "on-click-right": "bash ~/.config/scripts/shared/show_cover.sh", - "on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+", - "on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-" - }, - - "custom/usb": { - "format": "{}", - "exec": "bash ~/.config/scripts/system/usb_menu.sh waybar", - "interval": 10, - "return-type": "json", - "tooltip": true, - "on-click": "bash ~/.config/scripts/system/usb_menu.sh menu", - "on-click-right": "bash ~/.config/scripts/system/usb_menu.sh replug-keyboard", - "on-click-middle": "bash ~/.config/scripts/system/usb_menu.sh all-replug" - }, - - "custom/power": { - "format": "\uf011", - "tooltip": true, - "tooltip-format": "Power menu (Mod+Escape)", - "on-click": "bash ~/.config/scripts/system/power_menu.sh" - }, - - "custom/camera": { - "format": "{text}", - "exec": "bash ~/.config/scripts/waybar/camera_monitor.sh bar", - "interval": 1, - "return-type": "json", - "tooltip": true - }, - - "wireplumber": { - "format": "{icon} {volume}% ", - "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", - "format-icons": ["", "", ""], - "on-click-right": "pavucontrol", - "format-muted": "\uf00d {volume}%" - }, - - "hyprland/workspaces": { - "format": "{icon}", - "active-only": true - }, - "hyprland/window": { - "format": "{title}" - }, - "idle_inhibitor": { - "format": "{icon}", - "format-icons": { - "activated": "\uf06e", - "deactivated": "\uf070" - } - }, - "network": { - "interface": "enp4s0f4u2u1c2", - "format": "{ifname}", - "format-wifi": "{essid} ({signalStrength}%) ", - "format-ethernet": "{ifname} ", - "format-disconnected": "", - "tooltip-format": "{ifname}", - "tooltip-format-wifi": "{essid} ({signalStrength}%) ", - "tooltip-format-ethernet": "{ifname} ", - "tooltip-format-disconnected": "Disconnected", - "max-length": 50 - }, - "cpu": { - "interval": 1, - "format": "{usage}%" - }, - "memory": { - "interval": 1, - "format": "{used:0.1f}" - }, - - "clock": { - "interval" : 1, - "format": "{:%H:%M:%S | %A, %B %d, %Y }", - "format-alt": "{:%H:%M:%S}", - "tooltip-format": "{calendar}", - "on-click-right": "gnome-calendar", - "calendar": { - "format": { - "months": "{}", - "today": "{}" - } - } - }, - "pulseaudio": { - "format": "{icon} {volume}%", - "format-icons": { - "default": ["\uf026", "\uf027", "\uf028"] - }, - "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", - "on-click-right": "pavucontrol", - "format-muted": "\uf00d {volume}%" - }, - // Nested drawer: hovering the ☰ reveals the ⋯ (plus the tray icons); hovering - // the ⋯ expands the USB and power menus. Nothing extra is claimed on the bar. - "group/system": { - "orientation": "horizontal", - "drawer": { - "transition-duration": 300, - "transition-left-to-right": false - }, - "modules": [ - "custom/system-toggle", - "custom/usb", - "custom/power" - ] - }, - - "custom/system-toggle": { - "format": "\u22ef", - "tooltip-format": "USB + power" - }, - - "group/tray": { - "orientation": "horizontal", - "drawer": { - "transition-duration": 300, - "transition-left-to-right": false - }, - "modules": [ - "custom/tray-toggle", - "group/system", - "tray" - ] - }, - - "custom/tray-toggle": { - "format": "\uf0c9", - "tooltip": false - }, - - "tray": { - "icon-size": 20, - "spacing": 10 - } -} diff --git a/.config/waybar/config b/.config/waybar/config new file mode 120000 index 0000000..891ea04 --- /dev/null +++ b/.config/waybar/config @@ -0,0 +1 @@ +config-niri \ No newline at end of file diff --git a/.config/waybar/config-hyprland b/.config/waybar/config-hyprland new file mode 100644 index 0000000..32a9164 --- /dev/null +++ b/.config/waybar/config-hyprland @@ -0,0 +1,222 @@ +{ + "layer": "top", + "position": "top", + "height": 34, + "spacing": 16, + "modules-left": ["hyprland/workspaces", "custom/music"], + "modules-center": ["clock"], + "modules-right": ["privacy", "cpu", "memory", "wireplumber", "group/tray", "battery"], + + "cava": { + "framerate": 30, + "autosens": 1, + "sensitivity": 100, + "bars": 14, + "lower_cutoff_freq": 50, + "higher_cutoff_freq": 10000, + "method": "pulse", + "source": "auto", + "stereo": true, + "reverse": false, + "bar_delimiter": 0, + "monstercat": false, + "waves": false, + "noise_reduction": 0.77, + "input_delay": 2, + "format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ], + "actions": { + "on-click-right": "mode" + } + }, + + "wlr/taskbar": { + "format": "{icon}", + "icon-size": 14, + "icon-theme": "Numix-Circle", + "tooltip-format": "{title}", + "on-click": "activate", + "on-click-middle": "close", + "ignore-list": [ + "Alacritty" + ], + "app_ids-mapping": { + "firefoxdeveloperedition": "firefox-developer-edition" + }, + "rewrite": { + "Firefox Web Browser": "Firefox", + "Foot Server": "Terminal" + } + }, + + "pulseaudio/slider": { + "min": 0, + "max": 100, + "orientation": "horizontal" + }, + + "privacy": { + "icon-spacing": 4, + "icon-size": 18, + "transition-duration": 250, + "modules": [ + { + "type": "screenshare", + "tooltip": true, + "tooltip-icon-size": 24 + }, + { + "type": "audio-out", + "tooltip": true, + "tooltip-icon-size": 24 + }, + { + "type": "audio-in", + "tooltip": true, + "tooltip-icon-size": 24 + } + ] + }, + + "custom/music": { + "format": "{}", + "exec": "tail -n 1 -F /tmp/song_detail_last 2>/dev/null", + "on-click": "bash ~/.config/scripts/shared/playerctl-active.sh play-pause", + "on-click-right": "bash ~/.config/scripts/shared/show_cover.sh", + "on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+", + "on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-" + }, + + "custom/usb": { + "format": "{}", + "exec": "bash ~/.config/scripts/system/usb_menu.sh waybar", + "interval": 10, + "return-type": "json", + "tooltip": true, + "on-click": "bash ~/.config/scripts/system/usb_menu.sh menu", + "on-click-right": "bash ~/.config/scripts/system/usb_menu.sh replug-keyboard", + "on-click-middle": "bash ~/.config/scripts/system/usb_menu.sh all-replug" + }, + + "custom/power": { + "format": "\uf011", + "tooltip": true, + "tooltip-format": "Power menu (Mod+Escape)", + "on-click": "bash ~/.config/scripts/system/power_menu.sh" + }, + + "custom/camera": { + "format": "{text}", + "exec": "bash ~/.config/scripts/waybar/camera_monitor.sh bar", + "interval": 1, + "return-type": "json", + "tooltip": true + }, + + "wireplumber": { + "format": "{icon} {volume}% ", + "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", + "format-icons": ["", "", ""], + "on-click-right": "pavucontrol", + "format-muted": "\uf00d {volume}%" + }, + + "hyprland/workspaces": { + "format": "{icon}", + "active-only": true + }, + "hyprland/window": { + "format": "{title}" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "\uf06e", + "deactivated": "\uf070" + } + }, + "network": { + "interface": "enp4s0f4u2u1c2", + "format": "{ifname}", + "format-wifi": "{essid} ({signalStrength}%) ", + "format-ethernet": "{ifname} ", + "format-disconnected": "", + "tooltip-format": "{ifname}", + "tooltip-format-wifi": "{essid} ({signalStrength}%) ", + "tooltip-format-ethernet": "{ifname} ", + "tooltip-format-disconnected": "Disconnected", + "max-length": 50 + }, + "cpu": { + "interval": 1, + "format": "{usage}%" + }, + "memory": { + "interval": 1, + "format": "{used:0.1f}" + }, + + "clock": { + "interval" : 1, + "format": "{:%H:%M:%S | %A, %B %d, %Y }", + "format-alt": "{:%H:%M:%S}", + "tooltip-format": "{calendar}", + "on-click-right": "gnome-calendar", + "calendar": { + "format": { + "months": "{}", + "today": "{}" + } + } + }, + "pulseaudio": { + "format": "{icon} {volume}%", + "format-icons": { + "default": ["\uf026", "\uf027", "\uf028"] + }, + "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", + "on-click-right": "pavucontrol", + "format-muted": "\uf00d {volume}%" + }, + // Nested drawer: hovering the ☰ reveals the ⋯ (plus the tray icons); hovering + // the ⋯ expands the USB and power menus. Nothing extra is claimed on the bar. + "group/system": { + "orientation": "horizontal", + "drawer": { + "transition-duration": 300, + "transition-left-to-right": false + }, + "modules": [ + "custom/system-toggle", + "custom/usb", + "custom/power" + ] + }, + + "custom/system-toggle": { + "format": "\u22ef", + "tooltip-format": "USB + power" + }, + + "group/tray": { + "orientation": "horizontal", + "drawer": { + "transition-duration": 300, + "transition-left-to-right": false + }, + "modules": [ + "custom/tray-toggle", + "group/system", + "tray" + ] + }, + + "custom/tray-toggle": { + "format": "\uf0c9", + "tooltip": false + }, + + "tray": { + "icon-size": 20, + "spacing": 10 + } +}