updated styling

This commit is contained in:
Elias Renman
2024-06-08 16:50:33 +02:00
parent 85814083ce
commit 7976f8cac5
14 changed files with 623 additions and 125 deletions

View File

@@ -9,26 +9,29 @@
"modules-left": [
"hyprland/workspaces",
"custom/separator",
"custom/weather",
"custom/separator",
"memory",
"custom/separator",
"cpu"
],
"modules-center": [
"clock",
"clock"
],
"modules-right": [
"tray",
// "idle_inhibitor",
"memory",
"cpu",
// "custom/keyboard-layout",
//"custom/PBPbattery",
// "backlight#icon",
"backlight#value",
"custom/separator",
"pulseaudio",
"pulseaudio#microphone",
"custom/separator",
"network",
"battery",
"custom/power",
"custom/separator",
"custom/power"
],
// Modules
@@ -55,11 +58,6 @@
"format-icons": ["", "", "", "", ""]
},
"custom/PBPbattery": {
"exec": "sh ~/.config/waybar/scripts/PBPbattery.sh",
"format": "{}",
},
"clock": {
"interval": 10,
// "format-alt": " {:%e %b %Y}", // Icon: calendar-alt
@@ -69,29 +67,18 @@
"cpu": {
"interval": 5,
"format": " {usage}% ({load})", // Icon: microchip
"format": " {usage}% ({load})", // Icon: nf-oct-cpu
"states": {
"warning": 70,
"critical": 90,
},
"on-click": "alacritty -e 'btm'",
},
"custom/keyboard-layout": {
"exec": "swaymsg -t get_inputs | grep -m1 'xkb_active_layout_name' | cut -d '\"' -f4",
// Interval set only as a fallback, as the value is updated by signal
"interval": 30,
"format": " {}", // Icon: keyboard
// Signal sent by Sway key binding (~/.config/sway/key-bindings)
"signal": 1, // SIGHUP
"tooltip": false,
"on-click": "sh ~/.config/waybar/scripts/keyhint.sh",
"on-click": "alacritty -e 'glances'",
},
"memory": {
"interval": 5,
"format": " {}%", // Icon: memory
"on-click": "alacritty -e 'btm'",
"format": " {}%", // Icon: nf-cod-graph
"on-click": "alacritty -e 'glances'",
"states": {
"warning": 70,
"critical": 90
@@ -100,8 +87,8 @@
"network": {
"interval": 5,
"format-wifi": " ", // Icon: wifi
"format-ethernet": " ", // Icon: ethernet
"format-wifi": "", // Icon: wifi
"format-ethernet": "", // Icon: ethernet
"format-disconnected": "⚠ Disconnected",
"tooltip-format": "{ifname}: {ipaddr}",
"on-click": "alacritty -e 'nmtui'",
@@ -123,10 +110,30 @@
"max-length": 120
},
"hyrpland/workspaces": {
"hyprland/workspaces": {
// "on-scroll-up": "hyprctl dispatch workspace e+1",
// "on-scroll-down": "hyprctl dispatch workspace e-1",
"format": "{icon}",
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1"
"format-icons": {
"1": "",
"2": "Ⅱ",
"3": "Ⅲ",
"4": "Ⅳ",
"5": "",
"6": "Ⅵ",
"7": "Ⅶ",
"8": "Ⅷ",
"9": "Ⅸ",
"10": "",
//"active": "α",
// "default": "1"
// "persistent": ""
},
"all-outputs": true,
"persistent_workspaces": {
"*": 5
}
},
"pulseaudio": {
@@ -138,16 +145,16 @@
"format-icons": {
"headphone": "󰋋",
"hands-free": "וֹ",
"headset": " ",
"headset": " 󰥰 ",
"phone": "",
"portable": "",
"car": "",
"default": [""]
},
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click": "pamixer -t",
"on-click-right": "pavucontrol",
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +2%",
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -2%",
"on-scroll-up": "pamixer -i 2",
"on-scroll-down": "pamixer -d 2"
},
"pulseaudio#microphone": {
@@ -164,7 +171,7 @@
// to use the weather module replace <your_location> with your city or town
// note: do not use spaces: new york would be newyork
"custom/weather": {
"exec": "sh ~/.config/waybar/scripts/weather.sh tampa",
"exec": "sh ~/.config/waybar/scripts/weather.sh 'Vännäs'",
"return-type": "json",
"interval": 600,
},
@@ -187,45 +194,15 @@
"on-scroll-up": "brightnessctl -c backlight set +1%"
},
"custom/firefox": {
"format": " ",
"on-click": "exec firefox",
"tooltip": false
},
"custom/terminal": {
"format": " ",
"on-click": "exec alacritty",
"tooltip": false
},
"custom/files": {
"format": " ",
"on-click": "exec nautilus",
"tooltip": false
},
"custom/launcher": {
"format":" ",
"on-click": "exec wofi -c ~/.config/wofi/config -I",
"tooltip": false,
},
"custom/power": {
"format":"⏻",
"on-click": "exec wlogout",
"tooltip": false,
"tooltip": false
},
"custom/media": {
"format": "{icon} {}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "󰗃"
},
"escape": true,
"exec": "/usr/bin/python3 $HOME/.config/waybar/scripts/mediaplayer.py 2> /dev/null" // Script in resources folder
"custom/separator": {
"format": "",
"interval": "once",
"tooltip": false
}
}