Hyprland-dotfiles/waybar/modules.json

387 lines
9.9 KiB
JSON
Raw Permalink 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": {
2024-03-26 06:36:33 -04:00
"*": 5
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": [
2024-05-23 03:18:10 -04:00
"Alacritty",
"alacritty-dropterm"
2023-08-31 03:05:39 -04:00
],
"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
},
2024-01-21 04:16:19 -05:00
// ML4W Welcome App
"custom/ml4w-welcome": {
2024-05-01 10:08:42 -04:00
"on-click": "sleep 0.1 && ~/dotfiles/eww/ml4w-sidebar/launch.sh",
"on-click-right": "sleep 0.1 && ~/dotfiles/apps/ML4W_Welcome-x86_64.AppImage",
2024-01-21 04:16:19 -05:00
"format": " ",
"tooltip": false
},
2024-04-11 15:08:12 -04:00
// ML4W Welcome App
"custom/ml4w-hyprland-settings": {
"on-click": "~/dotfiles/apps/ML4W_Hyprland_Settings-x86_64.AppImage",
"format": " ",
"tooltip": false
},
2024-03-07 09:51:34 -05:00
// Empty
"custom/empty": {
"format": ""
},
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": {
2024-04-29 12:48:44 -04:00
"format": " {}",
"tooltip-format": "{}",
"escape": true,
"return-type": "json",
2023-08-31 05:43:42 -04:00
"exec": "~/dotfiles/scripts/updates.sh",
"restart-interval": 60,
2024-02-28 02:36:09 -05:00
"on-click": "alacritty --class dotfiles-floating -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": "",
2024-03-07 09:51:34 -05:00
"on-click": "~/dotfiles/apps/ML4W_Dotfiles_Settings-x86_64.AppImage",
"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": {
2024-01-29 07:21:11 -05:00
"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-11-10 16:12:15 -05:00
// Browser Launcher
"custom/browser": {
2024-01-29 07:21:11 -05:00
"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": {
2024-01-29 07:21:11 -05: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
2024-03-20 06:24:31 -04:00
"on-click": "sleep 0.2;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
},
2024-01-24 09:28:16 -05:00
// Rofi Application Launcher
"custom/appmenuicon": {
2024-02-16 02:02:26 -05:00
"format": "",
2024-01-24 09:28:16 -05:00
"on-click": "rofi -show drun -replace",
"on-click-right": "~/dotfiles/hypr/scripts/keybindings.sh",
"tooltip": false
},
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": {
2023-12-26 04:56:06 -05:00
"icon-size": 21,
2023-08-28 07:58:46 -04:00
"spacing": 10
},
2023-08-28 08:42:41 -04:00
2023-08-28 07:58:46 -04:00
// Clock
"clock": {
2024-03-07 09:51:34 -05:00
"format": "{:%H:%M %a}",
2023-08-28 07:58:46 -04:00
// "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
2024-04-15 09:49:05 -04:00
"group/links": {
2024-01-29 07:21:11 -05:00
"orientation": "horizontal",
"modules": [
2024-01-29 07:21:11 -05:00
"custom/chatgpt",
2024-04-20 11:57:31 -04:00
"custom/empty"
2024-04-15 09:49:05 -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",
2024-04-20 11:57:31 -04:00
"custom/wallpaper",
2024-04-15 09:49:05 -04:00
"custom/ml4w-hyprland-settings"
]
},
// Group Quicklinks
"group/quicklinks": {
"orientation": "horizontal",
"modules": [
2024-01-29 07:21:11 -05:00
"custom/browser",
"custom/filemanager",
]
},
2023-09-01 02:38:15 -04:00
// Network
"network": {
"format": "{ifname}",
2023-09-01 03:08:39 -04:00
"format-wifi": " {signalStrength}%",
2024-01-01 05:40:15 -05:00
"format-ethernet": " {ifname}",
"format-disconnected": "Disconnected",
2023-09-01 02:38:15 -04:00
"tooltip-format": " {ifname} via {gwaddri}",
2024-01-01 05:40:15 -05:00
"tooltip-format-wifi": " {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\nUp: {bandwidthUpBits} Down: {bandwidthDownBits}",
"tooltip-format-ethernet": " {ifname}\nIP: {ipaddr}\n up: {bandwidthUpBits} down: {bandwidthDownBits}",
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
2024-04-29 12:48:44 -04:00
"format": "{icon} {volume}%",
"format-bluetooth": "{volume}% {icon} {format_source}",
2023-08-28 07:58:46 -04:00
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
2024-03-27 11:15:27 -04:00
"headphone": " ",
"hands-free": " ",
"headset": " ",
"phone": " ",
"portable": " ",
"car": " ",
"default": [" ", " ", " "]
2023-08-28 07:58:46 -04:00
},
"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",
"format-no-controller": ""
2023-08-31 10:00:02 -04:00
},
// Other
2023-08-28 08:42:41 -04:00
"user": {
"format": "{user}",
"interval": 60,
"icon": false,
2023-12-14 12:24:40 -05:00
},
2024-01-22 11:10:16 -05:00
// Idle Inhibator
2023-12-14 12:24:40 -05:00
"idle_inhibitor": {
"format": "{icon}",
2024-01-11 10:03:36 -05:00
"tooltip": true,
2023-12-14 12:24:40 -05:00
"format-icons":{
2024-01-11 10:03:36 -05:00
"activated": "",
"deactivated": ""
},
2024-02-23 07:47:01 -05:00
"on-click-right": "hyprlock"
2023-08-28 07:58:46 -04:00
}
}