redesigns waybar

This commit is contained in:
2026-08-08 14:03:12 +02:00
parent 720004bde8
commit 1aeb0af256
7 changed files with 51 additions and 25 deletions
+2 -2
View File
@@ -88,8 +88,8 @@ hl.bind(mainMod .. " + SHIFT + S", hl.dsp.window.move({ workspace = "special:mag
hl.bind(mainMod .. " + T", hl.dsp.workspace.toggle_special("term")) hl.bind(mainMod .. " + T", hl.dsp.workspace.toggle_special("term"))
-- Capture -- Capture
hl.bind(mainMod .. " + F9", hl.dsp.exec_cmd("hyprshot -m region")) hl.bind(mainMod .. " + F9", hl.dsp.exec_cmd("hyprshot -m region -o $HOME/Picturs/hyprshot"))
hl.bind(mainMod .. " + SHIFT + F9", hl.dsp.exec_cmd("hyprshot -m window")) hl.bind(mainMod .. " + SHIFT + F9", hl.dsp.exec_cmd("hyprshot -m window -o $HOME/Pictures/hyprshot"))
-- Media Keys -- Media Keys
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd(SCRIPT_DIR .. "/volume up"), { locked = true, repeating = true }) -- Volume Up hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd(SCRIPT_DIR .. "/volume up"), { locked = true, repeating = true }) -- Volume Up
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd(SCRIPT_DIR .. "/volume down"), { locked = true, repeating = true }) -- Volume Down hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd(SCRIPT_DIR .. "/volume down"), { locked = true, repeating = true }) -- Volume Down
+6 -2
View File
@@ -43,17 +43,21 @@
"./modules/clock.jsonc", "./modules/clock.jsonc",
"./modules/system.jsonc", "./modules/system.jsonc",
"./modules/groups.jsonc", "./modules/groups.jsonc",
"./modules/storage.jsonc" "./modules/storage.jsonc",
"./modules/audio.jsonc"
], ],
"modules-left": [ "modules-left": [
"clock#time", "clock#time",
"clock" "clock"
], ],
"modules-right": [ "modules-right": [
"cava",
"privacy", "privacy",
"group/storage", "group/storage",
"custom/nvidia",
"memory", "memory",
"cpu#bars", "temperature",
"group/cpu-group",
"group/user-group" "group/user-group"
] ]
} }
+18 -5
View File
@@ -26,16 +26,29 @@
"orientation": "horizontal" "orientation": "horizontal"
}, },
"mpris": { "mpris": {
"format": "{player_icon} {dynamic}", "format": "{player_icon} {status_icon} {dynamic}",
"format-paused": "{status_icon} <i>{dynamic}</i>", "format-paused": "{player_icon} {status_icon} <i>{dynamic}</i>",
"dynamic-order": ["artist", "title", "position", "length"],
"player-icons": { "player-icons": {
"default": "", "default": " ",
"mpv": "🎵" "mpv": " ",
"deezer": "󰎆 ",
"kdeconnect": ""
}, },
"status-icons": { "status-icons": {
"paused": "" "playing": "",
"paused": "⏸",
"stopped": ""
}, },
"on-click-middle": "", "on-click-middle": "",
"on-click-right": "hyprctl dispatch 'hl.dsp.focus({window = \"class:deezer-desktop\"})'" "on-click-right": "hyprctl dispatch 'hl.dsp.focus({window = \"class:deezer-desktop\"})'"
},
"cava": {
"cava_config": "$XDG_CONFIG_HOME/cava/waybar_cava#3.conf",
"input_delay": 2,
"actions": {
"on-click-right": "mode"
}
} }
} }
+7
View File
@@ -1,4 +1,11 @@
{ {
"group/cpu-group": {
"orientation": "inherit",
"modules": [
"cpu#bars",
"cpu"
]
},
"group/now-playing": { "group/now-playing": {
"orientation": "inherit", "orientation": "inherit",
"modules": [ "modules": [
+1 -1
View File
@@ -50,7 +50,7 @@
"memory": { "memory": {
"tooltip": true, "tooltip": true,
"interval": 15, "interval": 15,
"format": "{used:0.1f}G/{total:0.1f}G", "format": "{used:0.1f}G/{total:0.1f}G",
"states": { "states": {
"warning": 75, "warning": 75,
"critical": 85 "critical": 85
+9 -6
View File
@@ -2,8 +2,7 @@
"cpu": { "cpu": {
"tooltip": false, "tooltip": false,
"interval": 10, "interval": 10,
"format": "󰻠", "format": "<span size='11pt'>{usage}%</span> 󰻠",
"format-alt": "󰻠 <span size='11pt'>{usage}%</span>",
"states": { "states": {
"warning": 75, "warning": 75,
"critical": 90 "critical": 90
@@ -29,11 +28,10 @@
"temperature": { "temperature": {
"tooltip": false, "tooltip": false,
"interval": 10, "interval": 10,
"thermal-zone": 8, "thermal-zone": 0,
"critical-threshold": 80, "critical-threshold": 80,
"format": "{icon}", "format": "<span size='11pt'>{temperatureC}°C</span> {icon}",
"format-alt": "{icon} <span size='11pt'>{temperatureC}°C</span>", "format-critical": "<span size='11pt'>{temperatureC}°C</span><span size='12pt'>󱗗 </span>",
"format-critical": "<span size='12pt'>󱗗 </span><span size='11pt'>{temperatureC}°C</span>",
"format-icons": [ "format-icons": [
"", "",
"", "",
@@ -85,5 +83,10 @@
"name": "obs" "name": "obs"
} }
] ]
},
"custom/nvidia": {
"exec": "nvidia-smi --query-gpu=utilization.gpu,temperature.gpu --format=csv,nounits,noheader | sed 's/\\([0-9]\\+\\), \\([0-9]\\+\\)/\\1%  \\2°C/g'",
"format": "{} 󰍹 ",
"interval": 2
} }
} }
+4 -5
View File
@@ -1,12 +1,15 @@
@import "colors.css"; @import "colors.css";
#window, #window,
#cpu, #cpu-group,
#privacy, #privacy,
#workspaces, #workspaces,
#user-group, #user-group,
#temperature,
#memory, #memory,
#custom-exit, #custom-exit,
#custom-nvidia,
#cava,
#clock { #clock {
margin: 4px 5px; margin: 4px 5px;
padding: 6px 6px; padding: 6px 6px;
@@ -25,10 +28,6 @@ tooltip {
} }
#cpu.bars {
min-height: 100px;
}
.calendar-today, .calendar-today,
.calendar-days, .calendar-days,
.calendar-weeks, .calendar-weeks,