waybar auto syntax change
This commit is contained in:
parent
740c556ffd
commit
cb2926393a
@ -10,56 +10,69 @@
|
||||
"output": "DP-2",
|
||||
"width": 64,
|
||||
|
||||
|
||||
"modules-left": ["group/power", "hyprland/workspaces", "custom/specialWs", "group/activeApp"],
|
||||
"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-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 &"
|
||||
"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"
|
||||
"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"
|
||||
"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"
|
||||
"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"
|
||||
"on-click": "hyprctl dispatch exit",
|
||||
},
|
||||
"custom/restart": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ",
|
||||
"exec-on-event": "true",
|
||||
"tooltip": false,
|
||||
"on-click": "systemctl reboot"
|
||||
"on-click": "systemctl reboot",
|
||||
},
|
||||
"custom/poweroff": {
|
||||
"format": "{icon}",
|
||||
@ -71,12 +84,20 @@
|
||||
|
||||
"group/power": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["custom/apps", "custom/lock", "custom/logout", "custom/suspend", "custom/hibernate", "custom/restart", "custom/poweroff"],
|
||||
"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": {
|
||||
@ -89,16 +110,21 @@
|
||||
"custom/specialWs": {
|
||||
"format": "S",
|
||||
"exec-on-event": "true",
|
||||
"on-click": "hyprctl dispatch togglespecialworkspace scratchpad"
|
||||
"on-click": "hyprctl dispatch togglespecialworkspace scratchpad",
|
||||
},
|
||||
"group/activeApp": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["hyprland/window", "custom/activeWindowCloseWindow", "custom/activeWindowMaximize", "custom/activeWindowFloating"],
|
||||
"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}",
|
||||
@ -135,8 +161,6 @@
|
||||
"on-click": "hyprctl dispatch togglefloating",
|
||||
},
|
||||
|
||||
|
||||
|
||||
"clock": {
|
||||
"format": " \n<big>{:%H:%M}</big>",
|
||||
"format-alt": "\n<big>{:%m.%d}</big>",
|
||||
@ -152,14 +176,14 @@
|
||||
"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>"
|
||||
}
|
||||
"today": "<span color='#ff6699'><b><u>{}</u></b></span>",
|
||||
},
|
||||
},
|
||||
"actions": {
|
||||
"on-click-right": "mode",
|
||||
"on-scroll-up": "shift_up",
|
||||
"on-scroll-down": "shift_down"
|
||||
}
|
||||
"on-scroll-down": "shift_down",
|
||||
},
|
||||
},
|
||||
"custom/weather#n1": {
|
||||
"exec": "~/.config/waybar/bar/scripts/weather_waper.sh get icon rain,wind moon humidity,pressure",
|
||||
@ -170,7 +194,7 @@
|
||||
"interval": 300,
|
||||
"max-length": 6,
|
||||
"return-type": "json",
|
||||
"format": "{}"
|
||||
"format": "{}",
|
||||
},
|
||||
"custom/weather#n2": {
|
||||
"exec": "~/.config/waybar/bar/scripts/weather_waper.sh get temp rain,wind uv humidity,pressure",
|
||||
@ -180,7 +204,7 @@
|
||||
"interval": 301,
|
||||
"max-length": 6,
|
||||
"return-type": "json",
|
||||
"format": "{}"
|
||||
"format": "{}",
|
||||
},
|
||||
|
||||
"privacy": {
|
||||
@ -193,7 +217,7 @@
|
||||
"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.
|
||||
"user": true, // Ignore failed user units.
|
||||
},
|
||||
"hyprland/submap": {
|
||||
"format": "<b>{}</b>",
|
||||
@ -204,9 +228,6 @@
|
||||
"on-click": "hyprctl dispatch submap reset",
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
"cpu#avrage": {
|
||||
"interval": 2,
|
||||
"format": " {usage}%",
|
||||
@ -214,14 +235,13 @@
|
||||
"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": ["", "", ""]
|
||||
"format-icons": ["", "", ""],
|
||||
},
|
||||
"memory": {
|
||||
"interval": 20,
|
||||
@ -232,7 +252,7 @@
|
||||
"disk": {
|
||||
"interval": 15,
|
||||
"format": " {specific_used:3.0f}GB",
|
||||
"unit": "GB"
|
||||
"unit": "GB",
|
||||
},
|
||||
|
||||
"custom/idleWatch": {
|
||||
@ -258,17 +278,17 @@
|
||||
"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"
|
||||
"on-click-middle": "bash ~/.local/share/until-scripts/notification_history.sh remove",
|
||||
},
|
||||
|
||||
"group/sysBehavior": {
|
||||
"orientation": "vertical",
|
||||
"modules": ["custom/notification", "custom/idleWatch"],
|
||||
"modules": ["custom/notification", "custom/idleWatch", "custom/aiToggle"],
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"children-class": "sysBehavior",
|
||||
"transition-left-to-right": false,
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
"group/player": {
|
||||
@ -278,13 +298,13 @@
|
||||
"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
|
||||
"interval": 5,
|
||||
},
|
||||
"mpris#status": {
|
||||
"format": "{status_icon}",
|
||||
@ -292,17 +312,16 @@
|
||||
"status-icons": {
|
||||
"paused": "",
|
||||
"playing": "",
|
||||
"stopped": ""
|
||||
"stopped": "",
|
||||
// onclick: using defaults
|
||||
},
|
||||
|
||||
},
|
||||
"mpris#title": {
|
||||
"rotate": 270,
|
||||
"format": "{title}",
|
||||
"title-len": 16,
|
||||
"format-stopped": "",
|
||||
"tooltip-format": "{artist} - {title}\n"
|
||||
"tooltip-format": "{artist} - {title}\n",
|
||||
// onclick: using defaults
|
||||
},
|
||||
"group/audio": {
|
||||
@ -312,13 +331,13 @@
|
||||
"transition-duration": 500,
|
||||
"children-class": "audio",
|
||||
"transition-left-to-right": false,
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
"pulseaudio/slider": {
|
||||
"min": 0,
|
||||
"max": 150,
|
||||
"orientation": "vertical"
|
||||
"orientation": "vertical",
|
||||
},
|
||||
"pulseaudio": {
|
||||
"justify": "center",
|
||||
@ -335,10 +354,10 @@
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
"default": ["", "", ""],
|
||||
},
|
||||
"on-click": "hyprctl dispatch exec '[float] bash ~/.local/share/until-scripts/kill-on-unfocus.sh pwvucontrol'",
|
||||
"on-click-middle": ""
|
||||
"on-click-middle": "",
|
||||
},
|
||||
"group/net": {
|
||||
"orientation": "vertical",
|
||||
@ -347,7 +366,7 @@
|
||||
"transition-duration": 500,
|
||||
"children-class": "audio",
|
||||
"transition-left-to-right": false,
|
||||
}
|
||||
},
|
||||
},
|
||||
"network#addr": {
|
||||
"on-click": "nm-connection-editor &",
|
||||
@ -358,27 +377,27 @@
|
||||
"tooltip-format": "{ifname} via {gwaddr}",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
"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
|
||||
"tooltip": false,
|
||||
},
|
||||
"network#down": {
|
||||
"format": " \n{bandwidthDownBits}",
|
||||
"justify": "center",
|
||||
"on-click": "kitty --class 'bar_popup' --title 'Connection Editor' nmtui-edit;exit",
|
||||
"tooltip": false
|
||||
"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
|
||||
"tooltip": false,
|
||||
},
|
||||
|
||||
"group/systray": {
|
||||
@ -388,12 +407,12 @@
|
||||
"transition-duration": 500,
|
||||
"children-class": "audio",
|
||||
"transition-left-to-right": false,
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
"custom/systrayDrawer": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
"tooltip": false,
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 18,
|
||||
|
||||
@ -46,12 +46,10 @@ button:hover {
|
||||
background: @base;
|
||||
}
|
||||
|
||||
|
||||
#custom-sepp {
|
||||
color: @surface2;
|
||||
}
|
||||
|
||||
|
||||
#custom-apps {
|
||||
background-color: @green;
|
||||
color: @crust;
|
||||
@ -81,7 +79,6 @@ button:hover {
|
||||
#custom-poweroff {
|
||||
background-color: @red;
|
||||
color: @base;
|
||||
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
@ -91,7 +88,6 @@ button:hover {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
|
||||
#workspaces button {
|
||||
color: @text;
|
||||
font-weight: 600;
|
||||
@ -153,7 +149,6 @@ window#waybar.empty #window{
|
||||
color: @base;
|
||||
}
|
||||
|
||||
|
||||
#clock {
|
||||
color: @maroon;
|
||||
font-weight: 900;
|
||||
@ -164,18 +159,14 @@ window#waybar.empty #window{
|
||||
color: @sapphire;
|
||||
margin-bottom: 3px;
|
||||
font-size: 17px;
|
||||
|
||||
}
|
||||
#custom-weather.n2 {
|
||||
color: @sapphire;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#privacy {
|
||||
color: @peach;
|
||||
margin-left: 15px
|
||||
margin-left: 15px;
|
||||
}
|
||||
#systemd-failed-units {
|
||||
color: @red;
|
||||
@ -185,14 +176,13 @@ window#waybar.empty #window{
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
|
||||
#cpu.avrage,
|
||||
#temperature,
|
||||
#memory,
|
||||
#disk {
|
||||
color: @blue;
|
||||
font-weight: 600;
|
||||
background-color: @crust
|
||||
background-color: @crust;
|
||||
}
|
||||
|
||||
#custom-idleWatch {
|
||||
@ -246,7 +236,6 @@ window#waybar.empty #window{
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
|
||||
#network {
|
||||
color: @crust;
|
||||
font-weight: 600;
|
||||
@ -267,13 +256,13 @@ window#waybar.empty #window{
|
||||
}
|
||||
|
||||
#network.addr {
|
||||
background-color: @rosewater
|
||||
background-color: @rosewater;
|
||||
}
|
||||
|
||||
#tray {
|
||||
color: @base;
|
||||
font-weight: 600;
|
||||
background: @darkFlamingo
|
||||
background: @darkFlamingo;
|
||||
}
|
||||
|
||||
#custom-systrayDrawer {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user