dotfiles/waybar/config

248 lines
6.2 KiB
Text
Raw Normal View History

2024-01-31 20:36:15 +00:00
{
2024-02-09 16:04:58 +00:00
"layer": "top",
2024-02-23 14:24:43 +00:00
"margin": "6 10 -3",
2024-02-09 16:04:58 +00:00
"height": 30,
"spacing": 4,
"modules-left": [
2024-02-10 16:47:19 +00:00
"custom/os",
2024-02-23 14:24:43 +00:00
"hyprland/workspaces",
2024-02-09 16:04:58 +00:00
],
"modules-center": [
"wlr/taskbar"
],
2024-02-23 14:24:43 +00:00
"modules-right": [
2024-02-09 16:04:58 +00:00
"network",
"bluetooth",
"cpu",
"memory",
"disk",
2024-03-11 14:29:59 +00:00
"custom/diskBackup",
2024-02-09 16:04:58 +00:00
"temperature",
2024-02-10 16:47:19 +00:00
"backlight",
2024-02-09 16:04:58 +00:00
"battery",
2024-03-01 16:35:31 +00:00
"custom/wakatime",
"clock",
2024-03-09 19:29:41 +00:00
"custom/timewarrior",
"custom/notification",
"idle_inhibitor",
2024-03-01 16:35:31 +00:00
"custom/logout"
2024-02-09 16:04:58 +00:00
],
2024-02-23 14:24:43 +00:00
"wlr/taskbar": {
2024-03-09 19:29:41 +00:00
"format": "{icon}",
2024-02-23 14:24:43 +00:00
"icon-size": 20,
2024-03-09 19:29:41 +00:00
"icon-theme": "Gruvbox Plus Dark",
2024-02-23 14:24:43 +00:00
"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"
}
},
2024-02-09 16:04:58 +00:00
"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": " "
2024-01-31 20:36:15 +00:00
},
2024-02-09 16:04:58 +00:00
"random-icons": {
"off": "<span color=\"#f53c3c\"></span> ",
"on": " "
2024-01-31 20:36:15 +00:00
},
2024-02-09 16:04:58 +00:00
"repeat-icons": {
"on": " "
2024-01-31 20:36:15 +00:00
},
2024-02-09 16:04:58 +00:00
"single-icons": {
"on": "1 "
2024-01-31 20:36:15 +00:00
},
2024-02-09 16:04:58 +00:00
"state-icons": {
"paused": "",
"playing": ""
2024-01-31 20:36:15 +00:00
},
2024-02-09 16:04:58 +00:00
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
},
"idle_inhibitor": {
2024-03-09 19:29:41 +00:00
"format": "󰖨"
2024-02-09 16:04:58 +00:00
},
"tray": {
"spacing": 10
},
"clock": {
"format": "{:%H:%M }",
"format-alt": "{:%d/%m/%Y}"
2024-02-09 16:04:58 +00:00
},
"cpu": {
2024-03-09 19:29:41 +00:00
"format": "cpu {usage}%",
2024-02-09 16:04:58 +00:00
"tooltip": false
},
"memory": {
2024-03-09 19:29:41 +00:00
"format": "mem {}%"
2024-02-09 16:04:58 +00:00
},
"temperature": {
"critical-threshold": 80,
2024-03-09 19:29:41 +00:00
"format": "temp {temperatureC}°C",
2024-02-09 16:04:58 +00:00
"format-icons": [
2024-02-23 14:24:43 +00:00
"󱩅",
"󱩅",
2024-02-27 17:39:26 +00:00
"󱩅"
2024-02-09 16:04:58 +00:00
]
},
"backlight": {
"device": "acpi_video1",
"format": "bl {percent}%",
2024-02-09 16:04:58 +00:00
"format-icons": [
2024-03-09 19:29:41 +00:00
"󰪞 ",
"󰪟 ",
"󰪠 ",
"󰪡 ",
"󰪢 ",
"󰪣 ",
"󰪥 "
2024-02-09 16:04:58 +00:00
]
},
"battery": {
"states": {
"warning": 30,
"critical": 15
2024-01-31 20:36:15 +00:00
},
"format": "batt {capacity}%",
"format-charging": "batt (ch){capacity}%",
"format-plugged": "batt {capacity}%",
2024-02-09 16:04:58 +00:00
"format-icons": [
2024-03-01 16:35:31 +00:00
"󰁻",
"󰁼",
"󰁿",
"󰂀",
"󰁹"
2024-02-09 16:04:58 +00:00
]
},
"battery#bat2": {
"bat": "BAT2"
},
"network": {
"format-wifi": "󰖩 {essid}",
2024-02-23 14:24:43 +00:00
"format-ethernet": "{ipaddr}/{cidr}",
"tooltip-format": "{ifname} via {gwaddr}",
"format-linked": "{ifname} (No IP)",
2024-03-09 19:29:41 +00:00
"format-disconnected": "󰖪 ",
"format-alt": "󰖩 {essid} ({signalStrength}%)"
2024-02-09 16:04:58 +00:00
},
"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": [
"",
"",
""
]
2024-01-31 20:36:15 +00:00
},
2024-02-09 16:04:58 +00:00
"on-click": "pavucontrol"
},
"disk": {
2024-01-31 20:36:15 +00:00
"interval": 30,
2024-03-09 19:29:41 +00:00
"format": "disk {percentage_used}%",
2024-02-09 16:04:58 +00:00
"path": "/home"
},
"bluetooth": {
"controller": "bluetoothctl",
"format": " active",
"format-connected": " connected",
2024-03-09 19:29:41 +00:00
"format-alt": " {device_alias}",
"format-connected-battery": " {device_battery_percentage}%",
2024-02-09 16:04:58 +00:00
"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": {
2024-03-02 18:03:04 +00:00
"format": " archbish",
2024-02-09 16:04:58 +00:00
},
"custom/wakatime": {
2024-03-02 17:34:17 +00:00
"exec": "source $HOME/dotfiles/.env && python3 $HOME/.config/waybar/resources/custom_modules/wakatime_waybar.py",
"format": "code {}",
2024-02-23 14:24:43 +00:00
"return-type": "json",
"interval": 600
},
2024-03-02 17:50:50 +00:00
"custom/timewarrior": {
"exec": "python3 $HOME/.config/waybar/resources/custom_modules/time_warrior_waybar.py",
"format": "{}",
2024-03-09 19:29:41 +00:00
"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'",
2024-03-02 17:50:50 +00:00
"return-type": "json",
"interval": 5
},
2024-03-01 16:35:31 +00:00
"custom/logout": {
2024-03-09 19:29:41 +00:00
"format": "󰛂",
"on-click": "sleep 0.1 && wlogout",
2024-03-01 16:35:31 +00:00
"tooltip": false
2024-03-09 19:29:41 +00:00
},
"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
2024-03-11 14:29:59 +00:00
},
"custom/diskBackup": {
"format": "bak {}",
2024-03-15 08:27:55 +00:00
"exec": "df -h /media/backups | awk 'NR==2{print $5}'",
2024-03-11 14:29:59 +00:00
"interval": 60,
}
2024-01-31 20:36:15 +00:00
}