waybar auto syntax change
This commit is contained in:
parent
740c556ffd
commit
cb2926393a
@ -1,403 +1,422 @@
|
||||
{
|
||||
// Used pkill -SIGRTMIN+n
|
||||
// n=10: update notification status
|
||||
// n=11: change whether info
|
||||
// Used pkill -SIGRTMIN+n
|
||||
// n=10: update notification status
|
||||
// n=11: change whether info
|
||||
|
||||
"layer": "top",
|
||||
"position": "right",
|
||||
"margin-left": 5,
|
||||
"spacing": 0,
|
||||
"output": "DP-2",
|
||||
"width": 64,
|
||||
"layer": "top",
|
||||
"position": "right",
|
||||
"margin-left": 5,
|
||||
"spacing": 0,
|
||||
"output": "DP-2",
|
||||
"width": 64,
|
||||
|
||||
"modules-left": [
|
||||
"group/power",
|
||||
"hyprland/workspaces",
|
||||
"custom/specialWs",
|
||||
"group/activeApp",
|
||||
],
|
||||
"modules-center": ["clock", "custom/weather#n1", "custom/weather#n2"],
|
||||
"modules-right": [
|
||||
"privacy",
|
||||
"systemd-failed-units",
|
||||
"hyprland/submap",
|
||||
"cpu#avrage",
|
||||
"temperature",
|
||||
"memory",
|
||||
"disk",
|
||||
"group/sysBehavior",
|
||||
"group/player",
|
||||
"group/audio",
|
||||
"group/net",
|
||||
"group/systray",
|
||||
],
|
||||
|
||||
"modules-left": ["group/power", "hyprland/workspaces", "custom/specialWs", "group/activeApp"],
|
||||
"modules-center": ["clock", "custom/weather#n1", "custom/weather#n2"],
|
||||
"modules-right": ["privacy", "systemd-failed-units", "hyprland/submap",
|
||||
"cpu#avrage", "temperature", "memory", "disk",
|
||||
"group/sysBehavior", "group/player", "group/audio", "group/net", "group/systray"],
|
||||
"custom/apps": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "nwg-drawer -ovl -wm hyprland &",
|
||||
},
|
||||
"custom/lock": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "bash ~/.local/share/until-scripts/sleep.sh",
|
||||
},
|
||||
"custom/suspend": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "bash ~/.local/share/until-scripts/sleep.sh suspend",
|
||||
},
|
||||
"custom/hibernate": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "bash ~/.local/share/until-scripts/sleep.sh hibernate",
|
||||
},
|
||||
"custom/logout": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "hyprctl dispatch exit",
|
||||
},
|
||||
"custom/restart": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "systemctl reboot",
|
||||
},
|
||||
"custom/poweroff": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "systemctl poweroff",
|
||||
},
|
||||
|
||||
"group/power": {
|
||||
"orientation": "vertical",
|
||||
"modules": [
|
||||
"custom/apps",
|
||||
"custom/lock",
|
||||
"custom/logout",
|
||||
"custom/suspend",
|
||||
"custom/hibernate",
|
||||
"custom/restart",
|
||||
"custom/poweroff",
|
||||
],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "player",
|
||||
"transition-left-to-right": true,
|
||||
},
|
||||
},
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"persistent-workspaces": {
|
||||
"*": 8,
|
||||
},
|
||||
"on-click": "rofi -show run",
|
||||
"format": "{icon}",
|
||||
},
|
||||
"custom/specialWs": {
|
||||
"format": "S",
|
||||
"exec-on-event": "true",
|
||||
"on-click": "hyprctl dispatch togglespecialworkspace scratchpad",
|
||||
},
|
||||
"group/activeApp": {
|
||||
"orientation": "vertical",
|
||||
"modules": [
|
||||
"hyprland/window",
|
||||
"custom/activeWindowCloseWindow",
|
||||
"custom/activeWindowMaximize",
|
||||
"custom/activeWindowFloating",
|
||||
],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "player",
|
||||
"transition-left-to-right": true,
|
||||
},
|
||||
},
|
||||
"hyprland/window": {
|
||||
"tooltip-format": "{title}\n{class}",
|
||||
"icon": true,
|
||||
"icon-size": 35,
|
||||
"format": "{}",
|
||||
"rewrite": {
|
||||
"(.*)": "",
|
||||
},
|
||||
"justify": "center",
|
||||
},
|
||||
"custom/activeWindowCloseWindow": {
|
||||
"format": "{icon}",
|
||||
"format-icons": "",
|
||||
"exec-on-event": "true",
|
||||
"justify": "center",
|
||||
"tooltip": false,
|
||||
"on-click": "hyprctl dispatch killactive",
|
||||
},
|
||||
"custom/activeWindowMaximize": {
|
||||
"format": "{icon}",
|
||||
"format-icons": "",
|
||||
"justify": "center",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "hyprctl dispatch fullscreen 1",
|
||||
},
|
||||
"custom/activeWindowFloating": {
|
||||
"format": "{icon}",
|
||||
"format-icons": "",
|
||||
"justify": "center",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "hyprctl dispatch togglefloating",
|
||||
},
|
||||
|
||||
"custom/apps": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "nwg-drawer -ovl -wm hyprland &"
|
||||
"clock": {
|
||||
"format": " \n<big>{:%H:%M}</big>",
|
||||
"format-alt": "\n<big>{:%m.%d}</big>",
|
||||
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
||||
"justify": "center",
|
||||
"calendar": {
|
||||
"mode": "year",
|
||||
"mode-mon-col": 2,
|
||||
"weeks-pos": "left",
|
||||
"on-scroll": 1,
|
||||
"format": {
|
||||
"months": "<span color='#ffead3'><b>{}</b></span>",
|
||||
"days": "<span color='#ecc6d9'><b>{}</b></span>",
|
||||
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
||||
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
|
||||
"today": "<span color='#ff6699'><b><u>{}</u></b></span>",
|
||||
},
|
||||
},
|
||||
"custom/lock": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "bash ~/.local/share/until-scripts/sleep.sh"
|
||||
},
|
||||
"custom/suspend": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "bash ~/.local/share/until-scripts/sleep.sh suspend"
|
||||
},
|
||||
"custom/hibernate": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "bash ~/.local/share/until-scripts/sleep.sh hibernate"
|
||||
},
|
||||
"custom/logout": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "hyprctl dispatch exit"
|
||||
},
|
||||
"custom/restart": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "systemctl reboot"
|
||||
},
|
||||
"custom/poweroff": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "systemctl poweroff",
|
||||
"actions": {
|
||||
"on-click-right": "mode",
|
||||
"on-scroll-up": "shift_up",
|
||||
"on-scroll-down": "shift_down",
|
||||
},
|
||||
},
|
||||
"custom/weather#n1": {
|
||||
"exec": "~/.config/waybar/bar/scripts/weather_waper.sh get icon rain,wind moon humidity,pressure",
|
||||
"on-click": "~/.config/waybar/bar/scripts/weather_waper.sh toggle",
|
||||
// For somereason I need to call this program to makt it work wtf?
|
||||
"on-click-right": "~/.config/waybar/bar/scripts/launch_detailed_weather.sh",
|
||||
"signal": 11,
|
||||
"interval": 300,
|
||||
"max-length": 6,
|
||||
"return-type": "json",
|
||||
"format": "{}",
|
||||
},
|
||||
"custom/weather#n2": {
|
||||
"exec": "~/.config/waybar/bar/scripts/weather_waper.sh get temp rain,wind uv humidity,pressure",
|
||||
"on-click": "~/.config/waybar/bar/scripts/weather_waper.sh toggle ",
|
||||
"on-click-right": "~/.config/waybar/bar/scripts/launch_detailed_weather.sh",
|
||||
"signal": 11,
|
||||
"interval": 301,
|
||||
"max-length": 6,
|
||||
"return-type": "json",
|
||||
"format": "{}",
|
||||
},
|
||||
|
||||
"group/power": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["custom/apps", "custom/lock", "custom/logout", "custom/suspend", "custom/hibernate", "custom/restart", "custom/poweroff"],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "player",
|
||||
"transition-left-to-right": true,
|
||||
}
|
||||
},
|
||||
"privacy": {
|
||||
"icon-spacing": 4,
|
||||
"icon-size": 20,
|
||||
"justify": "center",
|
||||
"transition-duration": 500,
|
||||
},
|
||||
"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.
|
||||
},
|
||||
"hyprland/submap": {
|
||||
"format": "<b>{}</b>",
|
||||
"max-length": 1,
|
||||
"tooltip": true,
|
||||
"tooltip-format": "Submap: {}",
|
||||
"justify": "center",
|
||||
"on-click": "hyprctl dispatch submap reset",
|
||||
},
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"persistent-workspaces": {
|
||||
"*": 8,
|
||||
},
|
||||
"on-click": "rofi -show run",
|
||||
"format": "{icon}",
|
||||
},
|
||||
"custom/specialWs": {
|
||||
"format": "S",
|
||||
"exec-on-event": "true",
|
||||
"on-click": "hyprctl dispatch togglespecialworkspace scratchpad"
|
||||
},
|
||||
"group/activeApp": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["hyprland/window", "custom/activeWindowCloseWindow", "custom/activeWindowMaximize", "custom/activeWindowFloating"],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "player",
|
||||
"transition-left-to-right": true,
|
||||
}
|
||||
},
|
||||
"hyprland/window": {
|
||||
"tooltip-format": "{title}\n{class}",
|
||||
"icon": true,
|
||||
"icon-size": 35,
|
||||
"format": "{}",
|
||||
"rewrite": {
|
||||
"(.*)" : "",
|
||||
},
|
||||
"justify": "center",
|
||||
},
|
||||
"custom/activeWindowCloseWindow": {
|
||||
"format": "{icon}",
|
||||
"format-icons": "",
|
||||
"exec-on-event": "true",
|
||||
"justify": "center",
|
||||
"tooltip": false,
|
||||
"on-click": "hyprctl dispatch killactive",
|
||||
},
|
||||
"custom/activeWindowMaximize": {
|
||||
"format": "{icon}",
|
||||
"format-icons": "",
|
||||
"justify": "center",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "hyprctl dispatch fullscreen 1",
|
||||
},
|
||||
"custom/activeWindowFloating": {
|
||||
"format": "{icon}",
|
||||
"format-icons": "",
|
||||
"justify": "center",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "hyprctl dispatch togglefloating",
|
||||
},
|
||||
"cpu#avrage": {
|
||||
"interval": 2,
|
||||
"format": " {usage}%",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "Load: {load}\n~Freq: {avg_frequency}",
|
||||
},
|
||||
|
||||
"temperature": {
|
||||
"interval": 2,
|
||||
"critical-threshold": 90,
|
||||
"format-critical": "<span foreground='#e78284'> {temperatureC}°C</span>",
|
||||
"format": " {temperatureC}°C",
|
||||
"tooltip-format": "CPU Temp: {temperatureC}",
|
||||
"format-icons": ["", "", ""],
|
||||
},
|
||||
"memory": {
|
||||
"interval": 20,
|
||||
"format": " {percentage}%",
|
||||
"on-click": "htop",
|
||||
"tooltip-format": "Mem: {used:0.1f}G/{total:0.1f}G \nSwp: {swapUsed:0.1f}G/{swapTotal:0.1f}G ",
|
||||
},
|
||||
"disk": {
|
||||
"interval": 15,
|
||||
"format": " {specific_used:3.0f}GB",
|
||||
"unit": "GB",
|
||||
},
|
||||
|
||||
"custom/idleWatch": {
|
||||
"format": "{}",
|
||||
"exec-on-event": true,
|
||||
"tooltip": false,
|
||||
"signal": 12,
|
||||
"exec": "if systemctl --user is-active hypridle.service > /dev/null; then echo ''; else echo ''; fi",
|
||||
"on-click": "if systemctl --user is-active hypridle.service; then systemctl --user stop hypridle.service; else systemctl --user start hypridle.service; fi; pkill -SIGRTMIN+12 waybar",
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": " \n<big>{:%H:%M}</big>",
|
||||
"format-alt": "\n<big>{:%m.%d}</big>",
|
||||
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
||||
"justify": "center",
|
||||
"calendar": {
|
||||
"mode" : "year",
|
||||
"mode-mon-col" : 2,
|
||||
"weeks-pos" : "left",
|
||||
"on-scroll" : 1,
|
||||
"format": {
|
||||
"months": "<span color='#ffead3'><b>{}</b></span>",
|
||||
"days": "<span color='#ecc6d9'><b>{}</b></span>",
|
||||
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
||||
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
|
||||
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
||||
}
|
||||
},
|
||||
"actions": {
|
||||
"on-click-right": "mode",
|
||||
"on-scroll-up": "shift_up",
|
||||
"on-scroll-down": "shift_down"
|
||||
}
|
||||
},
|
||||
"custom/weather#n1": {
|
||||
"exec": "~/.config/waybar/bar/scripts/weather_waper.sh get icon rain,wind moon humidity,pressure",
|
||||
"on-click": "~/.config/waybar/bar/scripts/weather_waper.sh toggle",
|
||||
// For somereason I need to call this program to makt it work wtf?
|
||||
"on-click-right": "~/.config/waybar/bar/scripts/launch_detailed_weather.sh",
|
||||
"signal": 11,
|
||||
"interval": 300,
|
||||
"max-length": 6,
|
||||
"return-type": "json",
|
||||
"format": "{}"
|
||||
},
|
||||
"custom/weather#n2": {
|
||||
"exec": "~/.config/waybar/bar/scripts/weather_waper.sh get temp rain,wind uv humidity,pressure",
|
||||
"on-click": "~/.config/waybar/bar/scripts/weather_waper.sh toggle ",
|
||||
"on-click-right": "~/.config/waybar/bar/scripts/launch_detailed_weather.sh",
|
||||
"signal": 11,
|
||||
"interval": 301,
|
||||
"max-length": 6,
|
||||
"return-type": "json",
|
||||
"format": "{}"
|
||||
},
|
||||
"custom/notification": {
|
||||
"format": "{}",
|
||||
|
||||
"privacy": {
|
||||
"icon-spacing": 4,
|
||||
"icon-size": 20,
|
||||
"justify": "center",
|
||||
"transition-duration": 500,
|
||||
},
|
||||
"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.
|
||||
},
|
||||
"hyprland/submap": {
|
||||
"format": "<b>{}</b>",
|
||||
"max-length": 1,
|
||||
"tooltip": true,
|
||||
"tooltip-format": "Submap: {}",
|
||||
"justify": "center",
|
||||
"on-click": "hyprctl dispatch submap reset",
|
||||
},
|
||||
// With pkill -SIGRTMIN+10 waybar used as workaround
|
||||
// for buged exec-on-event
|
||||
"interval": "once",
|
||||
"signal": 10,
|
||||
|
||||
"exec-on-event": false,
|
||||
"return-type": "json",
|
||||
"tooltip": false,
|
||||
"exec": "bash ~/.config/waybar/bar/scripts/notification_status.sh | jq --unbuffered --compact-output",
|
||||
"on-click": "bash ~/.local/share/until-scripts/notification_history.sh mute; pkill -SIGRTMIN+10 waybar",
|
||||
"on-click-right": "bash ~/.local/share/until-scripts/notification_history.sh show",
|
||||
"on-click-middle": "bash ~/.local/share/until-scripts/notification_history.sh remove",
|
||||
},
|
||||
|
||||
"group/sysBehavior": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["custom/notification", "custom/idleWatch", "custom/aiToggle"],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "sysBehavior",
|
||||
"transition-left-to-right": false,
|
||||
},
|
||||
},
|
||||
|
||||
"group/player": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["mpris#status", "image#album-art", "mpris#title"],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "player",
|
||||
"transition-left-to-right": false,
|
||||
},
|
||||
},
|
||||
"image#album-art": {
|
||||
"exec": "bash ~/.config/waybar/bar/scripts/album_art.sh",
|
||||
"on-click": "qimgv $(bash ~/.config/waybar/bar/scripts/album_art.sh) &",
|
||||
"size": 71,
|
||||
"interval": 5,
|
||||
},
|
||||
"mpris#status": {
|
||||
"format": "{status_icon}",
|
||||
"tooltip": "{player} {status}",
|
||||
"status-icons": {
|
||||
"paused": "",
|
||||
"playing": "",
|
||||
"stopped": "",
|
||||
// onclick: using defaults
|
||||
},
|
||||
},
|
||||
"mpris#title": {
|
||||
"rotate": 270,
|
||||
"format": "{title}",
|
||||
"title-len": 16,
|
||||
"format-stopped": "",
|
||||
"tooltip-format": "{artist} - {title}\n",
|
||||
// onclick: using defaults
|
||||
},
|
||||
"group/audio": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["pulseaudio", "pulseaudio/slider"],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "audio",
|
||||
"transition-left-to-right": false,
|
||||
},
|
||||
},
|
||||
|
||||
"cpu#avrage": {
|
||||
"interval": 2,
|
||||
"format": " {usage}%",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "Load: {load}\n~Freq: {avg_frequency}",
|
||||
"pulseaudio/slider": {
|
||||
"min": 0,
|
||||
"max": 150,
|
||||
"orientation": "vertical",
|
||||
},
|
||||
"pulseaudio": {
|
||||
"justify": "center",
|
||||
"format": "{icon} \n{volume}%",
|
||||
"format-bluetooth": "{icon} \nvolume}% ",
|
||||
"format-bluetooth-muted": " \n{icon} ",
|
||||
"format-muted": " \n{format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""],
|
||||
},
|
||||
"on-click": "hyprctl dispatch exec '[float] bash ~/.local/share/until-scripts/kill-on-unfocus.sh pwvucontrol'",
|
||||
"on-click-middle": "",
|
||||
},
|
||||
"group/net": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["network#total", "network#addr", "network#up", "network#down"],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "audio",
|
||||
"transition-left-to-right": false,
|
||||
},
|
||||
},
|
||||
"network#addr": {
|
||||
"on-click": "nm-connection-editor &",
|
||||
"rotate": 270,
|
||||
"format-wifi": " {ipaddr}",
|
||||
"format-ethernet": " {ipaddr}/{cidr}",
|
||||
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
|
||||
"tooltip-format": "{ifname} via {gwaddr}",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
||||
},
|
||||
|
||||
"network#up": {
|
||||
"format": " \n{bandwidthUpBits}",
|
||||
"justify": "center",
|
||||
"on-click": "kitty --class 'bar_popup' --title 'Connection Editor' nmtui-edit;exit",
|
||||
"tooltip": false,
|
||||
},
|
||||
"network#down": {
|
||||
"format": " \n{bandwidthDownBits}",
|
||||
"justify": "center",
|
||||
"on-click": "kitty --class 'bar_popup' --title 'Connection Editor' nmtui-edit;exit",
|
||||
"tooltip": false,
|
||||
},
|
||||
|
||||
"temperature": {
|
||||
"interval": 2,
|
||||
"critical-threshold": 90,
|
||||
"format-critical": "<span foreground='#e78284'> {temperatureC}°C</span>",
|
||||
"format": " {temperatureC}°C",
|
||||
"tooltip-format": "CPU Temp: {temperatureC}",
|
||||
"format-icons": ["", "", ""]
|
||||
},
|
||||
"memory": {
|
||||
"interval": 20,
|
||||
"format": " {percentage}%",
|
||||
"on-click": "htop",
|
||||
"tooltip-format": "Mem: {used:0.1f}G/{total:0.1f}G \nSwp: {swapUsed:0.1f}G/{swapTotal:0.1f}G ",
|
||||
},
|
||||
"disk": {
|
||||
"interval": 15,
|
||||
"format": " {specific_used:3.0f}GB",
|
||||
"unit": "GB"
|
||||
},
|
||||
"network#total": {
|
||||
"format": " \n{bandwidthTotalBits}",
|
||||
"justify": "center",
|
||||
"on-click": "bash ~/.local/share/until-scripts/kill-on-unfocus.sh kitty --class 'bar_popup' --title 'Connection Editor' sh -c 'nmtui-connect;exit'",
|
||||
"tooltip": false,
|
||||
},
|
||||
|
||||
"custom/idleWatch": {
|
||||
"format": "{}",
|
||||
"exec-on-event": true,
|
||||
"tooltip": false,
|
||||
"signal": 12,
|
||||
"exec": "if systemctl --user is-active hypridle.service > /dev/null; then echo ''; else echo ''; fi",
|
||||
"on-click": "if systemctl --user is-active hypridle.service; then systemctl --user stop hypridle.service; else systemctl --user start hypridle.service; fi; pkill -SIGRTMIN+12 waybar",
|
||||
"group/systray": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["custom/systrayDrawer", "tray"],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "audio",
|
||||
"transition-left-to-right": false,
|
||||
},
|
||||
},
|
||||
|
||||
"custom/notification": {
|
||||
"format": "{}",
|
||||
|
||||
// With pkill -SIGRTMIN+10 waybar used as workaround
|
||||
// for buged exec-on-event
|
||||
"interval": "once",
|
||||
"signal": 10,
|
||||
|
||||
"exec-on-event": false,
|
||||
"return-type": "json",
|
||||
"tooltip": false,
|
||||
"exec": "bash ~/.config/waybar/bar/scripts/notification_status.sh | jq --unbuffered --compact-output",
|
||||
"on-click": "bash ~/.local/share/until-scripts/notification_history.sh mute; pkill -SIGRTMIN+10 waybar",
|
||||
"on-click-right": "bash ~/.local/share/until-scripts/notification_history.sh show",
|
||||
"on-click-middle": "bash ~/.local/share/until-scripts/notification_history.sh remove"
|
||||
},
|
||||
|
||||
"group/sysBehavior": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["custom/notification", "custom/idleWatch"],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "sysBehavior",
|
||||
"transition-left-to-right": false,
|
||||
}
|
||||
},
|
||||
|
||||
"group/player": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["mpris#status", "image#album-art", "mpris#title"],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "player",
|
||||
"transition-left-to-right": false,
|
||||
}
|
||||
},
|
||||
"image#album-art": {
|
||||
"exec":"bash ~/.config/waybar/bar/scripts/album_art.sh",
|
||||
"on-click": "qimgv $(bash ~/.config/waybar/bar/scripts/album_art.sh) &",
|
||||
"size": 71,
|
||||
"interval": 5
|
||||
},
|
||||
"mpris#status": {
|
||||
"format": "{status_icon}",
|
||||
"tooltip": "{player} {status}",
|
||||
"status-icons": {
|
||||
"paused": "",
|
||||
"playing": "",
|
||||
"stopped": ""
|
||||
// onclick: using defaults
|
||||
},
|
||||
|
||||
},
|
||||
"mpris#title": {
|
||||
"rotate": 270,
|
||||
"format": "{title}",
|
||||
"title-len": 16,
|
||||
"format-stopped": "",
|
||||
"tooltip-format": "{artist} - {title}\n"
|
||||
// onclick: using defaults
|
||||
},
|
||||
"group/audio": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["pulseaudio", "pulseaudio/slider"],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "audio",
|
||||
"transition-left-to-right": false,
|
||||
}
|
||||
},
|
||||
|
||||
"pulseaudio/slider": {
|
||||
"min": 0,
|
||||
"max": 150,
|
||||
"orientation": "vertical"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"justify": "center",
|
||||
"format": "{icon} \n{volume}%",
|
||||
"format-bluetooth": "{icon} \nvolume}% ",
|
||||
"format-bluetooth-muted": " \n{icon} ",
|
||||
"format-muted": " \n{format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "hyprctl dispatch exec '[float] bash ~/.local/share/until-scripts/kill-on-unfocus.sh pwvucontrol'",
|
||||
"on-click-middle": ""
|
||||
},
|
||||
"group/net": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["network#total", "network#addr", "network#up", "network#down" ],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "audio",
|
||||
"transition-left-to-right": false,
|
||||
}
|
||||
},
|
||||
"network#addr": {
|
||||
"on-click": "nm-connection-editor &",
|
||||
"rotate": 270,
|
||||
"format-wifi": " {ipaddr}",
|
||||
"format-ethernet": " {ipaddr}/{cidr}",
|
||||
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
|
||||
"tooltip-format": "{ifname} via {gwaddr}",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
|
||||
"network#up": {
|
||||
"format": " \n{bandwidthUpBits}",
|
||||
"justify": "center",
|
||||
"on-click": "kitty --class 'bar_popup' --title 'Connection Editor' nmtui-edit;exit",
|
||||
"tooltip": false
|
||||
},
|
||||
"network#down":{
|
||||
"format": " \n{bandwidthDownBits}",
|
||||
"justify": "center",
|
||||
"on-click": "kitty --class 'bar_popup' --title 'Connection Editor' nmtui-edit;exit",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"network#total": {
|
||||
"format": " \n{bandwidthTotalBits}",
|
||||
"justify": "center",
|
||||
"on-click": "bash ~/.local/share/until-scripts/kill-on-unfocus.sh kitty --class 'bar_popup' --title 'Connection Editor' sh -c 'nmtui-connect;exit'",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"group/systray": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["custom/systrayDrawer", "tray"],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "audio",
|
||||
"transition-left-to-right": false,
|
||||
}
|
||||
},
|
||||
|
||||
"custom/systrayDrawer": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 18,
|
||||
"spacing": 5,
|
||||
"show-passive-items": true,
|
||||
},
|
||||
"custom/systrayDrawer": {
|
||||
"format": "",
|
||||
"tooltip": false,
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 18,
|
||||
"spacing": 5,
|
||||
"show-passive-items": true,
|
||||
},
|
||||
}
|
||||
@ -1,10 +1,10 @@
|
||||
@import "color.css";
|
||||
|
||||
* {
|
||||
min-height: 0;
|
||||
font-family: "DejaVuSansM Nerd Font", "Helvetica", "Arial", "sans-serif";
|
||||
font-size: 15px;
|
||||
/*
|
||||
min-height: 0;
|
||||
font-family: "DejaVuSansM Nerd Font", "Helvetica", "Arial", "sans-serif";
|
||||
font-size: 15px;
|
||||
/*
|
||||
|
||||
font-family: "JetBrainsMono Nerd Font", "Hack Nerd Font", FontAwesome, Roboto,
|
||||
Helvetica, Arial, sans-serif;
|
||||
@ -12,124 +12,120 @@
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
color: @text;
|
||||
background: @base;
|
||||
transition-property: background-color;
|
||||
transition-duration: 0.5s;
|
||||
color: @text;
|
||||
background: @base;
|
||||
transition-property: background-color;
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
|
||||
window#waybar.empty {
|
||||
color: @text;
|
||||
background: rgba(48, 52, 70, 0);
|
||||
transition-property: background-color;
|
||||
transition-duration: 0.5s;
|
||||
color: @text;
|
||||
background: rgba(48, 52, 70, 0);
|
||||
transition-property: background-color;
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
|
||||
.modules-left {
|
||||
border: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.modules-right {
|
||||
border: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.modules-center {
|
||||
border: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
button {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: @base;
|
||||
background: @base;
|
||||
}
|
||||
|
||||
|
||||
#custom-sepp {
|
||||
color: @surface2;
|
||||
color: @surface2;
|
||||
}
|
||||
|
||||
|
||||
#custom-apps {
|
||||
background-color: @green;
|
||||
color: @crust;
|
||||
font-size: 30px;
|
||||
background-color: @green;
|
||||
color: @crust;
|
||||
font-size: 30px;
|
||||
}
|
||||
#custom-lock {
|
||||
background-color: @sky;
|
||||
color: @base;
|
||||
background-color: @sky;
|
||||
color: @base;
|
||||
}
|
||||
|
||||
#custom-logout {
|
||||
background-color: @sapphire;
|
||||
color: @base;
|
||||
background-color: @sapphire;
|
||||
color: @base;
|
||||
}
|
||||
#custom-hibernate{
|
||||
background-color: @yellow;
|
||||
color: @base;
|
||||
#custom-hibernate {
|
||||
background-color: @yellow;
|
||||
color: @base;
|
||||
}
|
||||
#custom-suspend {
|
||||
background-color: @blue;
|
||||
color: @base;
|
||||
background-color: @blue;
|
||||
color: @base;
|
||||
}
|
||||
#custom-restart {
|
||||
background-color: @peach;
|
||||
color: @base;
|
||||
background-color: @peach;
|
||||
color: @base;
|
||||
}
|
||||
#custom-poweroff {
|
||||
background-color: @red;
|
||||
color: @base;
|
||||
|
||||
background-color: @red;
|
||||
color: @base;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
font-weight: 600;
|
||||
background: @crust;
|
||||
padding-top: 7px;
|
||||
margin: 0px;
|
||||
font-weight: 600;
|
||||
background: @crust;
|
||||
padding-top: 7px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
|
||||
#workspaces button {
|
||||
color: @text;
|
||||
font-weight: 600;
|
||||
color: @text;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: @red;
|
||||
color: @red;
|
||||
}
|
||||
#workspaces button.empty {
|
||||
color: @surface2;
|
||||
color: @surface2;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: @blue;
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
color: @green;
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#custom-specialWs {
|
||||
color: @maroon;
|
||||
background-color: @crust;
|
||||
padding-bottom: 7px;
|
||||
padding-top: 4px;
|
||||
font-weight: 600;
|
||||
margin-top: -2;
|
||||
color: @maroon;
|
||||
background-color: @crust;
|
||||
padding-bottom: 7px;
|
||||
padding-top: 4px;
|
||||
font-weight: 600;
|
||||
margin-top: -2;
|
||||
}
|
||||
|
||||
#window {
|
||||
padding: 0 0 0 15px;
|
||||
min-height: 35px; /* The icon size */
|
||||
background-color: @darkLavender;
|
||||
color: @base;
|
||||
padding: 0 0 0 15px;
|
||||
min-height: 35px; /* The icon size */
|
||||
background-color: @darkLavender;
|
||||
color: @base;
|
||||
}
|
||||
window#waybar.empty #window{
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
/*
|
||||
window#waybar.empty #window {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
/*
|
||||
background-image: url("/home/someone/.config/assets/def_window.png");
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
@ -137,149 +133,142 @@ window#waybar.empty #window{
|
||||
*/
|
||||
}
|
||||
|
||||
#custom-activeWindowCloseWindow{
|
||||
background-color: @red;
|
||||
padding-right: 3px;
|
||||
color: @base;
|
||||
#custom-activeWindowCloseWindow {
|
||||
background-color: @red;
|
||||
padding-right: 3px;
|
||||
color: @base;
|
||||
}
|
||||
|
||||
#custom-activeWindowMaximize{
|
||||
background-color: @peach;
|
||||
color: @base;
|
||||
#custom-activeWindowMaximize {
|
||||
background-color: @peach;
|
||||
color: @base;
|
||||
}
|
||||
|
||||
#custom-activeWindowFloating {
|
||||
background-color: @yellow;
|
||||
color: @base;
|
||||
background-color: @yellow;
|
||||
color: @base;
|
||||
}
|
||||
|
||||
|
||||
#clock {
|
||||
color: @maroon;
|
||||
font-weight: 900;
|
||||
color: @maroon;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
#custom-weather.n1 {
|
||||
margin-top: 4px;
|
||||
color: @sapphire;
|
||||
margin-bottom: 3px;
|
||||
font-size: 17px;
|
||||
|
||||
margin-top: 4px;
|
||||
color: @sapphire;
|
||||
margin-bottom: 3px;
|
||||
font-size: 17px;
|
||||
}
|
||||
#custom-weather.n2 {
|
||||
color: @sapphire;
|
||||
color: @sapphire;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#privacy {
|
||||
color: @peach;
|
||||
margin-left: 15px
|
||||
color: @peach;
|
||||
margin-left: 15px;
|
||||
}
|
||||
#systemd-failed-units {
|
||||
color: @red;
|
||||
color: @red;
|
||||
}
|
||||
#submap {
|
||||
color: @yellow;
|
||||
font-weight: 900;
|
||||
color: @yellow;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
|
||||
#cpu.avrage,
|
||||
#temperature,
|
||||
#memory,
|
||||
#disk {
|
||||
color: @blue;
|
||||
font-weight: 600;
|
||||
background-color: @crust
|
||||
color: @blue;
|
||||
font-weight: 600;
|
||||
background-color: @crust;
|
||||
}
|
||||
|
||||
#custom-idleWatch {
|
||||
background-color: @sapphire;
|
||||
color: @base;
|
||||
font-size: 20px;
|
||||
background-color: @sapphire;
|
||||
color: @base;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
#custom-notification{
|
||||
background-color: @flamingo;
|
||||
font-size: 20px;
|
||||
color: @base;
|
||||
#custom-notification {
|
||||
background-color: @flamingo;
|
||||
font-size: 20px;
|
||||
color: @base;
|
||||
}
|
||||
|
||||
#mpris.status {
|
||||
background-color: @mauve;
|
||||
font-size: 20px;
|
||||
color: @base;
|
||||
background-color: @mauve;
|
||||
font-size: 20px;
|
||||
color: @base;
|
||||
}
|
||||
|
||||
#mpris.title {
|
||||
background-color: @peach;
|
||||
color: @base;
|
||||
background-color: @peach;
|
||||
color: @base;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
color: @crust;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
background-color: @blue;
|
||||
color: @crust;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
background-color: @blue;
|
||||
}
|
||||
#pulseaudio-slider{
|
||||
background-color: @red;
|
||||
#pulseaudio-slider {
|
||||
background-color: @red;
|
||||
}
|
||||
#pulseaudio-slider slider {
|
||||
min-height: 0px;
|
||||
min-width: 0px;
|
||||
opacity: 0;
|
||||
background-image: none;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
min-height: 0px;
|
||||
min-width: 0px;
|
||||
opacity: 0;
|
||||
background-image: none;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
#pulseaudio-slider trough {
|
||||
min-height: 80px;
|
||||
min-width: 10px;
|
||||
border-radius: 5px;
|
||||
background-color: @crust;
|
||||
min-height: 80px;
|
||||
min-width: 10px;
|
||||
border-radius: 5px;
|
||||
background-color: @crust;
|
||||
}
|
||||
#pulseaudio-slider highlight {
|
||||
min-width: 10px;
|
||||
border-radius: 5px;
|
||||
min-width: 10px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
|
||||
#network {
|
||||
color: @crust;
|
||||
font-weight: 600;
|
||||
background: @teal;
|
||||
font-size: 14px;
|
||||
color: @crust;
|
||||
font-weight: 600;
|
||||
background: @teal;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: @red;
|
||||
background-color: @red;
|
||||
}
|
||||
|
||||
#network.up {
|
||||
background-color: @yellow;
|
||||
background-color: @yellow;
|
||||
}
|
||||
|
||||
#network.down {
|
||||
background-color: @maroon;
|
||||
background-color: @maroon;
|
||||
}
|
||||
|
||||
#network.addr {
|
||||
background-color: @rosewater
|
||||
background-color: @rosewater;
|
||||
}
|
||||
|
||||
#tray {
|
||||
color: @base;
|
||||
font-weight: 600;
|
||||
background: @darkFlamingo
|
||||
color: @base;
|
||||
font-weight: 600;
|
||||
background: @darkFlamingo;
|
||||
}
|
||||
|
||||
#custom-systrayDrawer {
|
||||
background: @darkLavender;
|
||||
color: @base;
|
||||
font-size: 20px;
|
||||
background: @darkLavender;
|
||||
color: @base;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
#custom-apps,
|
||||
@ -310,6 +299,6 @@ window#waybar.empty #window{
|
||||
#temperature,
|
||||
#memory,
|
||||
#disk {
|
||||
padding-top: 7px;
|
||||
padding-bottom: 7px;
|
||||
padding-top: 7px;
|
||||
padding-bottom: 7px;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user