Hyprland-dotfiles/waybar/modules.json

237 lines
5.8 KiB
JSON
Raw Normal View History

2023-08-28 07:58:46 -04:00
// __ __ _ _
// | \/ | ___ __| |_ _| | ___ ___
// | |\/| |/ _ \ / _` | | | | |/ _ \/ __|
// | | | | (_) | (_| | |_| | | __/\__ \
// |_| |_|\___/ \__,_|\__,_|_|\___||___/
//
//
// by Stephan Raabe (2023)
// -----------------------------------------------------
//
{
// Workspaces
"wlr/workspaces" : {
"on-click": "activate",
"active-only": false,
"all-outputs": true,
"format": "{icon}",
"format-icons": {
2023-08-30 08:45:03 -04:00
"urgent": "",
"active": "",
"default": "",
2023-08-28 07:58:46 -04:00
"sort-by-number": true
}
},
2023-08-28 08:42:41 -04:00
2023-08-31 03:05:39 -04:00
// Taskbar
"wlr/taskbar": {
"format": "{icon}",
2023-09-01 04:25:57 -04:00
"icon-size": 18,
2023-08-31 03:05:39 -04: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 08:10:16 -04:00
// Hyprland Window
"hyprland/window": {
"rewrite": {
"(.*) - Brave": "$1",
"(.*) - Chromium": "$1",
"(.*) - Brave Search": "$1",
"(.*) - Outlook": "$1",
"(.*) Microsoft Teams": "$1"
},
"separate-outputs": true
},
2023-08-28 07:58:46 -04:00
// Youtube Subscriber Count
"custom/youtube": {
2023-08-28 08:42:41 -04:00
"format": " {}",
2023-08-28 07:58:46 -04:00
"exec": "python ~/private/youtube.py",
2023-08-31 08:10:16 -04:00
"restart-interval": 600,
2023-08-28 08:42:41 -04:00
"on-click": "brave https://studio.youtube.com",
"tooltip": false
2023-08-28 07:58:46 -04:00
},
2023-08-28 08:42:41 -04:00
2023-08-31 05:43:42 -04:00
// Updates Count
"custom/updates": {
"format": " {}",
"exec": "~/dotfiles/scripts/updates.sh",
2023-08-31 08:10:16 -04:00
"restart-interval": 600,
2023-08-31 05:43:42 -04:00
"on-click": "alacritty -e yay",
"tooltip": false
},
2023-08-28 07:58:46 -04:00
// Outlook Launcher
"custom/outlook": {
"format": "",
2023-08-28 08:42:41 -04:00
"on-click": "brave --app=https://outlook.office.com/mail/",
"tooltip": false
2023-08-28 07:58:46 -04:00
},
2023-08-28 08:42:41 -04:00
2023-08-28 07:58:46 -04:00
// Teams Launcher
"custom/teams": {
2023-08-30 08:45:03 -04:00
"format": "",
2023-08-31 03:05:39 -04:00
"on-click": "chromium --app=https://teams.microsoft.com/go",
2023-08-28 08:42:41 -04:00
"tooltip": false
2023-08-28 07:58:46 -04:00
},
2023-08-28 08:42:41 -04:00
2023-08-28 07:58:46 -04:00
// Brave Launcher
"custom/brave": {
"format": "",
2023-08-28 08:42:41 -04:00
"on-click": "brave",
"tooltip": false
2023-08-28 07:58:46 -04:00
},
2023-08-28 08:42:41 -04:00
2023-08-28 07:58:46 -04:00
// ChatGPT Launcher
"custom/chatgpt": {
"format": "",
2023-08-28 08:42:41 -04:00
"on-click": "brave --app=https://chat.openai.com",
"tooltip": false
2023-08-28 07:58:46 -04:00
},
2023-08-28 08:42:41 -04:00
2023-08-28 07:58:46 -04:00
// Rofi Calculator
"custom/calculator": {
"format": "",
2023-08-28 08:42:41 -04:00
"on-click": "~/dotfiles/scripts/calculator.sh",
"tooltip": false
2023-08-28 07:58:46 -04:00
},
2023-08-28 08:42:41 -04:00
2023-08-28 07:58:46 -04:00
// Looking Glass Launcher
"custom/lookingglass": {
"format": "",
2023-08-28 08:42:41 -04:00
"on-click": "~/dotfiles/scripts/looking-glass.sh",
"tooltip": false
2023-08-28 07:58:46 -04:00
},
2023-08-28 08:42:41 -04:00
2023-08-28 07:58:46 -04:00
// Rofi Application Launcher
"custom/appmenu": {
2023-08-30 08:45:03 -04:00
"format": "Apps",
2023-08-28 08:42:41 -04:00
"on-click": "~/dotfiles/scripts/applauncher.sh",
"tooltip": false
2023-08-28 07:58:46 -04:00
},
2023-08-28 08:42:41 -04:00
2023-09-01 02:38:15 -04:00
// Power Menu
2023-08-28 07:58:46 -04:00
"custom/exit": {
"format": "",
2023-08-31 15:45:49 -04:00
"on-click": "wlogout",
2023-08-28 08:42:41 -04:00
"tooltip": false
2023-08-28 07:58:46 -04:00
},
2023-08-28 08:42:41 -04:00
2023-08-28 07:58:46 -04:00
// Keyboard State
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
2023-08-28 08:42:41 -04:00
2023-08-28 07:58:46 -04:00
// System tray
"tray": {
// "icon-size": 21,
"spacing": 10
},
2023-08-28 08:42:41 -04:00
2023-08-28 07:58:46 -04: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 08:42:41 -04:00
2023-08-28 07:58:46 -04:00
// CPU
"cpu": {
2023-09-01 02:38:15 -04:00
"format": "/ C {usage}% "
2023-08-28 07:58:46 -04:00
},
2023-08-28 08:42:41 -04:00
2023-08-28 07:58:46 -04:00
// Memory
"memory": {
2023-08-31 05:43:42 -04:00
"format": "/ M {}% "
2023-08-28 07:58:46 -04:00
},
2023-08-28 08:42:41 -04:00
2023-08-28 07:58:46 -04:00
// Harddisc space used
"disk": {
"interval": 30,
2023-08-30 08:45:03 -04:00
"format": " {percentage_used}% ",
2023-08-28 07:58:46 -04:00
"path": "/"
},
2023-09-01 02:38:15 -04:00
// Network
"network": {
"format": "{ifname}",
2023-09-01 03:08:39 -04:00
"format-wifi": " {signalStrength}%",
"format-ethernet": " {ipaddr}",
2023-09-01 02:38:15 -04:00
"format-disconnected": "", //An empty format will hide the module.
"tooltip-format": " {ifname} via {gwaddri}",
2023-09-01 02:59:52 -04:00
"tooltip-format-wifi": " {essid} ({signalStrength}%)",
2023-09-01 03:08:39 -04:00
"tooltip-format-ethernet": " {ifname} ({ipaddr}/{cidr})",
2023-09-01 02:38:15 -04:00
"tooltip-format-disconnected": "Disconnected",
"max-length": 50
},
2023-08-28 08:42:41 -04:00
2023-08-28 07:58:46 -04:00
// Battery
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
2023-08-31 15:45:49 -04:00
"format": "{icon} {capacity}%",
2023-08-31 08:27:16 -04:00
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
2023-08-31 15:45:49 -04:00
"format-alt": "{icon} {time}",
2023-08-28 07:58:46 -04:00
// "format-good": "", // An empty format will hide the module
// "format-full": "",
2023-08-31 08:32:36 -04:00
"format-icons": [" ", " ", " ", " ", " "]
2023-08-28 07:58:46 -04:00
},
2023-08-28 08:42:41 -04:00
2023-08-28 07:58:46 -04: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 08:42:41 -04:00
},
2023-08-31 10:00:02 -04:00
// Bluetooth
"bluetooth": {
"format-disabled": "",
"format-off": "",
"interval": 30,
"on-click": "blueman-manager"
},
// Other
2023-08-28 08:42:41 -04:00
"user": {
"format": "{user}",
"interval": 60,
"icon": false,
2023-08-28 07:58:46 -04:00
}
}