dotfiles/waybar/config

318 lines
6.7 KiB
Text
Raw Normal View History

2024-01-31 20:36:15 +00:00
{
2024-04-07 19:22:01 +01:00
2024-02-09 16:04:58 +00:00
"layer": "top",
2024-04-07 19:22:01 +01:00
"position": "bottom",
2024-03-26 09:45:54 +00:00
"margin": "0",
2024-04-07 19:22:01 +01:00
"height": 20,
"spacing": "",
"modules-left": [
"image#os",
"wlr/taskbar"
2024-03-28 13:42:56 +00:00
],
2024-04-07 19:22:01 +01:00
2024-03-26 09:45:54 +00:00
"modules-center": [
],
2024-04-07 19:22:01 +01:00
2024-02-23 14:24:43 +00:00
"modules-right": [
"custom/timewarrior",
2024-04-07 19:22:01 +01:00
"group/workspaceList",
"group/metrics",
"group/clockOutput",
"group/controls",
],
"group/clockOutput": {
"orientation": "horizontal",
"modules": [
"clock",
]
},
"group/workspaceList": {
"orientation": "horizontal",
"modules": [
"hyprland/workspaces",
]
},
"group/timeTracker": {
"orientation": "horizontal",
"modules": [
"custom/timewarrior",
]
},
"group/metrics": {
"orientation": "horizontal",
"modules": [
"image#internet",
"network",
"image#bluetooth",
"bluetooth",
"image#memory",
"memory",
"image#cpu",
"cpu",
"image#harddrive",
"disk",
"image#backup",
"custom/diskBackup",
"image#backlight",
"backlight",
"image#volume",
"pulseaudio",
"image#battery",
"battery",
"image#code",
"custom/wakatime",
]
},
"group/controls": {
"orientation": "horizontal",
"modules": [
"image#timewarrior",
"image#keys",
"image#restart",
"image#shutdown",
]
},
"hyprland/workspaces": {
"format": "{icon}",
"on-click": "activate",
"sort-by-number": false,
"format-icons": {
"1": "Workspace 1",
"2": "Workspace 2",
"3": "Workspace 3",
"4": "Workspace 4",
"5": "Workspace 5",
"6": "Workspace 6",
},
2024-04-07 19:22:01 +01:00
},
"image#code": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/binary-98.png",
"size": 22,
"interval": 5,
},
"image#battery": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/battery-98.png",
"size": 22,
"interval": 5,
},
"image#backup": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/floppy-98.png",
"size": 22,
"interval": 5,
},
"image#harddrive": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/hardisk-98.png",
"size": 22,
"interval": 5,
},
"image#volume": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/sound-98.png",
"size": 19,
"interval": 5,
},
"image#backlight": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/brightness-98.png",
"size": 18,
"interval": 5,
},
"image#memory": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/memory-98.png",
"size": 22,
"interval": 5,
},
"image#cpu": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/processor-98.png",
"size": 22,
"interval": 5,
},
2024-03-26 09:45:54 +00:00
2024-04-07 19:22:01 +01:00
"image#internet": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/internet-98.png",
"size": 22,
"interval": 5,
},
"image#bluetooth": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/bluetooth.png",
2024-04-21 18:29:07 +01:00
"size": 18,
2024-04-07 19:22:01 +01:00
"interval": 5,
},
"image#os": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/computer-98.png",
"size": 26,
"interval": 5,
},
"image#keys": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/keys-98.png",
"size": 26,
"interval": 5,
"on-click": "sleep 0.1 && hyprlock",
},
"image#restart": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/restart-98.png",
"size": 26,
"interval": 5,
"on-click": "/home/thomas/dotfiles/scripts/reboot_sound.sh",
2024-04-07 19:22:01 +01:00
},
"image#shutdown": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/poweroff-98.png",
"size": 26,
"interval": 5,
"on-click": "/home/thomas/dotfiles/scripts/shutdown_sound.sh",
2024-04-07 19:22:01 +01:00
},
"image#notification": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/notification-98.png",
"size": 26,
"interval": 5,
"on-click": "sleep 0.2 && slack",
2024-04-07 19:22:01 +01:00
},
"image#timewarrior": {
"path": "/home/thomas/dotfiles/gruvbox-95/icons/timewarrior-98.png",
"size": 26,
"interval": 2,
"on-click": "sleep 0.1 && timew stop && /home/thomas/dotfiles/scripts/notify_slack_waybar_wrapper.sh 'time_tracking' 'Time Warrior: timer stopped.'",
"on-click-right": "sleep 0.1 && timew continue && /home/thomas/dotfiles/scripts/notify_slack_waybar_wrapper.sh 'time_tracking' 'Time Warrior: timer resumed.'",
2024-04-07 19:22:01 +01:00
},
"wlr/taskbar": {
2024-03-09 19:29:41 +00:00
"format": "{icon}",
2024-04-07 19:22:01 +01:00
"icon-size": 22,
"icon-theme": "Raleigh",
2024-02-23 14:24:43 +00:00
"tooltip-format": "{title}",
"on-click": "activate",
2024-02-09 16:04:58 +00:00
},
2024-04-07 19:22:01 +01:00
2024-02-09 16:04:58 +00:00
"tray": {
"spacing": 10
},
2024-04-07 19:22:01 +01:00
2024-02-09 16:04:58 +00:00
"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
},
2024-04-07 19:22:01 +01:00
2024-02-09 16:04:58 +00:00
"cpu": {
2024-04-07 19:22:01 +01:00
"format": "{usage}%",
"tooltip": "CPU"
2024-02-09 16:04:58 +00:00
},
2024-04-07 19:22:01 +01:00
2024-02-09 16:04:58 +00:00
"memory": {
2024-04-07 19:22:01 +01:00
"format": "{}%",
"tooltip": "Memory"
2024-02-09 16:04:58 +00:00
},
2024-04-07 19:22:01 +01:00
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
]
},
2024-04-07 19:22:01 +01:00
2024-02-09 16:04:58 +00:00
"backlight": {
"device": "acpi_video1",
2024-04-07 19:22:01 +01:00
"format": "{percent}%",
2024-02-09 16:04:58 +00:00
},
2024-04-07 19:22:01 +01:00
2024-02-09 16:04:58 +00:00
"battery": {
"states": {
"warning": 30,
"critical": 15
2024-01-31 20:36:15 +00:00
},
2024-04-07 19:22:01 +01:00
"format": "{capacity}%",
"format-charging": "{capacity}%",
"format-plugged": "{capacity}%",
2024-02-09 16:04:58 +00:00
},
2024-04-07 19:22:01 +01:00
2024-02-09 16:04:58 +00:00
"network": {
2024-04-07 19:22:01 +01:00
"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-28 13:42:56 +00:00
"format-disconnected": "Net: none",
2024-04-07 19:22:01 +01:00
"format-alt": "{essid} ({signalStrength}%)"
2024-02-09 16:04:58 +00:00
},
2024-04-07 19:22:01 +01:00
2024-02-09 16:04:58 +00:00
"pulseaudio": {
2024-04-07 19:22:01 +01:00
"format": "{volume}%",
"format-bluetooth": "{volume}%",
2024-03-30 09:33:48 +00:00
"format-bluetooth-muted": "",
2024-04-07 19:22:01 +01:00
"format-muted": "Mute",
"format-source": "{volume}%",
"format-source-muted": "Mute",
2024-02-09 16:04:58 +00:00
"on-click": "pavucontrol"
},
2024-04-07 19:22:01 +01:00
2024-02-09 16:04:58 +00:00
"disk": {
2024-01-31 20:36:15 +00:00
"interval": 30,
2024-04-07 19:22:01 +01:00
"format": "{percentage_used}%",
2024-02-09 16:04:58 +00:00
"path": "/home"
},
2024-04-07 19:22:01 +01:00
2024-02-09 16:04:58 +00:00
"bluetooth": {
"controller": "bluetoothctl",
2024-04-07 19:22:01 +01:00
"format": "Active",
"format-connected": "Connected",
"format-alt": "{device_alias}",
2024-04-21 18:29:07 +01:00
"format-connected-battery": "{device_alias}",
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}%"
2024-04-07 19:22:01 +01:00
},
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",
2024-04-07 19:22:01 +01:00
"format": "{}",
2024-02-23 14:24:43 +00:00
"return-type": "json",
"interval": 600
},
2024-04-07 19:22:01 +01:00
2024-03-02 17:50:50 +00:00
"custom/timewarrior": {
"exec": "python3 $HOME/.config/waybar/resources/custom_modules/time_warrior_waybar.py",
"format": "{}",
"return-type": "json",
2024-03-30 09:33:48 +00:00
"interval": 5,
"tooltip": false
2024-03-02 17:50:50 +00:00
},
2024-04-07 19:22:01 +01:00
2024-03-26 09:45:54 +00:00
"custom/diskBackup": {
2024-04-07 19:22:01 +01:00
"format": "{}",
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
},
2024-04-07 19:22:01 +01:00
"custom/shutdown": {
2024-03-26 09:45:54 +00:00
"format": "󱠡",
2024-03-30 09:33:48 +00:00
"tooltip": false,
2024-03-26 09:45:54 +00:00
"on-click": "systemctl poweroff"
},
2024-04-07 19:22:01 +01:00
2024-01-31 20:36:15 +00:00
}