Hyprland-dotfiles/waybar/modules.json

360 lines
9.0 KiB
JSON
Raw Normal View History

2023-08-28 07:58:46 -04:00
// __ __ _ _
// | \/ | ___ __| |_ _| | ___ ___
// | |\/| |/ _ \ / _` | | | | |/ _ \/ __|
// | | | | (_) | (_| | |_| | | __/\__ \
// |_| |_|\___/ \__,_|\__,_|_|\___||___/
//
//
// by Stephan Raabe (2023)
// -----------------------------------------------------
//
{
// Workspaces
2023-09-05 14:17:41 -04:00
"hyprland/workspaces" : {
2023-08-28 07:58:46 -04:00
"on-click": "activate",
"active-only": false,
"all-outputs": true,
2023-09-29 07:08:19 -04:00
"format": "{}",
2023-08-28 07:58:46 -04:00
"format-icons": {
2023-08-30 08:45:03 -04:00
"urgent": "",
"active": "",
2023-09-05 14:17:41 -04:00
"default": ""
},
2023-12-04 04:17:02 -05:00
"persistent-workspaces": {
2023-12-18 14:33:29 -05:00
// START WORKSPACES
"*": 5
// END WORKSPACES
2023-09-05 14:17:41 -04:00
}
2023-08-28 07:58:46 -04:00
},
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-11-17 07:48:02 -05:00
"on-click": "chromium https://studio.youtube.com",
2023-08-28 08:42:41 -04:00
"tooltip": false
2023-08-28 07:58:46 -04:00
},
2023-09-28 14:43:29 -04:00
// Cliphist
"custom/cliphist": {
2023-09-29 07:08:19 -04:00
"format": "",
2023-10-02 04:17:11 -04: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 07:08:19 -04:00
"tooltip": false
2023-09-28 14:43:29 -04:00
},
2023-08-28 08:42:41 -04:00
2023-08-31 05:43:42 -04:00
// Updates Count
"custom/updates": {
"format": " {}",
"tooltip-format": "{}",
"escape": true,
"return-type": "json",
2023-08-31 05:43:42 -04:00
"exec": "~/dotfiles/scripts/updates.sh",
"restart-interval": 60,
"on-click": "alacritty -e ~/dotfiles/scripts/installupdates.sh",
2023-12-06 15:00:34 -05:00
"on-click-right": "~/dotfiles/.settings/software.sh",
2023-08-31 05:43:42 -04:00
"tooltip": false
},
2023-10-02 04:17:11 -04:00
// Wallpaper
"custom/wallpaper": {
"format": "",
2023-11-10 16:12:15 -05:00
"on-click": "~/dotfiles/hypr/scripts/wallpaper.sh select",
"on-click-right": "~/dotfiles/hypr/scripts/wallpaper.sh",
2023-10-17 03:01:57 -04:00
"tooltip": false
},
// Waybar Themes
"custom/waybarthemes": {
2023-10-17 03:42:03 -04:00
"format": "",
2023-10-17 03:01:57 -04:00
"on-click": "~/dotfiles/waybar/themeswitcher.sh",
2023-10-02 04:17:11 -04:00
"tooltip": false
},
// Settings
"custom/settings": {
"format": "",
2023-12-18 14:33:29 -05:00
"on-click": "alacritty --class dotfiles-floating -e ~/dotfiles/hypr/start-settings.sh",
"tooltip": false
},
2023-08-31 05:43:42 -04:00
2023-11-10 16:12:15 -05:00
// Keybindings
"custom/keybindings": {
"format": "",
"on-click": "~/dotfiles/hypr/scripts/keybindings.sh",
"tooltip": false
},
2023-09-14 08:34:08 -04:00
// Filemanager Launcher
"custom/filemanager": {
"format": "",
2023-12-06 15:00:34 -05:00
"on-click": "~/dotfiles/.settings/filemanager.sh",
2023-09-14 08:34:08 -04:00
"tooltip": false
},
2023-08-28 07:58:46 -04:00
// Outlook Launcher
"custom/outlook": {
"format": "",
2023-11-17 07:48:02 -05:00
"on-click": "chromium --app=https://outlook.office.com/mail/",
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
// 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-11-10 16:12:15 -05:00
// Browser Launcher
"custom/browser": {
"format": "",
2023-12-06 15:00:34 -05:00
"on-click": "~/dotfiles/.settings/browser.sh",
2023-11-10 16:12:15 -05:00
"tooltip": false
},
2023-08-28 07:58:46 -04:00
// ChatGPT Launcher
"custom/chatgpt": {
2023-09-14 08:34:08 -04:00
"format": "",
2023-11-17 07:48:02 -05:00
"on-click": "chromium --app=https://chat.openai.com",
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-11-10 16:12:15 -05:00
// Calculator
2023-08-28 07:58:46 -04:00
"custom/calculator": {
"format": "",
2023-11-10 16:12:15 -05:00
"on-click": "qalculate-gtk",
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-09-14 08:34:08 -04:00
// Windows VM
"custom/windowsvm": {
2023-08-28 07:58:46 -04:00
"format": "",
2023-10-04 11:05:17 -04:00
"on-click": "~/dotfiles/scripts/launchvm.sh",
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
// Rofi Application Launcher
"custom/appmenu": {
2023-12-18 14:33:29 -05:00
// START APPS LABEL
2023-08-30 08:45:03 -04:00
"format": "Apps",
2023-12-18 14:33:29 -05:00
// END APPS LABEL
2023-11-13 07:37:27 -05:00
"on-click": "rofi -show drun -replace",
2023-11-10 16:12:15 -05:00
"on-click-right": "~/dotfiles/hypr/scripts/keybindings.sh",
2023-08-28 08:42:41 -04:00
"tooltip": false
2023-08-28 07:58:46 -04:00
},
2023-11-10 16:12:15 -05: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>",
2023-12-18 14:33:29 -05:00
// START CLOCK FORMAT
2023-08-28 07:58:46 -04:00
"format-alt": "{:%Y-%m-%d}"
2023-12-18 14:33:29 -05:00
// END CLOCK FORMAT
2023-08-28 07:58:46 -04:00
},
2023-08-28 08:42:41 -04:00
// System
"custom/system": {
"format": "",
"tooltip": false
},
2023-08-28 07:58:46 -04:00
// CPU
"cpu": {
2023-10-03 04:27:30 -04:00
"format": "/ C {usage}% ",
"on-click": "alacritty -e htop"
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-10-03 13:49:31 -04:00
"format": "/ M {}% ",
2023-10-03 04:27:30 -04:00
"on-click": "alacritty -e htop"
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,
"format": "D {percentage_used}% ",
2023-10-03 04:27:30 -04:00
"path": "/",
"on-click": "alacritty -e htop"
2023-08-28 07:58:46 -04: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 02:38:15 -04: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 02:38:15 -04:00
// Network
"network": {
"format": "{ifname}",
2023-09-01 03:08:39 -04:00
"format-wifi": " {signalStrength}%",
"format-ethernet": " {ipaddr}",
2023-11-10 16:12:15 -05:00
"format-disconnected": "Not connected", //An empty format will hide the module.
2023-09-01 02:38:15 -04:00
"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",
2023-11-10 16:12:15 -05:00
"max-length": 50,
2023-12-14 13:43:32 -05:00
"on-click": "~/dotfiles/.settings/networkmanager.sh"
2023-09-01 02:38:15 -04:00
},
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": {
2023-12-14 13:53:18 -05:00
"format": " {status}",
2023-08-31 10:00:02 -04:00
"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-12-14 12:24:40 -05:00
},
"idle_inhibitor": {
"format": "{icon}",
"tooltip": false,
"format-icons":{
"activated": "Auto lock OFF",
"deactivated": "ON"
}
2023-08-28 07:58:46 -04:00
}
}