Add Hyprland stuff

This commit is contained in:
2023-11-27 23:31:36 +01:00
parent 06b642ae28
commit 5017ee7099
9 changed files with 143 additions and 123 deletions

View File

@@ -7,11 +7,13 @@
"spacing": 4, // Gaps between modules (4px)
"output": "${PRIMARY_DISPLAY}",
// Choose the order of the modules
"modules-left": ["wlr/workspaces", "hyprland/window"],
"modules-left": ["hyprland/workspaces", "hyprland/window"],
"modules-center": ["custom/inhibit", "idle_inhibitor", "custom/dunst"],
"modules-right": ["hyprland/submap", "custom/wifionice", "custom/spotify", "pulseaudio", "custom/network", "cpu", "memory", "temperature", "backlight", "battery", "clock", "tray"],
// Modules configuration
"wlr/workspaces": {
"hyprland/workspaces": {
"format-alt": "{name}",
"format-alt-click": "click-middle",
"disable-scroll": false,
"sort-by-number": true,
"all-outputs": true,
@@ -28,24 +30,24 @@
"default": ""
}
},
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"custom/spotify": {
"format-alt": "{status_icon} {title}",
"format-alt-click": "click-middle",
"exec": "/usr/bin/python3 ~/.config/waybar/scripts/mediaplayer.py --player spotify",
"format": "{} ",
"format": "{status_icon} {artist} - {title}",
"return-type": "json",
"escape": true,
"on-click": "playerctl play-pause",
"on-scroll-up": "playerctl next",
"on-scroll-down": "playerctl previous"
},
"custom/debug": {
"format": "{}",
"exec": "~/test.sh",
"return-type": "json",
"escape": true,
"interval": 3
},
"custom/inhibit": {
"format": "☕",
"on-click": "systemd-inhibit --what=handle-lid-switch --who=waybar --why='Inhibiting suspend' --mode=block sleep 120 & notify-send 'Inhibiting suspend' 'Waybar will prevent the system from suspending for 2 minutes'"
@@ -59,6 +61,8 @@
"restart-interval": 1
},
"custom/wifionice": {
"format-alt": "{:.2}", // only show train :D
"format-alt-click": "click-middle",
"exec": "~/.config/waybar/scripts/wifionice.sh",
"escape": true
},
@@ -112,9 +116,6 @@
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"battery#bat2": {
"bat": "BAT2"
},
"custom/network": {
"format": "{}",
"max-length": 40,
@@ -127,30 +128,19 @@
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source": "",
"format-source-muted": "",
"ignored-sinks": [ "Easy Effects Sink" ],
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"custom/media": {
"format": "{icon} {}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
}
}