247 lines
6.2 KiB
Text
247 lines
6.2 KiB
Text
{
|
|
"layer": "top",
|
|
"margin": "6 10 -3",
|
|
"height": 30,
|
|
"spacing": 4,
|
|
"modules-left": [
|
|
"custom/os",
|
|
"hyprland/workspaces",
|
|
],
|
|
"modules-center": [
|
|
"wlr/taskbar"
|
|
],
|
|
"modules-right": [
|
|
"network",
|
|
"bluetooth",
|
|
"cpu",
|
|
"memory",
|
|
"disk",
|
|
"custom/diskBackup",
|
|
"temperature",
|
|
"backlight",
|
|
"battery",
|
|
"custom/wakatime",
|
|
"clock",
|
|
"custom/timewarrior",
|
|
"custom/notification",
|
|
"idle_inhibitor",
|
|
"custom/logout"
|
|
],
|
|
"wlr/taskbar": {
|
|
"format": "{icon}",
|
|
"icon-size": 20,
|
|
"icon-theme": "Gruvbox Plus Dark",
|
|
"tooltip-format": "{title}",
|
|
"on-click": "activate",
|
|
"on-click-middle": "close",
|
|
"ignore-list": [
|
|
"Alacritty"
|
|
],
|
|
"app_ids-mapping": {
|
|
"firefoxdeveloperedition": "firefox-developer-edition"
|
|
},
|
|
"rewrite": {
|
|
"Firefox Web Browser": "Firefox",
|
|
"Foot Server": "Terminal"
|
|
}
|
|
},
|
|
"keyboard-state": {
|
|
"numlock": true,
|
|
"capslock": true,
|
|
"format": "{name} {icon}",
|
|
"format-icons": {
|
|
"locked": "",
|
|
"unlocked": ""
|
|
}
|
|
},
|
|
"mpd": {
|
|
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
|
|
"format-disconnected": "Disconnected ",
|
|
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
|
"unknown-tag": "N/A",
|
|
"interval": 2,
|
|
"consume-icons": {
|
|
"on": " "
|
|
},
|
|
"random-icons": {
|
|
"off": "<span color=\"#f53c3c\"></span> ",
|
|
"on": " "
|
|
},
|
|
"repeat-icons": {
|
|
"on": " "
|
|
},
|
|
"single-icons": {
|
|
"on": "1 "
|
|
},
|
|
"state-icons": {
|
|
"paused": "",
|
|
"playing": ""
|
|
},
|
|
"tooltip-format": "MPD (connected)",
|
|
"tooltip-format-disconnected": "MPD (disconnected)"
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": ""
|
|
},
|
|
"tray": {
|
|
"spacing": 10
|
|
},
|
|
"clock": {
|
|
"format": "{:%H:%M }",
|
|
"format-alt": "{:%d/%m/%Y}"
|
|
},
|
|
"cpu": {
|
|
"format": "cpu {usage}%",
|
|
"tooltip": false
|
|
},
|
|
"memory": {
|
|
"format": "mem {}%"
|
|
},
|
|
"temperature": {
|
|
"critical-threshold": 80,
|
|
"format": "temp {temperatureC}°C",
|
|
"format-icons": [
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
},
|
|
"backlight": {
|
|
"device": "acpi_video1",
|
|
"format": "bl {percent}%",
|
|
"format-icons": [
|
|
" ",
|
|
" ",
|
|
" ",
|
|
" ",
|
|
" ",
|
|
" ",
|
|
" "
|
|
]
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "batt {capacity}%",
|
|
"format-charging": "batt (ch){capacity}%",
|
|
"format-plugged": "batt {capacity}%",
|
|
"format-icons": [
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
},
|
|
"battery#bat2": {
|
|
"bat": "BAT2"
|
|
},
|
|
"network": {
|
|
"format-wifi": " {essid}",
|
|
"format-ethernet": "{ipaddr}/{cidr}",
|
|
"tooltip-format": "{ifname} via {gwaddr}",
|
|
"format-linked": "{ifname} (No IP)",
|
|
"format-disconnected": " ",
|
|
"format-alt": " {essid} ({signalStrength}%)"
|
|
},
|
|
"pulseaudio": {
|
|
"format": "{icon} {volume}%",
|
|
"format-bluetooth": "{icon} {volume}% {format_source}",
|
|
"format-bluetooth-muted": " {icon} {format_source}",
|
|
"format-muted": " {format_source}",
|
|
"format-source": " {volume}%",
|
|
"format-source-muted": "",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": [
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"disk": {
|
|
"interval": 30,
|
|
"format": "disk {percentage_used}%",
|
|
"path": "/home"
|
|
},
|
|
"bluetooth": {
|
|
"controller": "bluetoothctl",
|
|
"format": " active",
|
|
"format-connected": " connected",
|
|
"format-alt": " {device_alias}",
|
|
"format-connected-battery": " {device_battery_percentage}%",
|
|
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
|
|
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
|
|
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
|
|
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%"
|
|
},
|
|
"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"
|
|
},
|
|
"custom/os": {
|
|
"format": " archbish",
|
|
},
|
|
"custom/wakatime": {
|
|
"exec": "source $HOME/dotfiles/.env && python3 $HOME/.config/waybar/resources/custom_modules/wakatime_waybar.py",
|
|
"format": "code {}",
|
|
"return-type": "json",
|
|
"interval": 600
|
|
},
|
|
"custom/timewarrior": {
|
|
"exec": "python3 $HOME/.config/waybar/resources/custom_modules/time_warrior_waybar.py",
|
|
"format": "{}",
|
|
"on-click": "sleep 0.15 && timew stop && notify-send 'Time Warrior' 'Timer stopped'",
|
|
"on-click-right": "sleep 0.1 && timew continue && notify-send 'Time Warrior' 'Timer resumed'",
|
|
"return-type": "json",
|
|
"interval": 5
|
|
},
|
|
"custom/logout": {
|
|
"format": "",
|
|
"on-click": "sleep 0.1 && wlogout",
|
|
"tooltip": false
|
|
},
|
|
"custom/notification": {
|
|
"tooltip": false,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"notification": "<span foreground='#b8bb26'></span>",
|
|
"none": "",
|
|
"dnd-notification": "<span foreground='#b8bb26'></span>",
|
|
"dnd-none": "",
|
|
"inhibited-notification": "<span foreground='#b8bb26'></span>",
|
|
"inhibited-none": "",
|
|
"dnd-inhibited-notification": "<span foreground='#b8bb26'></span>",
|
|
"dnd-inhibited-none": ""
|
|
},
|
|
"return-type": "json",
|
|
"exec-if": "which swaync-client",
|
|
"exec": "swaync-client -swb",
|
|
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
|
"on-click-right": "swaync-client -d -sw",
|
|
"escape": true
|
|
},
|
|
"custom/diskBackup": {
|
|
"format": "bak {}",
|
|
"exec": "df -h /media/backups | awk 'NR==2{print $5}'",
|
|
"interval": 60,
|
|
|
|
}
|
|
|
|
|
|
}
|