NixOS/home/modules/hyprland/waybar-modules.jsonc

309 lines
8 KiB
Plaintext
Raw Normal View History

2024-06-12 09:54:11 +07:00
{
// Taskbar
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 18,
"tooltip-format": "{title}",
"on-click": "activate",
"on-click-middle": "close",
"ignore-list": ["Alacritty"],
"app_ids-mapping": {
2024-10-16 11:46:19 +07:00
"firefoxdeveloperedition": "firefox-developer-edition",
2024-06-12 09:54:11 +07:00
},
"rewrite": {
"Firefox Web Browser": "Firefox",
2024-10-16 11:46:19 +07:00
"Foot Server": "Terminal",
},
2024-06-12 09:54:11 +07:00
},
// Hyprland Window
"hyprland/window": {
"rewrite": {
"(.*) - Brave": "$1",
"(.*) - Chromium": "$1",
"(.*) - Brave Search": "$1",
"(.*) - Outlook": "$1",
2024-10-16 11:46:19 +07:00
"(.*) Microsoft Teams": "$1",
2024-06-12 09:54:11 +07:00
},
2024-10-16 11:46:19 +07:00
"separate-outputs": true,
2024-06-12 09:54:11 +07:00
},
// ML4W Welcome App
"custom/ml4w-welcome": {
"on-click": "sleep 0.1 && ~/dotfiles/eww/ml4w-sidebar/launch.sh",
"on-click-right": "sleep 0.1 && ~/dotfiles/apps/ML4W_Welcome-x86_64.AppImage",
"format": " ",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// ML4W Welcome App
"custom/ml4w-hyprland-settings": {
"on-click": "~/dotfiles/apps/ML4W_Hyprland_Settings-x86_64.AppImage",
"format": " ",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Empty
"custom/empty": {
2024-10-16 11:46:19 +07:00
"format": "",
2024-06-12 09:54:11 +07:00
},
// Youtube Subscriber Count
"custom/youtube": {
"format": " {}",
"exec": "python ~/private/youtube.py",
"restart-interval": 600,
"on-click": "chromium https://studio.youtube.com",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Cliphist
"custom/cliphist": {
"format": "",
"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",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Updates Count
"custom/updates": {
"format": " {}",
"tooltip-format": "{}",
"escape": true,
"return-type": "json",
"exec": "~/dotfiles/scripts/updates.sh",
"restart-interval": 60,
"on-click": "alacritty --class dotfiles-floating -e ~/dotfiles/scripts/installupdates.sh",
"on-click-right": "~/dotfiles/.settings/software.sh",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Wallpaper
"custom/wallpaper": {
"format": "",
"on-click": "~/dotfiles/hypr/scripts/wallpaper.sh select",
"on-click-right": "~/dotfiles/hypr/scripts/wallpaper.sh",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Waybar Themes
"custom/waybarthemes": {
"format": "",
"on-click": "~/dotfiles/waybar/themeswitcher.sh",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Settings
"custom/settings": {
"format": "",
"on-click": "~/dotfiles/apps/ML4W_Dotfiles_Settings-x86_64.AppImage",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Keybindings
"custom/keybindings": {
"format": "",
"on-click": "~/dotfiles/hypr/scripts/keybindings.sh",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Filemanager Launcher
"custom/filemanager": {
"format": "",
"on-click": "thunar",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Browser Launcher
"custom/browser": {
"format": "",
"on-click": "microsoft-edge",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// ChatGPT Launcher
"custom/chatgpt": {
"format": "󰭹",
"on-click": "chromium --app=https://chat.openai.com",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Calculator
"custom/calculator": {
"format": "",
"on-click": "qalculate-gtk",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Windows VM
"custom/windowsvm": {
"format": "",
"on-click": "~/dotfiles/scripts/launchvm.sh",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Rofi Application Launcher
"custom/appmenu": {
// START APPS LABEL
"format": "Apps",
// END APPS LABEL
"on-click": "sleep 0.2;rofi -show drun -replace",
"on-click-right": "~/dotfiles/hypr/scripts/keybindings.sh",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Rofi Application Launcher
"custom/appmenuicon": {
"format": "",
"on-click": "rofi -show drun -replace",
"on-click-right": "~/dotfiles/hypr/scripts/keybindings.sh",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Power Menu
"custom/exit": {
"format": "",
"on-click": "wlogout",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// Keyboard State
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
2024-10-16 11:46:19 +07:00
"unlocked": "",
},
2024-06-12 09:54:11 +07:00
},
// System tray
"tray": {
"icon-size": 21,
2024-10-16 11:46:19 +07:00
"spacing": 10,
2024-06-12 09:54:11 +07:00
},
// Clock
"clock": {
"format": "{:%H:%M %a}",
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
// START CLOCK FORMAT
2024-10-16 11:46:19 +07:00
"format-alt": "{:%Y-%m-%d}",
2024-06-12 09:54:11 +07:00
// END CLOCK FORMAT
},
// System
"custom/system": {
"format": "",
2024-10-16 11:46:19 +07:00
"tooltip": false,
2024-06-12 09:54:11 +07:00
},
// CPU
"cpu": {
"format": "/ C {usage}% ",
2024-10-16 11:46:19 +07:00
"on-click": "kitty --override confirm_os_window_close=0 btop",
2024-06-12 09:54:11 +07:00
},
// Memory
"memory": {
"format": "/ M {}% ",
2024-10-16 11:46:19 +07:00
"on-click": "kitty --override confirm_os_window_close=0 btop",
2024-06-12 09:54:11 +07:00
},
// Harddisc space used
"disk": {
"interval": 30,
"format": "D {percentage_used}% ",
"path": "/",
2024-10-16 11:46:19 +07:00
"on-click": "kitty --override confirm_os_window_close=0 btop",
2024-06-12 09:54:11 +07:00
},
"hyprland/language": {
2024-10-16 11:46:19 +07:00
"format": "/ K {short}",
2024-06-12 09:54:11 +07:00
},
// Group Hardware
"group/hardware": {
"orientation": "inherit",
"drawer": {
"transition-duration": 300,
"children-class": "not-memory",
2024-10-16 11:46:19 +07:00
"transition-left-to-right": false,
2024-06-12 09:54:11 +07:00
},
2024-10-16 11:46:19 +07:00
"modules": ["custom/system", "disk", "cpu", "memory", "hyprland/language"],
2024-06-12 09:54:11 +07:00
},
// Group Settings
"group/links": {
"orientation": "horizontal",
2024-10-16 11:46:19 +07:00
"modules": ["custom/chatgpt", "custom/empty"],
2024-06-12 09:54:11 +07:00
},
// Group Settings
"group/settings": {
"orientation": "inherit",
"drawer": {
"transition-duration": 300,
"children-class": "not-memory",
2024-10-16 11:46:19 +07:00
"transition-left-to-right": false,
2024-06-12 09:54:11 +07:00
},
"modules": [
"custom/settings",
"custom/waybarthemes",
"custom/wallpaper",
2024-10-16 11:46:19 +07:00
"custom/ml4w-hyprland-settings",
],
2024-06-12 09:54:11 +07:00
},
// Group Quicklinks
"group/quicklinks": {
"orientation": "horizontal",
2024-10-16 11:46:19 +07:00
"modules": ["custom/browser", "custom/filemanager", "custom/chatgpt"],
2024-06-12 09:54:11 +07:00
},
// Network
"network": {
"format": "{ifname}",
"format-wifi": " {signalStrength}%",
"format-ethernet": " {ifname}",
"format-disconnected": "Disconnected",
"tooltip-format": " {ifname} via {gwaddri}",
"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}",
"tooltip-format-disconnected": "Disconnected",
"max-length": 50,
2024-10-16 11:46:19 +07:00
"on-click": "nm-connection-editor",
2024-06-12 09:54:11 +07:00
},
// Battery
"battery": {
"states": {
// "good": 95,
"warning": 30,
2024-10-16 11:46:19 +07:00
"critical": 15,
2024-06-12 09:54:11 +07:00
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{icon} {time}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
2024-10-16 11:46:19 +07:00
"format-icons": [" ", " ", " ", " ", " "],
2024-06-12 09:54:11 +07: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": " ",
2024-10-16 11:46:19 +07:00
"default": [" ", " ", " "],
2024-06-12 09:54:11 +07:00
},
2024-10-16 11:46:19 +07:00
"on-click": "pavucontrol",
2024-06-12 09:54:11 +07:00
},
// Bluetooth
"bluetooth": {
"format": " {status}",
"format-disabled": "",
"format-off": "",
"interval": 30,
"on-click": "blueman-manager",
2024-10-16 11:46:19 +07:00
"format-no-controller": "",
2024-06-12 09:54:11 +07:00
},
// Other
"user": {
"format": "{user}",
"interval": 60,
2024-10-16 11:46:19 +07:00
"icon": false,
2024-06-12 09:54:11 +07:00
},
// Idle Inhibator
"idle_inhibitor": {
"format": "{icon}",
"tooltip": true,
"format-icons": {
"activated": "",
2024-10-16 11:46:19 +07:00
"deactivated": "",
2024-06-12 09:54:11 +07:00
},
2024-10-16 11:46:19 +07:00
"on-click-right": "hyprlock",
},
2024-06-12 09:54:11 +07:00
}