hyprland-dotfiles/waybar/modules.json

249 lines
6.1 KiB
JSON
Raw Normal View History

2023-08-28 11:58:46 +00:00
// __ __ _ _
// | \/ | ___ __| |_ _| | ___ ___
// | |\/| |/ _ \ / _` | | | | |/ _ \/ __|
// | | | | (_) | (_| | |_| | | __/\__ \
// |_| |_|\___/ \__,_|\__,_|_|\___||___/
//
//
// by Stephan Raabe (2023)
// -----------------------------------------------------
//
{
// Workspaces
2023-09-05 18:17:41 +00:00
"hyprland/workspaces" : {
2023-08-28 11:58:46 +00:00
"on-click": "activate",
"active-only": false,
"all-outputs": true,
"format": "{icon}",
"format-icons": {
2023-08-30 12:45:03 +00:00
"urgent": "",
"active": "",
2023-09-05 18:17:41 +00:00
"default": ""
},
"persistent_workspaces": {
"*": 5
}
2023-08-28 11:58:46 +00:00
},
2023-08-28 12:42:41 +00:00
2023-08-31 07:05:39 +00:00
// Taskbar
"wlr/taskbar": {
"format": "{icon}",
2023-09-01 08:25:57 +00:00
"icon-size": 18,
2023-08-31 07:05:39 +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"
}
},
2023-08-31 12:10:16 +00:00
// Hyprland Window
"hyprland/window": {
"rewrite": {
"(.*) - Brave": "$1",
"(.*) - Chromium": "$1",
"(.*) - Brave Search": "$1",
"(.*) - Outlook": "$1",
"(.*) Microsoft Teams": "$1"
},
"separate-outputs": true
},
2023-08-28 11:58:46 +00:00
// Youtube Subscriber Count
"custom/youtube": {
2023-08-28 12:42:41 +00:00
"format": " {}",
2023-08-28 11:58:46 +00:00
"exec": "python ~/private/youtube.py",
2023-08-31 12:10:16 +00:00
"restart-interval": 600,
2023-08-28 12:42:41 +00:00
"on-click": "brave https://studio.youtube.com",
"tooltip": false
2023-08-28 11:58:46 +00:00
},
2023-08-28 12:42:41 +00:00
2023-08-31 09:43:42 +00:00
// Updates Count
"custom/updates": {
"format": " {}",
"tooltip-format": "{}",
"escape": true,
"return-type": "json",
2023-08-31 09:43:42 +00:00
"exec": "~/dotfiles/scripts/updates.sh",
"restart-interval": 60,
"on-click": "alacritty -e ~/dotfiles/scripts/installupdates.sh",
2023-08-31 09:43:42 +00:00
"tooltip": false
},
2023-09-14 12:34:08 +00:00
// Filemanager Launcher
"custom/filemanager": {
"format": "",
"on-click": "nautilus",
"tooltip": false
},
2023-08-28 11:58:46 +00:00
// Outlook Launcher
"custom/outlook": {
"format": "",
2023-08-28 12:42:41 +00:00
"on-click": "brave --app=https://outlook.office.com/mail/",
"tooltip": false
2023-08-28 11:58:46 +00:00
},
2023-08-28 12:42:41 +00:00
2023-08-28 11:58:46 +00:00
// Teams Launcher
"custom/teams": {
2023-08-30 12:45:03 +00:00
"format": "",
2023-08-31 07:05:39 +00:00
"on-click": "chromium --app=https://teams.microsoft.com/go",
2023-08-28 12:42:41 +00:00
"tooltip": false
2023-08-28 11:58:46 +00:00
},
2023-08-28 12:42:41 +00:00
2023-08-28 11:58:46 +00:00
// Brave Launcher
"custom/brave": {
"format": "",
2023-08-28 12:42:41 +00:00
"on-click": "brave",
"tooltip": false
2023-08-28 11:58:46 +00:00
},
2023-08-28 12:42:41 +00:00
2023-08-28 11:58:46 +00:00
// ChatGPT Launcher
"custom/chatgpt": {
2023-09-14 12:34:08 +00:00
"format": "",
2023-08-28 12:42:41 +00:00
"on-click": "brave --app=https://chat.openai.com",
"tooltip": false
2023-08-28 11:58:46 +00:00
},
2023-08-28 12:42:41 +00:00
2023-08-28 11:58:46 +00:00
// Rofi Calculator
"custom/calculator": {
"format": "",
2023-08-28 12:42:41 +00:00
"on-click": "~/dotfiles/scripts/calculator.sh",
"tooltip": false
2023-08-28 11:58:46 +00:00
},
2023-08-28 12:42:41 +00:00
2023-09-14 12:34:08 +00:00
// Windows VM
"custom/windowsvm": {
2023-08-28 11:58:46 +00:00
"format": "",
2023-09-14 12:34:08 +00:00
"on-click": "~/private/launchvm.sh",
2023-08-28 12:42:41 +00:00
"tooltip": false
2023-08-28 11:58:46 +00:00
},
2023-08-28 12:42:41 +00:00
2023-08-28 11:58:46 +00:00
// Rofi Application Launcher
"custom/appmenu": {
2023-08-30 12:45:03 +00:00
"format": "Apps",
2023-08-28 12:42:41 +00:00
"on-click": "~/dotfiles/scripts/applauncher.sh",
"tooltip": false
2023-08-28 11:58:46 +00:00
},
2023-08-28 12:42:41 +00:00
2023-09-01 06:38:15 +00:00
// Power Menu
2023-08-28 11:58:46 +00:00
"custom/exit": {
"format": "",
2023-08-31 19:45:49 +00:00
"on-click": "wlogout",
2023-08-28 12:42:41 +00:00
"tooltip": false
2023-08-28 11:58:46 +00:00
},
2023-08-28 12:42:41 +00:00
2023-08-28 11:58:46 +00:00
// Keyboard State
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
2023-08-28 12:42:41 +00:00
2023-08-28 11:58:46 +00:00
// System tray
"tray": {
// "icon-size": 21,
"spacing": 10
},
2023-08-28 12:42:41 +00:00
2023-08-28 11:58:46 +00:00
// Clock
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
},
2023-08-28 12:42:41 +00:00
2023-08-28 11:58:46 +00:00
// CPU
"cpu": {
2023-09-01 06:38:15 +00:00
"format": "/ C {usage}% "
2023-08-28 11:58:46 +00:00
},
2023-08-28 12:42:41 +00:00
2023-08-28 11:58:46 +00:00
// Memory
"memory": {
2023-08-31 09:43:42 +00:00
"format": "/ M {}% "
2023-08-28 11:58:46 +00:00
},
2023-08-28 12:42:41 +00:00
2023-08-28 11:58:46 +00:00
// Harddisc space used
"disk": {
"interval": 30,
2023-08-30 12:45:03 +00:00
"format": " {percentage_used}% ",
2023-08-28 11:58:46 +00:00
"path": "/"
},
2023-09-01 06:38:15 +00:00
// Network
"network": {
"format": "{ifname}",
2023-09-01 07:08:39 +00:00
"format-wifi": " {signalStrength}%",
"format-ethernet": " {ipaddr}",
2023-09-01 06:38:15 +00:00
"format-disconnected": "", //An empty format will hide the module.
"tooltip-format": " {ifname} via {gwaddri}",
2023-09-01 06:59:52 +00:00
"tooltip-format-wifi": " {essid} ({signalStrength}%)",
2023-09-01 07:08:39 +00:00
"tooltip-format-ethernet": " {ifname} ({ipaddr}/{cidr})",
2023-09-01 06:38:15 +00:00
"tooltip-format-disconnected": "Disconnected",
"max-length": 50
},
2023-08-28 12:42:41 +00:00
2023-08-28 11:58:46 +00:00
// Battery
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
2023-08-31 19:45:49 +00:00
"format": "{icon} {capacity}%",
2023-08-31 12:27:16 +00:00
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
2023-08-31 19:45:49 +00:00
"format-alt": "{icon} {time}",
2023-08-28 11:58:46 +00:00
// "format-good": "", // An empty format will hide the module
// "format-full": "",
2023-08-31 12:32:36 +00:00
"format-icons": [" ", " ", " ", " ", " "]
2023-08-28 11:58:46 +00:00
},
2023-08-28 12:42:41 +00:00
2023-08-28 11:58:46 +00:00
// Pulseaudio
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{icon} {volume}%",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", " ", " "]
},
"on-click": "pavucontrol"
2023-08-28 12:42:41 +00:00
},
2023-08-31 14:00:02 +00:00
// Bluetooth
"bluetooth": {
"format-disabled": "",
"format-off": "",
"interval": 30,
"on-click": "blueman-manager"
},
// Other
2023-08-28 12:42:41 +00:00
"user": {
"format": "{user}",
"interval": 60,
"icon": false,
2023-08-28 11:58:46 +00:00
}
}