💄 style(waybar): set default icon for workspaces and formatted the code

This commit is contained in:
Sergio Laín 2023-10-16 12:40:40 +02:00
parent d6a8c05152
commit e3908d4f6e
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -16,7 +16,9 @@
"cava", "cava",
"custom/wf-recorder" "custom/wf-recorder"
], ],
"modules-center": ["custom/music"], "modules-center": [
"custom/music"
],
"modules-right": [ "modules-right": [
"custom/updates", "custom/updates",
"hyprland/language", "hyprland/language",
@ -120,7 +122,8 @@
"27": "", "27": "",
"28": "", "28": "",
"29": "", "29": "",
"30": "" "30": "󰈙",
"default": "󰈙"
}, },
"on-scroll-up": "hyprctl dispatch workspace r-1", "on-scroll-up": "hyprctl dispatch workspace r-1",
"on-scroll-down": "hyprctl dispatch workspace r+1", "on-scroll-down": "hyprctl dispatch workspace r+1",
@ -189,14 +192,21 @@
"critical-threshold": 80, "critical-threshold": 80,
"format-critical": "{icon} {temperatureC}°C", "format-critical": "{icon} {temperatureC}°C",
"format": "{icon} {temperatureC}°C", "format": "{icon} {temperatureC}°C",
"format-icons": ["", "", ""], "format-icons": [
"",
"",
""
],
"tooltip": true, "tooltip": true,
"on-click": "kitty btop", "on-click": "kitty btop",
"interval": 2 "interval": 2
}, },
"backlight": { "backlight": {
"format": "{icon} {percent}%", "format": "{icon} {percent}%",
"format-icons": [" ", " "], "format-icons": [
" ",
" "
],
"on-scroll-up": "light -A 1", "on-scroll-up": "light -A 1",
"on-scroll-down": "light -U 1" "on-scroll-down": "light -U 1"
}, },
@ -210,7 +220,13 @@
"format-charging": " {capacity}%", "format-charging": " {capacity}%",
"format-plugged": " ", "format-plugged": " ",
"format-alt": "{time} {icon}", "format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""] "format-icons": [
"",
"",
"",
"",
""
]
}, },
"network": { "network": {
"format-wifi": "直 ", "format-wifi": "直 ",
@ -234,7 +250,11 @@
"phone": " ", "phone": " ",
"portable": " ", "portable": " ",
"car": " ", "car": " ",
"default": [" ", " ", " "] "default": [
" ",
" ",
" "
]
}, },
"tooltip-format": "{desc}, {volume}%", "tooltip-format": "{desc}, {volume}%",
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
@ -295,9 +315,17 @@
"margin-left": 17, "margin-left": 17,
"margin-bottom": 0, "margin-bottom": 0,
"margin-right": 17, "margin-right": 17,
"modules-left": ["custom/arch", "hyprland/workspaces"], "modules-left": [
"modules-center": ["clock"], "custom/arch",
"modules-right": ["tray", "custom/notifications"], "hyprland/workspaces"
],
"modules-center": [
"clock"
],
"modules-right": [
"tray",
"custom/notifications"
],
"custom/arch": { "custom/arch": {
"format": "  ", "format": "  ",
"tooltip": false, "tooltip": false,
@ -365,7 +393,8 @@
"27": "", "27": "",
"28": "", "28": "",
"29": "", "29": "",
"30": "" "30": "",
"default": "󰈙"
}, },
"on-scroll-up": "hyprctl dispatch workspace r-1", "on-scroll-up": "hyprctl dispatch workspace r-1",
"on-scroll-down": "hyprctl dispatch workspace r+1", "on-scroll-down": "hyprctl dispatch workspace r+1",
@ -429,14 +458,21 @@
"critical-threshold": 80, "critical-threshold": 80,
"format-critical": "{icon} {temperatureC}°C", "format-critical": "{icon} {temperatureC}°C",
"format": "{icon} {temperatureC}°C", "format": "{icon} {temperatureC}°C",
"format-icons": ["", "", ""], "format-icons": [
"",
"",
""
],
"tooltip": true, "tooltip": true,
"on-click": "kitty btop", "on-click": "kitty btop",
"interval": 2 "interval": 2
}, },
"backlight": { "backlight": {
"format": "{icon} {percent}%", "format": "{icon} {percent}%",
"format-icons": [" ", " "], "format-icons": [
" ",
" "
],
"on-scroll-up": "light -A 1", "on-scroll-up": "light -A 1",
"on-scroll-down": "light -U 1" "on-scroll-down": "light -U 1"
}, },
@ -450,7 +486,13 @@
"format-charging": " {capacity}%", "format-charging": " {capacity}%",
"format-plugged": " ", "format-plugged": " ",
"format-alt": "{time} {icon}", "format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""] "format-icons": [
"",
"",
"",
"",
""
]
}, },
"network": { "network": {
"format-wifi": "直 ", "format-wifi": "直 ",
@ -474,7 +516,11 @@
"phone": " ", "phone": " ",
"portable": " ", "portable": " ",
"car": " ", "car": " ",
"default": [" ", " ", " "] "default": [
" ",
" ",
" "
]
}, },
"tooltip-format": "{desc}, {volume}%", "tooltip-format": "{desc}, {volume}%",
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
@ -510,8 +556,13 @@
"margin-left": 17, "margin-left": 17,
"margin-bottom": 0, "margin-bottom": 0,
"margin-right": 17, "margin-right": 17,
"modules-left": ["custom/arch", "hyprland/workspaces"], "modules-left": [
"modules-center": ["hyprland/window"], "custom/arch",
"hyprland/workspaces"
],
"modules-center": [
"hyprland/window"
],
"modules-right": [ "modules-right": [
"memory", "memory",
"cpu", "cpu",
@ -598,7 +649,8 @@
"27": "", "27": "",
"28": "", "28": "",
"29": "", "29": "",
"30": "" "30": "",
"default": "󰈙"
}, },
"on-scroll-up": "hyprctl dispatch workspace r-1", "on-scroll-up": "hyprctl dispatch workspace r-1",
"on-scroll-down": "hyprctl dispatch workspace r+1", "on-scroll-down": "hyprctl dispatch workspace r+1",
@ -651,7 +703,11 @@
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"format-critical": "{icon} {temperatureC}°C", "format-critical": "{icon} {temperatureC}°C",
"format": "{icon} {temperatureC}°C", "format": "{icon} {temperatureC}°C",
"format-icons": ["", "", ""], "format-icons": [
"",
"",
""
],
"tooltip": true, "tooltip": true,
"interval": 2 "interval": 2
}, },
@ -664,7 +720,10 @@
}, },
"backlight": { "backlight": {
"format": "{icon} {percent}%", "format": "{icon} {percent}%",
"format-icons": [" ", " "], "format-icons": [
" ",
" "
],
"on-scroll-up": "light -A 1", "on-scroll-up": "light -A 1",
"on-scroll-down": "light -U 1" "on-scroll-down": "light -U 1"
}, },
@ -678,7 +737,13 @@
"format-charging": " {capacity}%", "format-charging": " {capacity}%",
"format-plugged": " ", "format-plugged": " ",
"format-alt": "{time} {icon}", "format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""] "format-icons": [
"",
"",
"",
"",
""
]
}, },
"network": { "network": {
"format-wifi": "直 ", "format-wifi": "直 ",
@ -702,7 +767,11 @@
"phone": " ", "phone": " ",
"portable": " ", "portable": " ",
"car": " ", "car": " ",
"default": [" ", " ", " "] "default": [
" ",
" ",
" "
]
}, },
"tooltip-format": "{desc}, {volume}%", "tooltip-format": "{desc}, {volume}%",
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",