♻️ refactor(waybar): moved 2nd output to the 3th, deleted unneccesary declaration for workspaces, deleted custom gpu temp module to use the normal temp module

This commit is contained in:
Sergio Laín 2023-12-22 18:10:09 +01:00
parent 1613c3476a
commit 6590532125
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -95,28 +95,7 @@
"7": "", "7": "",
"8": "", "8": "",
"9": "", "9": "",
"10": "", "10": ""
"11": "",
"12": "",
"13": "🖵",
"14": "",
"15": "",
"16": "🎜",
"17": "",
"18": "",
"19": "",
"20": "",
"21": "",
"22": "󰍨",
"23": "✉",
"24": "🖵",
"25": "",
"26": "",
"27": "",
"28": "",
"29": "",
"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",
@ -222,116 +201,6 @@
"on-scroll-down": "playerctl --player=spotify previous" "on-scroll-down": "playerctl --player=spotify previous"
} }
}, },
{
"height": 50,
"layer": "top",
"output": "HDMI-A-1",
"margin-top": 10,
"margin-left": 17,
"margin-bottom": 0,
"margin-right": 17,
"modules-left": ["custom/arch", "hyprland/workspaces"],
"modules-center": ["clock#cl2"],
"modules-right": ["tray", "custom/notifications"],
"custom/arch": {
"format": "  ",
"tooltip": false,
"on-click": "rofi -show drun",
"on-click-right": "wleave"
},
"custom/notifications": {
"tooltip": false,
"format": "{} {icon}",
"format-icons": {
"notification": "<span foreground='red'><sup></sup></span>",
"none": "",
"dnd-notification": "<span foreground='red'><sup></sup></span>",
"dnd-none": "",
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
"inhibited-none": "",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": ""
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
},
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"enable-bar-scroll": true,
"format": "{icon}",
"format-icons": {
"1": "",
"2": "",
"3": "🖵",
"4": "",
"5": "",
"6": "🎜",
"7": "",
"8": "",
"9": "",
"10": "",
"11": "",
"12": "",
"13": "🖵",
"14": "",
"15": "",
"16": "🎜",
"17": "",
"18": "",
"19": "",
"20": "",
"21": "",
"22": "󰍨",
"23": "✉",
"24": "🖵",
"25": "",
"26": "",
"27": "",
"28": "",
"29": "",
"30": "",
"default": "󰈙"
},
"on-scroll-up": "hyprctl dispatch workspace r-1",
"on-scroll-down": "hyprctl dispatch workspace r+1",
"on-click": "activate",
"sort-by-number": true
},
"tray": {
"spacing": 10
},
"clock#cl2": {
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode": "year",
"mode-mon-col": 3,
"weeks-pos": "right",
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#eed49f'><b>{}</b></span>",
"days": "<span color='#cad3f5'><b>{}</b></span>",
"weeks": "<span color='#8aadf4'><b>W{}</b></span>",
"weekdays": "<span color='#8bd5ca'><b>{}</b></span>",
"today": "<span color='#ed8796'><b><u>{}</u></b></span>"
}
},
"format": "{:%H:%M  - %A, %B %d, %Y  }",
"actions": {
"on-click-right": "mode",
"on-click-forward": "tz_up",
"on-click-backward": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
},
"on-click-middle": "thunderbird -calendar && hyprctl dispatch workspace 23"
}
},
{ {
"height": 50, "height": 50,
"position": "bottom", "position": "bottom",
@ -345,9 +214,9 @@
"modules-right": [ "modules-right": [
"memory", "memory",
"cpu", "cpu",
"temperature", "temperature#cpu",
"custom/gpu-usage", "custom/gpu-usage",
"custom/gpu-temp", "temperature#gpu",
"custom/notifications" "custom/notifications"
], ],
"hyprland/window": { "hyprland/window": {
@ -393,16 +262,6 @@
"enable-bar-scroll": true, "enable-bar-scroll": true,
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
"1": "",
"2": "",
"3": "🖵",
"4": "",
"5": "",
"6": "🎜",
"7": "",
"8": "",
"9": "",
"10": "",
"11": "", "11": "",
"12": "", "12": "",
"13": "🖵", "13": "🖵",
@ -412,18 +271,7 @@
"17": "", "17": "",
"18": "", "18": "",
"19": "", "19": "",
"20": "", "20": ""
"21": "",
"22": "󰍨",
"23": "✉",
"24": "🖵",
"25": "",
"26": "",
"27": "",
"28": "",
"29": "",
"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",
@ -449,8 +297,8 @@
"tooltip": true, "tooltip": true,
"interval": 2 "interval": 2
}, },
"temperature": { "temperature#cpu": {
"critical-threshold": 80, "critical-threshold": 90,
"on-click": "kitty --class center-float-large btop", "on-click": "kitty --class center-float-large btop",
"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",
@ -459,12 +307,104 @@
"tooltip": true, "tooltip": true,
"interval": 2 "interval": 2
}, },
"custom/gpu-temp": { "temperature#gpu": {
"exec": "cat /sys/class/hwmon/hwmon1/temp1_input | cut -b 1-2", "critical-threshold": 80,
"on-click": "kitty --class center-float-large nvtop", "on-click": "kitty --class center-float-large nvtop",
"format": " {}°C", "hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
"return-type": "", "format-critical": "{icon} {temperatureC}°C",
"format": "{icon} {temperatureC}°C",
"format-icons": ["", "", ""],
"tooltip": true,
"interval": 2 "interval": 2
} }
},
{
"height": 50,
"layer": "top",
"output": "HDMI-A-1",
"margin-top": 10,
"margin-left": 17,
"margin-bottom": 0,
"margin-right": 17,
"modules-left": ["custom/arch", "hyprland/workspaces"],
"modules-center": ["clock#cl2"],
"modules-right": ["tray", "custom/notifications"],
"custom/arch": {
"format": "  ",
"tooltip": false,
"on-click": "rofi -show drun",
"on-click-right": "wleave"
},
"custom/notifications": {
"tooltip": false,
"format": "{} {icon}",
"format-icons": {
"notification": "<span foreground='red'><sup></sup></span>",
"none": "",
"dnd-notification": "<span foreground='red'><sup></sup></span>",
"dnd-none": "",
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
"inhibited-none": "",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": ""
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
},
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"enable-bar-scroll": true,
"format": "{icon}",
"format-icons": {
"21": "",
"22": "󰍨",
"23": "✉",
"24": "🖵",
"25": "",
"26": "",
"27": "",
"28": "",
"29": "",
"30": ""
},
"on-scroll-up": "hyprctl dispatch workspace r-1",
"on-scroll-down": "hyprctl dispatch workspace r+1",
"on-click": "activate",
"sort-by-number": true
},
"tray": {
"spacing": 10
},
"clock#cl2": {
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode": "year",
"mode-mon-col": 3,
"weeks-pos": "right",
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#eed49f'><b>{}</b></span>",
"days": "<span color='#cad3f5'><b>{}</b></span>",
"weeks": "<span color='#8aadf4'><b>W{}</b></span>",
"weekdays": "<span color='#8bd5ca'><b>{}</b></span>",
"today": "<span color='#ed8796'><b><u>{}</u></b></span>"
}
},
"format": "{:%H:%M  - %A, %B %d, %Y  }",
"actions": {
"on-click-right": "mode",
"on-click-forward": "tz_up",
"on-click-backward": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
},
"on-click-middle": "thunderbird -calendar && hyprctl dispatch workspace 23"
}
} }
] ]