hyprland-dotfiles/waybar/modules.json

360 lines
9.0 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,
2023-09-29 11:08:19 +00:00
"format": "{}",
2023-08-28 11:58:46 +00:00
"format-icons": {
2023-08-30 12:45:03 +00:00
"urgent": "",
"active": "",
2023-09-05 18:17:41 +00:00
"default": ""
},
2023-12-04 09:17:02 +00:00
"persistent-workspaces": {
2023-12-18 19:33:29 +00:00
// START WORKSPACES
"*": 5
// END WORKSPACES
2023-09-05 18:17:41 +00:00
}
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-11-17 12:48:02 +00:00
"on-click": "chromium https://studio.youtube.com",
2023-08-28 12:42:41 +00:00
"tooltip": false
2023-08-28 11:58:46 +00:00
},
2023-09-28 18:43:29 +00:00
// Cliphist
"custom/cliphist": {
2023-09-29 11:08:19 +00:00
"format": "",
2023-10-02 08:17:11 +00:00
"on-click": "sleep 0.1 && ~/dotfiles/scripts/cliphist.sh",
"on-click-right": "sleep 0.1 && ~/dotfiles/scripts/cliphist.sh d",
"on-click-middle": "sleep 0.1 && ~/dotfiles/scripts/cliphist.sh w",
2023-09-29 11:08:19 +00:00
"tooltip": false
2023-09-28 18:43:29 +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-12-06 20:00:34 +00:00
"on-click-right": "~/dotfiles/.settings/software.sh",
2023-08-31 09:43:42 +00:00
"tooltip": false
},
2023-10-02 08:17:11 +00:00
// Wallpaper
"custom/wallpaper": {
"format": "",
2023-11-10 21:12:15 +00:00
"on-click": "~/dotfiles/hypr/scripts/wallpaper.sh select",
"on-click-right": "~/dotfiles/hypr/scripts/wallpaper.sh",
2023-10-17 07:01:57 +00:00
"tooltip": false
},
// Waybar Themes
"custom/waybarthemes": {
2023-10-17 07:42:03 +00:00
"format": "",
2023-10-17 07:01:57 +00:00
"on-click": "~/dotfiles/waybar/themeswitcher.sh",
2023-10-02 08:17:11 +00:00
"tooltip": false
},
// Settings
"custom/settings": {
"format": "",
2023-12-18 19:33:29 +00:00
"on-click": "alacritty --class dotfiles-floating -e ~/dotfiles/hypr/start-settings.sh",
"tooltip": false
},
2023-08-31 09:43:42 +00:00
2023-11-10 21:12:15 +00:00
// Keybindings
"custom/keybindings": {
"format": "",
"on-click": "~/dotfiles/hypr/scripts/keybindings.sh",
"tooltip": false
},
2023-09-14 12:34:08 +00:00
// Filemanager Launcher
"custom/filemanager": {
"format": "",
2023-12-06 20:00:34 +00:00
"on-click": "~/dotfiles/.settings/filemanager.sh",
2023-09-14 12:34:08 +00:00
"tooltip": false
},
2023-08-28 11:58:46 +00:00
// Outlook Launcher
"custom/outlook": {
"format": "",
2023-11-17 12:48:02 +00:00
"on-click": "chromium --app=https://outlook.office.com/mail/",
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
// 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-11-10 21:12:15 +00:00
// Browser Launcher
"custom/browser": {
"format": "",
2023-12-06 20:00:34 +00:00
"on-click": "~/dotfiles/.settings/browser.sh",
2023-11-10 21:12:15 +00:00
"tooltip": false
},
2023-08-28 11:58:46 +00:00
// ChatGPT Launcher
"custom/chatgpt": {
2023-09-14 12:34:08 +00:00
"format": "",
2023-11-17 12:48:02 +00:00
"on-click": "chromium --app=https://chat.openai.com",
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-11-10 21:12:15 +00:00
// Calculator
2023-08-28 11:58:46 +00:00
"custom/calculator": {
"format": "",
2023-11-10 21:12:15 +00:00
"on-click": "qalculate-gtk",
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-09-14 12:34:08 +00:00
// Windows VM
"custom/windowsvm": {
2023-08-28 11:58:46 +00:00
"format": "",
2023-10-04 15:05:17 +00:00
"on-click": "~/dotfiles/scripts/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-12-18 19:33:29 +00:00
// START APPS LABEL
2023-08-30 12:45:03 +00:00
"format": "Apps",
2023-12-18 19:33:29 +00:00
// END APPS LABEL
2023-11-13 12:37:27 +00:00
"on-click": "rofi -show drun -replace",
2023-11-10 21:12:15 +00:00
"on-click-right": "~/dotfiles/hypr/scripts/keybindings.sh",
2023-08-28 12:42:41 +00:00
"tooltip": false
2023-08-28 11:58:46 +00:00
},
2023-11-10 21:12:15 +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": {
2023-12-26 09:56:06 +00:00
"icon-size": 21,
2023-08-28 11:58:46 +00:00
"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>",
2023-12-18 19:33:29 +00:00
// START CLOCK FORMAT
2023-08-28 11:58:46 +00:00
"format-alt": "{:%Y-%m-%d}"
2023-12-18 19:33:29 +00:00
// END CLOCK FORMAT
2023-08-28 11:58:46 +00:00
},
2023-08-28 12:42:41 +00:00
// System
"custom/system": {
"format": "",
"tooltip": false
},
2023-08-28 11:58:46 +00:00
// CPU
"cpu": {
2023-10-03 08:27:30 +00:00
"format": "/ C {usage}% ",
"on-click": "alacritty -e htop"
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-10-03 17:49:31 +00:00
"format": "/ M {}% ",
2023-10-03 08:27:30 +00:00
"on-click": "alacritty -e htop"
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,
"format": "D {percentage_used}% ",
2023-10-03 08:27:30 +00:00
"path": "/",
"on-click": "alacritty -e htop"
2023-08-28 11:58:46 +00:00
},
"hyprland/language": {
"format": "/ K {short}"
},
// Group Hardware
"group/hardware": {
"orientation": "inherit",
"drawer": {
"transition-duration": 300,
"children-class": "not-memory",
"transition-left-to-right": false
},
"modules": [
"custom/system",
"disk",
"cpu",
"memory",
"hyprland/language"
]
},
2023-09-01 06:38:15 +00:00
// Group Settings
"group/settings": {
"orientation": "inherit",
"drawer": {
"transition-duration": 300,
"children-class": "not-memory",
"transition-left-to-right": false
},
"modules": [
"custom/settings",
"custom/waybarthemes",
"custom/wallpaper"
]
},
// Group Quicklinks
"group/quicklinks": {
"orientation": "horizontal",
"modules": [
"custom/filemanager",
"custom/browser"
]
},
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-11-10 21:12:15 +00:00
"format-disconnected": "Not connected", //An empty format will hide the module.
2023-09-01 06:38:15 +00:00
"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",
2023-11-10 21:12:15 +00:00
"max-length": 50,
2023-12-14 18:43:32 +00:00
"on-click": "~/dotfiles/.settings/networkmanager.sh"
2023-09-01 06:38:15 +00:00
},
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": {
2023-12-14 18:53:18 +00:00
"format": " {status}",
2023-08-31 14:00:02 +00:00
"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-12-14 17:24:40 +00:00
},
"idle_inhibitor": {
"format": "{icon}",
"tooltip": false,
"format-icons":{
"activated": "Auto lock OFF",
"deactivated": "ON"
}
2023-08-28 11:58:46 +00:00
}
}