dotfiles/waybar/config

267 lines
6.4 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-03-26 09:45:54 +00:00
"margin": "0",
2024-03-28 13:42:56 +00:00
"height": 25,
2024-03-26 09:45:54 +00:00
"spacing": 0,
2024-03-28 13:42:56 +00:00
"modules-left": [
2024-02-10 16:47:19 +00:00
"custom/os",
2024-02-23 14:24:43 +00:00
"hyprland/workspaces",
"wlr/taskbar"
2024-03-28 13:42:56 +00:00
],
2024-03-26 09:45:54 +00:00
"modules-center": [
],
2024-02-23 14:24:43 +00:00
"modules-right": [
2024-02-09 16:04:58 +00:00
"network",
"bluetooth",
"cpu",
"memory",
"temperature",
2024-02-10 16:47:19 +00:00
"backlight",
2024-03-26 09:45:54 +00:00
"disk",
2024-03-28 13:42:56 +00:00
"custom/diskBackup",
2024-02-09 16:04:58 +00:00
"battery",
2024-03-01 16:35:31 +00:00
"custom/wakatime",
2024-03-30 09:33:48 +00:00
"pulseaudio",
"clock",
2024-03-09 19:29:41 +00:00
"custom/timewarrior",
2024-03-26 09:45:54 +00:00
"custom/lock",
"custom/restart",
"custom/shutdown",
2024-03-28 13:42:56 +00:00
"custom/notification",
2024-03-26 09:45:54 +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-28 13:42:56 +00:00
"icon-theme": "Pop",
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": {
2024-03-28 13:42:56 +00:00
"format": "{:%H:%M}",
"format-alt": "{:%d/%m/%Y}"
2024-02-09 16:04:58 +00:00
},
"cpu": {
2024-03-28 13:42:56 +00:00
"format": "CPU: {usage}%",
2024-02-09 16:04:58 +00:00
"tooltip": false
},
"memory": {
2024-03-28 13:42:56 +00:00
"format": "Mem: {}%",
2024-02-09 16:04:58 +00:00
},
"temperature": {
"critical-threshold": 80,
2024-03-28 13:42:56 +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",
2024-03-28 13:42:56 +00:00
"format": "Dim: {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
},
2024-03-28 13:42:56 +00:00
"format": "Bat: {capacity}%",
"format-charging": "Bat: {capacity}%",
"format-plugged": "Bat: {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": {
2024-03-28 13:42:56 +00:00
"format-wifi": "Net: {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-28 13:42:56 +00:00
"format-disconnected": "Net: none",
"format-alt": "Sig: {essid} ({signalStrength}%)"
2024-02-09 16:04:58 +00:00
},
"pulseaudio": {
2024-03-30 09:33:48 +00:00
"format": "Vol: {volume}%",
"format-bluetooth": "Vol: {volume}%",
"format-bluetooth-muted": "",
"format-muted": "Vol: mute",
"format-source": "Vol: {volume}%",
"format-source-muted": "Vole: mute",
2024-02-09 16:04:58 +00:00
"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-28 13:42:56 +00:00
"format": "Disk: {percentage_used}%",
2024-02-09 16:04:58 +00:00
"path": "/home"
},
"bluetooth": {
"controller": "bluetoothctl",
2024-03-28 13:42:56 +00:00
"format": "BT: active",
"format-connected": "BT: connected",
"format-alt": "BT: {device_alias}",
"format-connected-battery": "BT: {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-30 09:33:48 +00:00
"format": "",
"tooltip": false
2024-02-09 16:04:58 +00:00
},
"custom/wakatime": {
2024-03-28 13:42:56 +00:00
"exec": "source $HOME/.env && python3 $HOME/.config/waybar/resources/custom_modules/wakatime.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",
2024-03-30 09:33:48 +00:00
"interval": 5,
"tooltip": false
2024-03-02 17:50:50 +00:00
},
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": {
2024-03-30 09:33:48 +00:00
"notification": "<span color=\"#b8bb26\">󰂝</span>",
2024-03-09 19:29:41 +00:00
"none": "󰂚",
2024-03-26 09:45:54 +00:00
"dnd-notification": "󰂛",
2024-03-09 19:29:41 +00:00
"dnd-none": "󰂛",
2024-03-26 09:45:54 +00:00
"inhibited-notification": "󰂛",
2024-03-09 19:29:41 +00:00
"inhibited-none": "󰂚",
2024-03-26 09:45:54 +00:00
"dnd-inhibited-notification": "󰂛",
"dnd-inhibited-none": "󰂚",
2024-03-09 19:29:41 +00:00
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
2024-03-26 09:45:54 +00:00
"on-click": "sleep 0.2 && swaync-client -t -sw",
2024-03-09 19:29:41 +00:00
"on-click-right": "swaync-client -d -sw",
"escape": true
2024-03-11 14:29:59 +00:00
},
2024-03-26 09:45:54 +00:00
"custom/diskBackup": {
2024-03-28 13:42:56 +00:00
"format": "Bak: {}",
2024-03-26 09:45:54 +00:00
"exec": "df -h /media/backups | awk 'NR==2{print $5}'",
2024-03-30 09:33:48 +00:00
"interval": 60,
"tooltip": false
2024-03-26 09:45:54 +00:00
},
"custom/lock": {
"format": "󰍁",
2024-03-30 09:33:48 +00:00
"on-click": "hyprlock",
"tooltip": false
2024-03-26 09:45:54 +00:00
},
"custom/shutdown": {
"format": "󱠡",
2024-03-30 09:33:48 +00:00
"tooltip": false,
2024-03-26 09:45:54 +00:00
"on-click": "systemctl poweroff"
},
"custom/restart": {
"format": "󰑓",
2024-03-30 09:33:48 +00:00
"tooltip": false,
2024-03-26 09:45:54 +00:00
"on-click": "systemctl reboot"
2024-03-28 13:42:56 +00:00
}
2024-01-31 20:36:15 +00:00
}