eww widgets and theme cycle with waybar button
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
"margin-right": 10,
|
||||
"modules-left": ["hyprland/workspaces", "hyprland/window"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "tray"],
|
||||
"modules-right": ["custom/theme", "pulseaudio", "network", "cpu", "memory", "battery", "tray"],
|
||||
"hyprland/workspaces": {
|
||||
"format": "{icon}",
|
||||
"on-click": "activate",
|
||||
@@ -41,7 +41,7 @@
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": "{signalStrength}%",
|
||||
"format-ethernet": " {ipaddr}",
|
||||
"format-ethernet": "{ipaddr}",
|
||||
"format-disconnected": " Offline",
|
||||
"tooltip-format": "{essid} — {ipaddr}\n{bandwidthUpBits} up {bandwidthDownBits} down",
|
||||
"interval": 5
|
||||
@@ -50,9 +50,30 @@
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": " Muted",
|
||||
"format-icons": { "headphone": "", "default": ["", "", ""] },
|
||||
"on-click": "pavucontrol"
|
||||
"on-click": "~/.config/eww/scripts/toggle-mixer.sh"
|
||||
},
|
||||
"tray": { "spacing": 8, "icon-size": 16 }
|
||||
|
||||
"custom/theme": {
|
||||
"exec": "$HOME/.config/hypr/theme-cycle.sh status",
|
||||
"exec-on-event": true,
|
||||
"return-type": "json",
|
||||
"interval": 2,
|
||||
"on-click": "$HOME/.config/hypr/theme-cycle.sh next",
|
||||
"on-click-right": "$HOME/.config/hypr/theme-cycle.sh auto",
|
||||
"on-scroll-up": "$HOME/.config/hypr/theme-cycle.sh day",
|
||||
"on-scroll-down": "$HOME/.config/hypr/wallthemepaper-cycle.sh night"
|
||||
},
|
||||
|
||||
|
||||
"tray": { "spacing": 8, "icon-size": 16 },
|
||||
|
||||
"custom/2d-workspaces": {
|
||||
"exec": "~/.config/hypr/2d-workspaces.sh",
|
||||
"return-type": "json",
|
||||
"interval": "once",
|
||||
"restart-interval": 1,
|
||||
"signal": 8
|
||||
}
|
||||
},
|
||||
{
|
||||
"layer": "top",
|
||||
@@ -65,7 +86,7 @@
|
||||
"margin-right": 10,
|
||||
"modules-left": ["hyprland/workspaces", "hyprland/window"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "tray"],
|
||||
"modules-right": ["custom/theme", "pulseaudio", "network", "cpu", "memory", "battery", "tray"],
|
||||
"hyprland/workspaces": {
|
||||
"format": "{icon}",
|
||||
"on-click": "activate",
|
||||
@@ -107,6 +128,30 @@
|
||||
"format-icons": { "headphone": "", "default": ["", "", ""] },
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"tray": { "spacing": 8, "icon-size": 16 }
|
||||
|
||||
|
||||
"custom/theme": {
|
||||
"exec": "$HOME/.config/hypr/theme-cycle.sh status",
|
||||
"exec-on-event": true,
|
||||
"return-type": "json",
|
||||
"interval": 2,
|
||||
"on-click": "$HOME/.config/hypr/theme-cycle.sh next",
|
||||
"on-click-right": "$HOME/.config/hypr/theme-cycle.sh auto",
|
||||
"on-scroll-up": "$HOME/.config/hypr/theme-cycle.sh day",
|
||||
"on-scroll-down": "$HOME/.config/hypr/wallthemepaper-cycle.sh night"
|
||||
},
|
||||
|
||||
|
||||
"tray": { "spacing": 8, "icon-size": 16 },
|
||||
|
||||
"custom/2d-workspaces": {
|
||||
"exec": "~/.config/hypr/2d-workspaces.sh",
|
||||
"return-type": "json",
|
||||
"interval": "once",
|
||||
"restart-interval": 1,
|
||||
"signal": 8
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user