diff --git a/dot_config/mako/config b/dot_config/mako/config index 93378a7..74acef1 100644 --- a/dot_config/mako/config +++ b/dot_config/mako/config @@ -10,5 +10,15 @@ margin=10 padding=10 border-radius=8 + +# Timeout +default-timeout=3000 + [urgency=high] border-color=#fab387 + + +# makoctl mode -a do-not-disturb +# makoctl mode -r do-not-disturb +[mode=do-not-disturb] +invisible=1 diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc index 854d53c..6771862 100644 --- a/dot_config/waybar/config.jsonc +++ b/dot_config/waybar/config.jsonc @@ -1,152 +1,272 @@ // -*- mode: jsonc -*- -{ - "height": 38, // Waybar height (to be removed for auto height) - "spacing": 4, // Gaps between modules (4px) - "fixed-center": true, // Center the middle in the Display middle - "reload_style_on_change": false, - "layer": "top", - - // Choose the order of the modules - "modules-left": ["hyprland/workspaces"], - "modules-center": [ - // "wlr/taskbar", - "hyprland/window", - ], - "modules-right": [ - "load", - "privacy", - "tray", - "systemd-failed-units", - "wireplumber", - "cpu", - "memory", - "clock", - ], - - "wlr/taskbar": { - "format": "{icon} {title:.45}", - "icon-size": 30, - "tooltip-format": "{title}", - "on-click": "activate", - "on-click-middle": "close", - "ignore-list": ["Alacritty", "com.mitchellh.ghostty"], - }, +[ + { + // Main + "height": 38, // Waybar height (to be removed for auto height) + "spacing": 4, // Gaps between modules (4px) + "fixed-center": true, // Center the middle in the Display middle + "reload_style_on_change": false, + "layer": "top", + "output": "DP-3", + + // Choose the order of the modules + "modules-left": ["hyprland/workspaces"], + "modules-center": [ + // "wlr/taskbar", + "hyprland/window", + ], + "modules-right": [ + "privacy", + "tray", + "systemd-failed-units", + "custom/updates", + "wireplumber", + "clock", + ], - "hyprland/window": { - "format": "{title}", - "icon": false, - "rewrite": { - "(.*) — Zen Browser": "$1", - "class": "sdf", + "wlr/taskbar": { + "format": "{icon} {title:.45}", + "icon-size": 30, + "tooltip-format": "{title}", + "on-click": "activate", + "on-click-middle": "close", + "ignore-list": ["Alacritty", "com.mitchellh.ghostty"], }, - "separate-outputs": true, - }, - // Check with `hyprctl clients` - // https://www.nerdfonts.com/cheat-sheet - "hyprland/workspaces": { - "format": "{windows}", - "format-window-separator": " ", - "window-rewrite-default": "", - "window-rewrite": { - "title<.*youtube.*>": "", // Windows whose titles contain "youtube" - "class": "", // Windows whose classes are "firefox" - "class": "", - "class": "", - "class": "", - "class": "", - "class": "", + "hyprland/window": { + "format": "{title}", + "icon": false, + "rewrite": { + "(.*) — Zen Browser": "$1", + "class": "sdf", + }, + "separate-outputs": true, }, - }, - "tray": { - "icon-size": 20, - "spacing": 10, - }, + // Check with `hyprctl clients` + // https://www.nerdfonts.com/cheat-sheet + "hyprland/workspaces": { + "format": "{windows}", + "format-window-separator": " ", + "window-rewrite-default": "", + "window-rewrite": { + "title<.*youtube.*>": "", // Windows whose titles contain "youtube" + "class": "", // Windows whose classes are "firefox" + "class": "", + "class": "", + "class": "", + "class": "", + "class": "", + "class": "", + }, + }, - "cpu": { - "tooltip": true, - "interval": 3, - "format": "{usage:>3}% ", - }, + "custom/updates": { + "format": "{} {icon} ", + "return-type": "json", + "format-icons": { + "has-updates": "󱍷", + "updated": "󰒘", + }, + "exec-if": "which waybar-module-pacman-updates", + "exec": "waybar-module-pacman-updates --interval-seconds 5 --network-interval-seconds 300 --tooltip-align-columns --color-semver-updates eba0ac,cba6f7,cdd6f4,cdd6f4,cdd6f4,cdd6f4,cdd6f4,cdd6f4,cdd6f4 --no-zero-output", + "on-click": "ghostty -e paru -Syu", + }, - "memory": { - "format": "{percentage:>2}% ", - }, + "tray": { + "icon-size": 20, + "spacing": 10, + }, - "load": { - "interval": 10, - "format": "{load1:.1f} {load5:.1f} {load15:.1f}", - }, + "cpu": { + "tooltip": true, + "interval": 3, + "format": "{usage:>3}% ", + }, - "wireplumber": { - "format": "{volume}% {icon}", - "format-muted": "󰖁", - "max-volume": 200, - "scroll-step": 2.5, - "on-click": "pwvucontrol", - "on-click-right": "helvum", - "on-click-middle": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", - "format-icons": ["", "", ""], - }, + "memory": { + "format": "{percentage:>2}% ", + }, - "clock": { - "locale": "de_DE.UTF-8", - "format": "{:%H:%M}  ", - "format-alt": "{:%A %d.%m.%Y %H:%M}  ", - "tooltip-format": "{calendar}", - "calendar": { - "mode": "year", - "mode-mon-col": 3, - "weeks-pos": "right", - "on-scroll": 1, - "format": { - "months": "{}", - "days": "{}", - "weeks": "W{}", - "weekdays": "{}", - "today": "{}", - }, + "load": { + "interval": 10, + "format": "{load1:.1f} {load5:.1f} {load15:.1f}", }, - "actions": { - "on-click-right": "mode", + + "wireplumber": { + "format": "{volume}% {icon} ", + "format-muted": "󰖁", + "max-volume": 200, + "scroll-step": 2.5, + "on-click": "pwvucontrol", + "on-click-right": "helvum", + "on-click-middle": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", + "format-icons": ["", "", ""], }, - }, - "privacy": { - "icon-spacing": 4, - "icon-size": 18, - "transition-duration": 250, - "modules": [ - { - "type": "screenshare", - "tooltip": true, - "tooltip-icon-size": 24, + "clock": { + "locale": "de_DE.UTF-8", + "format": "{:%H:%M}  ", + "format-alt": "{:%A %d.%m.%Y %H:%M}  ", + "tooltip-format": "{calendar}", + "calendar": { + "mode": "year", + "mode-mon-col": 3, + "weeks-pos": "right", + "on-scroll": 1, + "format": { + "months": "{}", + "days": "{}", + "weeks": "W{}", + "weekdays": "{}", + "today": "{}", + }, }, - { - "type": "audio-in", - "tooltip": true, - "tooltip-icon-size": 24, + "actions": { + "on-click-right": "mode", }, + }, + + "privacy": { + "icon-spacing": 4, + "icon-size": 18, + "transition-duration": 250, + "modules": [ + { + "type": "screenshare", + "tooltip": true, + "tooltip-icon-size": 24, + }, + { + "type": "audio-in", + "tooltip": true, + "tooltip-icon-size": 24, + }, + ], + "ignore": [ + { + "type": "audio-in", + "name": "cava", + }, + { + "type": "screenshare", + "name": "obs", + }, + { + "type": "audio-in", + "name": "discord_capture", + }, + ], + }, + + "systemd-failed-units": { + "hide-on-ok": true, // Do not hide if there is zero failed units. + "format": " {nr_failed}", + "system": true, // Monitor failed systemwide units. + "user": true, // Ignore failed user units. + "on-click": "~/.config/waybar/failed-units.sh", + "on-click-right": "~/.config/waybar/restart-failed.sh", + }, + }, + { + // Secondary + "height": 38, // Waybar height (to be removed for auto height) + "spacing": 4, // Gaps between modules (4px) + "fixed-center": true, // Center the middle in the Display middle + "reload_style_on_change": false, + "layer": "top", + "output": "DP-2", + + // Choose the order of the modules + "modules-left": ["hyprland/workspaces"], + "modules-center": [ + // "wlr/taskbar", + "hyprland/window", ], - "ignore": [ - { - "type": "audio-in", - "name": "cava", + "modules-right": ["load", "custom/weather", "cpu", "memory", "clock"], + + "wlr/taskbar": { + "format": "{icon} {title:.45}", + "icon-size": 30, + "tooltip-format": "{title}", + "on-click": "activate", + "on-click-middle": "close", + "ignore-list": ["Alacritty", "com.mitchellh.ghostty"], + }, + + "hyprland/window": { + "format": "{title}", + "icon": false, + "rewrite": { + "(.*) — Zen Browser": "$1", + "class": "sdf", }, - { - "type": "screenshare", - "name": "obs", + "separate-outputs": true, + }, + + // Check with `hyprctl clients` + // https://www.nerdfonts.com/cheat-sheet + "hyprland/workspaces": { + "format": "{windows}", + "format-window-separator": " ", + "window-rewrite-default": "", + "window-rewrite": { + "title<.*youtube.*>": "", // Windows whose titles contain "youtube" + "class": "", // Windows whose classes are "firefox" + "class": "", + "class": "", + "class": "", + "class": "", + "class": "", + "class": "", }, - ], - }, + }, + + "cpu": { + "tooltip": true, + "interval": 3, + "format": "{usage:>3}% ", + }, + + "memory": { + "format": "{percentage:>2}% ", + }, + + "load": { + "interval": 10, + "format": "{load1:.1f} {load5:.1f} {load15:.1f}", + }, + + "custom/weather": { + "format": " {}", + "tooltip": true, + "interval": 3600, + "exec-if": "which wttrbar", + "exec": "wttrbar --location Frankfurt --hide-conditions --lang de", + "return-type": "json", + }, - "systemd-failed-units": { - "hide-on-ok": true, // Do not hide if there is zero failed units. - "format": " {nr_failed}", - "system": true, // Monitor failed systemwide units. - "user": true, // Ignore failed user units. - "on-click": "~/.config/waybar/failed-units.sh", - "on-click-right": "~/.config/waybar/restart-failed.sh", + "clock": { + "locale": "de_DE.UTF-8", + "format": "{:%H:%M}  ", + "format-alt": "{:%A %d.%m.%Y %H:%M}  ", + "tooltip-format": "{calendar}", + "calendar": { + "mode": "year", + "mode-mon-col": 3, + "weeks-pos": "right", + "on-scroll": 1, + "format": { + "months": "{}", + "days": "{}", + "weeks": "W{}", + "weekdays": "{}", + "today": "{}", + }, + }, + "actions": { + "on-click-right": "mode", + }, + }, }, -} +] diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css index 772eb30..30bed3b 100644 --- a/dot_config/waybar/style.css +++ b/dot_config/waybar/style.css @@ -92,6 +92,8 @@ box.#workspaces { box-shadow: inset 0px -4px @rosewater; } +#custom-updates, +#custom-weather, #systemd-failed-units, #tray, #wireplumber, @@ -105,6 +107,8 @@ box.#workspaces { border-radius: 8px; } +#custom-weather:hover, +#custom-updates:hover, #wireplumber:hover, #cpu:hover, #memory:hover,