update waybar modules

parent 867c8009
...@@ -21,11 +21,10 @@ ...@@ -21,11 +21,10 @@
"hyprland/submap", "hyprland/submap",
], ],
"modules-center": [ "modules-center": [
"custom/media", "custom/media-mini",
], ],
"modules-right": [ "modules-right": [
"idle_inhibitor", "idle_inhibitor",
"custom/theme",
"hyprland/language", "hyprland/language",
"group/volume", "group/volume",
"network", "network",
......
{ {
"custom/media-mini": { "hyprland/window": {
"format": "{icon} {0}", "format": "{title}",
"return-type": "json", "icon": "true"
"format-icons": { },
"Playing": "",
"Paused": "" "custom/media": {
}, "format": "{icon} {0}",
"max-length": 30, "return-type": "json",
"exec": "playerctl -a metadata --format '{\"text\": \"{{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(artist)}} - {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", "format-icons": {
"Playing": "",
"Paused": ""
},
"max-length": 50,
"exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
"on-click": "playerctl play-pause", "on-click": "playerctl play-pause",
"on-scroll-up": "playerctl next", "on-scroll-up": "playerctl next",
"on-scroll-down": "playerctl previous" "on-scroll-down": "playerctl previous"
}, },
"custom/ddclight": { "custom/ddclight": {
"tooltip": false, "tooltip": false,
"format": "{icon}", "format": "{icon}",
......
...@@ -2,22 +2,9 @@ ...@@ -2,22 +2,9 @@
"image#menu": { "image#menu": {
"path": "/usr/share/pixmaps/ximperlinux.svg", "path": "/usr/share/pixmaps/ximperlinux.svg",
"size": 20, "size": 20,
"on-click": "pkill wofi || wofi --show drun -x 5 -y 10 --height 35% --width 20%" "on-click": "pkill wofi || wofi --show drun -x 8 -y 10 --height 35% --width 25%"
}, },
"custom/theme": {
"tooltip": false,
"format": "{icon}",
"return-type": "json",
"format-icons": {
"dark": "󰽥",
"light": "󰖙"
},
"exec-if": "which wm-change-theme",
"exec": "wm-change-theme get-waybar",
"on-click": "wm-change-theme change",
},
"hyprland/workspaces": { "hyprland/workspaces": {
"active-only": false, "active-only": false,
"all-outputs": true, "all-outputs": true,
...@@ -31,32 +18,33 @@ ...@@ -31,32 +18,33 @@
} }
}, },
"hyprland/window": {
"format": "{title}",
"icon": "true"
},
"tray": { "tray": {
"icon-size": 18, "icon-size": 15,
"show-passive-items": true, "show-passive-items": true,
"spacing": 10 "spacing": 10
}, },
"hyprland/submap": {
"format": "{}",
"on-click": "hyprctl dispatch submap reset",
"always-on": "true",
"default-submap": "reset",
},
"custom/media": { "custom/media-mini": {
"format": "{icon} {0}", "format": "{icon} {0}",
"return-type": "json", "return-type": "json",
"format-icons": { "format-icons": {
"Playing": "", "Playing": "",
"Paused": "" "Paused": ""
}, },
"max-length": 50, "max-length": 30,
"exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", "exec": "playerctl -a metadata --format '{\"text\": \"{{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(artist)}} - {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
"on-click": "playerctl play-pause", "on-click": "playerctl play-pause",
"on-scroll-up": "playerctl next", "on-scroll-up": "playerctl next",
"on-scroll-down": "playerctl previous" "on-scroll-down": "playerctl previous"
}, },
...@@ -78,18 +66,11 @@ ...@@ -78,18 +66,11 @@
"on-scroll-down": "hyprctl switchxkblayout all prev", "on-scroll-down": "hyprctl switchxkblayout all prev",
}, },
"hyprland/submap": {
"format": "{}",
"on-click": "hyprctl dispatch submap reset",
"always-on": "true",
"default-submap": "reset",
},
"pulseaudio#volume": { "pulseaudio#volume": {
"scroll-step": 5, "scroll-step": 5,
"format": "{icon} {volume}%", "format": "{icon} {volume}%",
"format-bluetooth": " {icon} {volume}%", "format-bluetooth": " {icon} {volume}%",
"format-muted": " Мут", "format-muted": " ",
"tooltip-format": "{desc}", "tooltip-format": "{desc}",
"format-icons": { "format-icons": {
"headphone": " ", "headphone": " ",
...@@ -105,7 +86,7 @@ ...@@ -105,7 +86,7 @@
"pulseaudio#microphone": { "pulseaudio#microphone": {
"format": "{format_source}", "format": "{format_source}",
"format-source": " {volume}%", "format-source": " {volume}%",
"format-source-muted": " Мут", "format-source-muted": " ",
"on-click": "hyprctl dispatch exec '[size 530 350; move 100%-550 4%]' pwvucontrol", "on-click": "hyprctl dispatch exec '[size 530 350; move 100%-550 4%]' pwvucontrol",
"on-click-right": "wpctl set-mute @DEFAULT_SOURCE@ toggle", "on-click-right": "wpctl set-mute @DEFAULT_SOURCE@ toggle",
"on-scroll-up": "wpctl set-volume @DEFAULT_SOURCE@ 10%+ -l 1.0", "on-scroll-up": "wpctl set-volume @DEFAULT_SOURCE@ 10%+ -l 1.0",
...@@ -123,10 +104,10 @@ ...@@ -123,10 +104,10 @@
"network": { "network": {
"tooltip": true, "tooltip": true,
"format-wifi": " {signalStrength}%", "format-wifi": " ",
"rotate": 0, "rotate": 0,
"format-ethernet": "󰈀 {signalStrength}%", "format-ethernet": "󰈀",
"format-linked": "󰈀 {ifname} (No IP)", "format-linked": "󰈀 (No IP)",
"format-disconnected": "󰖪 ", "format-disconnected": "󰖪 ",
"tooltip-format-disconnected": "Нет соединения", "tooltip-format-disconnected": "Нет соединения",
"format-alt": "<span foreground='#90ceaa'> {bandwidthDownBytes}</span> <span foreground='#dd6777'>  {bandwidthUpBytes}</span>", "format-alt": "<span foreground='#90ceaa'> {bandwidthDownBytes}</span> <span foreground='#dd6777'>  {bandwidthUpBytes}</span>",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment