203 lines
5.6 KiB
Text
203 lines
5.6 KiB
Text
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
|
|
"modules-left": ["tray", "custom/launcher", "sway/workspaces", "sway/mode", "sway/window"],
|
|
"modules-center": ["custom/stub", "custom/spotify", "custom/weather", "clock", "custom/vnc", "custom/stub"],
|
|
"modules-right": ["custom/keyboard-layout", "backlight", "memory", "battery", "network", "pulseaudio", "custom/power"],
|
|
|
|
"sway/workspaces": {
|
|
"disable-scroll": true,
|
|
"all-outputs": true,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"3": "3",
|
|
"4": "4",
|
|
"5": "5",
|
|
"6": "6",
|
|
"7": "7",
|
|
"8": "8",
|
|
"9": "9",
|
|
"10": "10",
|
|
}
|
|
},
|
|
|
|
"sway/mode": {
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
},
|
|
|
|
"sway/window": {
|
|
"icon": false,
|
|
"format": "{}"
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 14,
|
|
"spacing": 5
|
|
},
|
|
|
|
"clock": {
|
|
"tooltip-format": "{:%A %B %d %Y | %H:%M}",
|
|
//"format": " {:%a %d %b %I:%M %p}", //12 hour format
|
|
"format": " {:%a %d %b %H:%M}", //24 hour format
|
|
"format-alt": " {:%d/%m/%Y %H:%M:%S}",
|
|
//"timezones": [ "" ],
|
|
//"max-length": 200
|
|
"interval": 1
|
|
},
|
|
|
|
"cpu": {
|
|
"format": " {usage}%",
|
|
"on-click": "alacritty -e htop"
|
|
},
|
|
|
|
"memory": {
|
|
"format": " {used:0.1f}GB",
|
|
"on-click": "alacritty -e htop"
|
|
},
|
|
|
|
"temperature": {
|
|
// "thermal-zone": 2,
|
|
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
|
"critical-threshold": 80,
|
|
// "format-critical": "{temperatureC}°C ",
|
|
"format": "{temperatureC}°C "
|
|
},
|
|
|
|
"backlight": {
|
|
// "device": "acpi_video1",
|
|
"format": "{icon} {percent}%",
|
|
"format-icons": ["", ""],
|
|
"on-scroll-down": "brightnessctl -c backlight set 5%",
|
|
"on-scroll-up": "brightnessctl -c backlight set +5%"
|
|
},
|
|
|
|
"battery": {
|
|
"states": {
|
|
// "good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon} {capacity}%",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
|
|
"network": {
|
|
// "interface": "wlp2s0", // (Optional) To force the use of this interface
|
|
"format": "⚠ Disabled",
|
|
"format-wifi": " ",
|
|
"format-ethernet": " {ifname}",
|
|
"format-disconnected": "⚠ Disconnected",
|
|
"on-click": "networkmanager_dmenu",
|
|
"tooltip" : true,
|
|
"tooltip-format" : "{ifname}\n{ipaddr}",
|
|
"tooltip-format-wifi" : "{essid} {ifname}\n{ipaddr}\nstrength: {signalStrength}%"
|
|
},
|
|
|
|
"pulseaudio": {
|
|
"scroll-step": 5,
|
|
"format": "{icon} {volume}%",
|
|
"format-bluetooth": "{icon} {volume}%",
|
|
"format-muted":"muted ",
|
|
"format-icons": {
|
|
"headphones": "",
|
|
"handsfree": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
|
|
"custom/stub" : {
|
|
"format": " {} ",
|
|
"exec": "echo \":\""
|
|
},
|
|
|
|
"custom/spotify": {
|
|
"exec": "/usr/bin/python3 ~/.config/waybar/scripts/mediaplayer.py --player spotify",
|
|
"format": " {} ",
|
|
"return-type": "json",
|
|
"on-click": "playerctl play-pause",
|
|
"on-scroll-up": "playerctl next",
|
|
"on-scroll-down": "playerctl previous"
|
|
},
|
|
|
|
"custom/launcher": {
|
|
"format":"| {} ",
|
|
"on-click": "exec nwggrid",
|
|
"tooltip": false,
|
|
"exec" : "echo $USER"
|
|
},
|
|
|
|
"custom/weather": {
|
|
"format": "{}",
|
|
"tooltip": true,
|
|
"interval": 3600,
|
|
"exec": "$HOME/.config/waybar/scripts/waybar-wttr.py",
|
|
"return-type": "json"
|
|
},
|
|
|
|
"custom/pacman": {
|
|
"format": " {}",
|
|
"interval": 7200, // every two hours
|
|
"exec": "checkupdates | wc -l", // # of updates
|
|
"exec-if": "exit 0", // always run; consider advanced run conditions
|
|
"on-click": "alacritty -e sudo pacman -Syu ; pkill -SIGRTMIN+8 waybar", // update system
|
|
"signal": 8
|
|
},
|
|
|
|
"custom/power": {
|
|
"format":" ⏻ ",
|
|
"on-click": "nwgbar",
|
|
"tooltip": false,
|
|
},
|
|
|
|
"custom/vnc": {
|
|
"format": "🖥{}",
|
|
"exec": "$HOME/.config/sway/scripts/vnc_server.sh",
|
|
"on-click": "$HOME/.config/sway/scripts/vnc_server.sh $(cat /tmp/VNC_CHANGE_STATE_VAR)",
|
|
|
|
"return-type": "json",
|
|
"tooltip" : true,
|
|
"interval": "once",
|
|
"signal": 5
|
|
},
|
|
|
|
// to find keyboard identifier use "swaymsg -t get_inputs"
|
|
"custom/keyboard-layout": {
|
|
"format": " {}",
|
|
"tooltip": false,
|
|
"exec": "$HOME/.config/waybar/scripts/kblayout.sh"
|
|
// "on-click": "swaymsg exec alacritty -e ~/.config/sway/scripts/keyhint.sh",
|
|
// "exec": "$HOME/.config/waybar/scripts/kblayout.sh '1:1:AT_Translated_Set_2_keyboard'"
|
|
// "exec": "$HOME/.config/waybar/scripts/kblayout.sh '6700:3620:SEM_USB_Keyboard'"
|
|
},
|
|
|
|
"wlr/taskbar": {
|
|
"format": "{icon}",
|
|
"icon-size": 14,
|
|
"icon-theme": "Numix-Circle",
|
|
"tooltip-format": "{title}",
|
|
"on-click": "activate",
|
|
"on-click-middle": "close"
|
|
},
|
|
|
|
"custom/arrowL0": {
|
|
"format":""
|
|
},
|
|
|
|
"custom/arrowR0": {
|
|
"format":""
|
|
},
|
|
}
|