waybar module cleanup

This commit is contained in:
JaKooLit 2023-10-19 21:55:01 +09:00
parent 45b4393ea6
commit ca3e1f2825

View File

@ -1,375 +1,348 @@
{ {
"backlight": { "backlight": {
"interval": 2, "interval": 2,
"align": 0, "align": 0,
"rotate": 0, "rotate": 0,
"format": "{icon} {percent}%", "format": "{icon} {percent}%",
"format-icons": ["󰃞", "󰃟", "󰃠"], "format-icons": ["󰃞", "󰃟", "󰃠"],
"icon-size": 10, "icon-size": 10,
"on-click": "", "on-click": "",
"on-click-middle": "", "on-click-middle": "",
"on-click-right": "", "on-click-right": "",
"on-update": "", "on-update": "",
"on-scroll-up": "~/.config/hypr/scripts/Brightness.sh --inc", "on-scroll-up": "~/.config/hypr/scripts/Brightness.sh --inc",
"on-scroll-down": "~/.config/hypr/scripts/Brightness.sh --dec", "on-scroll-down": "~/.config/hypr/scripts/Brightness.sh --dec",
"smooth-scrolling-threshold": 1, "smooth-scrolling-threshold": 1,
}, },
"battery": { "battery": {
"interval": 60, "interval": 60,
"align": 0, "align": 0,
"rotate": 0, "rotate": 0,
//"bat": "BAT1", //"bat": "BAT1",
//"adapter": "ACAD", //"adapter": "ACAD",
"full-at": 100, "full-at": 100,
"design-capacity": false, "design-capacity": false,
"states": { "states": {
"good": 95, "good": 95,
"warning": 30, "warning": 30,
"critical": 15 "critical": 15
}, },
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-charging": " {capacity}%", "format-charging": " {capacity}%",
"format-plugged": " {capacity}%", "format-plugged": " {capacity}%",
"format-full": "{icon} Full", "format-full": "{icon} Full",
"format-alt": "{icon} {time}", "format-alt": "{icon} {time}",
"format-icons": ["", "", "", "", ""], "format-icons": ["", "", "", "", ""],
"format-time": "{H}h {M}min", "format-time": "{H}h {M}min",
"tooltip": true, "tooltip": true,
"tooltip-format": "{timeTo} {power}w", "tooltip-format": "{timeTo} {power}w",
"on-click-right": "$HOME/.config/hypr/scripts/WofiPower.sh", "on-click-middle": "~/.config/hypr/scripts/ChangeBlur.sh",
}, "on-click-right": "$HOME/.config/hypr/scripts/WofiPower.sh",
},
"bluetooth": { "bluetooth": {
"format": "", "format": "",
"format-disabled": "", // an empty format will hide the module "format-disabled": "", // an empty format will hide the module
"format-connected": " {num_connections}", "format-connected": " {num_connections}",
"tooltip-format": " {device_alias}", "tooltip-format": " {device_alias}",
"tooltip-format-connected": "{device_enumerate}", "tooltip-format-connected": "{device_enumerate}",
"tooltip-format-enumerate-connected": " {device_alias}" "tooltip-format-enumerate-connected": " {device_alias}"
}, },
"cava": { "cava": {
//"cava_config": "$XDG_CONFIG_HOME/cava/cava.conf", //"cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
"framerate": 30, "framerate": 30,
"autosens": 1, "autosens": 1,
"sensitivity": 100, "sensitivity": 100,
"bars": 14, "bars": 14,
"lower_cutoff_freq": 50, "lower_cutoff_freq": 50,
"higher_cutoff_freq": 10000, "higher_cutoff_freq": 10000,
"method": "pipewire", "method": "pulse",
"source": "auto", "source": "auto",
"stereo": true, "stereo": true,
"reverse": false, "reverse": false,
"bar_delimiter": 0, "bar_delimiter": 0,
"monstercat": false, "monstercat": false,
"waves": false, "waves": false,
"noise_reduction": 0.77, "noise_reduction": 0.77,
"input_delay": 2, "input_delay": 2,
"format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ], "format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ],
"actions": { "actions": {
"on-click-right": "mode" "on-click-right": "mode"
} }
}, },
"clock": { "clock": {
//"format": "{:%I:%M %p}", //"format": " {:%I:%M %p}",
"format": " {:%H:%M}", "format": " {:%H:%M}",
"format-alt": " {:%H:%M  %Y, %d %B, %A}", "format-alt": " {:%H:%M  %Y, %d %B, %A}",
"tooltip-format": "<tt><small>{calendar}</small></tt>", "tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": { "calendar": {
"mode" : "year", "mode" : "year",
"mode-mon-col" : 3, "mode-mon-col" : 3,
"weeks-pos" : "right", "weeks-pos" : "right",
"on-scroll" : 1, "on-scroll" : 1,
"on-click-right": "mode", "format": {
"format": { "months": "<span color='#ffead3'><b>{}</b></span>",
"months": "<span color='#ffead3'><b>{}</b></span>", "days": "<span color='#ecc6d9'><b>{}</b></span>",
"days": "<span color='#ecc6d9'><b>{}</b></span>", "weeks": "<span color='#99ffdd'><b>W{}</b></span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>", "weekdays": "<span color='#ffcc66'><b>{}</b></span>",
"weekdays": "<span color='#ffcc66'><b>{}</b></span>", "today": "<span color='#ff6699'><b><u>{}</u></b></span>"
"today": "<span color='#ff6699'><b><u>{}</u></b></span>" }
} }
} },
}, "actions": {
"actions": { "on-click-right": "mode",
"on-click-right": "mode", "on-click-forward": "tz_up",
"on-click-forward": "tz_up", "on-click-backward": "tz_down",
"on-click-backward": "tz_down", "on-scroll-up": "shift_up",
"on-scroll-up": "shift_up", "on-scroll-down": "shift_down"
"on-scroll-down": "shift_down" },
},
"cpu": { "cpu": {
"format": "{usage}% 󰍛", "format": "{usage}% 󰍛",
"interval": 1, "interval": 1,
"format-alt-click": "click", "format-alt-click": "click",
"format-alt": "{icon0}{icon1}{icon2}{icon3} {usage:>2}% 󰍛", "format-alt": "{icon0}{icon1}{icon2}{icon3} {usage:>2}% 󰍛",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"], "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
"on-click-right": "gnome-system-monitor", "on-click-right": "gnome-system-monitor",
}, },
"disk": { "disk": {
"interval": 30, "interval": 30,
//"format": "󰋊", //"format": "󰋊",
"path": "/", "path": "/",
//"format-alt-click": "click", //"format-alt-click": "click",
"format": "{percentage_used}% 󰋊", "format": "{percentage_used}% 󰋊",
//"tooltip": true, //"tooltip": true,
"tooltip-format": "{used} used out of {total} on {path} ({percentage_used}%)", "tooltip-format": "{used} used out of {total} on {path} ({percentage_used}%)",
}, },
"hyprland/language": { "hyprland/language": {
"format": "Lang: {}", "format": "Lang: {}",
"format-en": "US", "format-en": "US",
"format-tr": "Korea", "format-tr": "Korea",
"keyboard-name": "at-translated-set-2-keyboard", "keyboard-name": "at-translated-set-2-keyboard",
"on-click": "hyprctl switchxkblayout $SET_KB next" "on-click": "hyprctl switchxkblayout $SET_KB next"
}, },
"hyprland/submap": { "hyprland/submap": {
"format": "<span style=\"italic\"> {}</span>", // Icon: expand-arrows-alt "format": "<span style=\"italic\"> {}</span>", // Icon: expand-arrows-alt
"tooltip": false, "tooltip": false,
}, },
"hyprland/window": { "hyprland/window": {
"format": "{}", "format": "{}",
"max-length": 360, "max-length": 360,
"separate-outputs": true, "separate-outputs": true,
}, },
"hyprland/workspaces": { "hyprland/workspaces": {
"format": "{name}", "format": "{name}",
//"format": "{name}: {icon}", //"format": "{name}: {icon}",
//"format": "{icon}", //"format": "{icon}",
"show-special": false, "show-special": false,
"on-click": "activate", "on-click": "activate",
"all-outputs": true, "all-outputs": true,
"sort-by-number": true, "sort-by-number": true,
"format-icons": { "format-icons": {
"1": "main  ", "1": "main  ",
"2": "2  ", "2": "2  ",
"3": "3  ", "3": "3  ",
"4": "4  ", "4": "4  ",
"5": "5  ", "5": "5  ",
"6": "6  ", "6": "6  ",
"7": "7  ", "7": "7  ",
"8": "8  ", "8": "8  ",
"9": "9  ", "9": "9  ",
"10": " 10 ", "10": " 10 ",
"focused": "", "focused": "",
"default": "", "default": "",
},
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
}, },
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
},
"idle_inhibitor": { "idle_inhibitor": {
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
"activated": " ", "activated": " ",
"deactivated": " ", "deactivated": " ",
} }
}, },
"keyboard-state": { "keyboard-state": {
//"numlock": true, //"numlock": true,
"capslock": true, "capslock": true,
"format": { "format": {
"numlock": "N {icon}", "numlock": "N {icon}",
"capslock": "󰪛 {icon}" "capslock": "󰪛 {icon}"
}, },
"format-icons": { "format-icons": {
"locked": "", "locked": "",
"unlocked": "" "unlocked": ""
} }
}, },
"memory": { "memory": {
"interval": 10, "interval": 10,
"format": "{used:0.1f}G 󰾆", "format": "{used:0.1f}G 󰾆",
"format-alt": "{percentage}% 󰾆", "format-alt": "{percentage}% 󰾆",
"format-alt-click": "click", "format-alt-click": "click",
"tooltip": true, "tooltip": true,
"tooltip-format": "{used:0.1f}GB/{total:0.1f}G", "tooltip-format": "{used:0.1f}GB/{total:0.1f}G",
"on-click-right": "foot --title btop sh -c 'btop'" "on-click-right": "foot --title btop sh -c 'btop'"
}, },
"network": { "network": {
"format": "{ifname}", "format": "{ifname}",
"format-wifi": "{essid}  ", "format-wifi": "{essid}  ",
"format-ethernet": "󰈁 Wired", "format-ethernet": "󰈁 Wired",
"format-disconnected": "", //An empty format will hide the module. "format-disconnected": "", //An empty format will hide the module.
"tooltip-format": "{ipaddr}  {bandwidthUpBytes}  {bandwidthDownBytes}", "tooltip-format": "{ipaddr}  {bandwidthUpBytes}  {bandwidthDownBytes}",
"format-linked": "󰈁 {ifname} (No IP)", "format-linked": "󰈁 {ifname} (No IP)",
"tooltip-format-wifi": "{essid} ({signalStrength}%) ", "tooltip-format-wifi": "{essid} ({signalStrength}%) ",
"tooltip-format-ethernet": "{ifname} 󰈁", "tooltip-format-ethernet": "{ifname} 󰈁",
"tooltip-format-disconnected": "󰈂 Disconnected", "tooltip-format-disconnected": "󰈂 Disconnected",
"max-length": 50, "max-length": 50,
}, },
"pulseaudio": { "pulseaudio": {
"format": "{icon} {volume} %", "format": "{icon} {volume} %",
"format-bluetooth": "{icon}  {volume} %", "format-bluetooth": "{icon}  {volume} %",
"format-muted": "", "format-muted": "",
"format-icons": { "format-icons": {
"headphone": "", "headphone": "",
"hands-free": "", "hands-free": "",
"headset": "", "headset": "",
"phone": "", "phone": "",
"portable": "", "portable": "",
"car": "", "car": "",
"default": ["", "", "󰕾", ""], "default": ["", "", "󰕾", ""],
"ignored-sinks": ["Easy Effects Sink"], "ignored-sinks": ["Easy Effects Sink"],
},
"scroll-step": 5.0,
"on-click": "~/.config/hypr/scripts/Volume.sh --toggle",
"on-click-right": "pavucontrol -t 3",
"on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc",
"on-scroll-down": "~/.config/hypr/scripts/Volume.sh --dec",
"smooth-scrolling-threshold": 1,
}, },
"scroll-step": 5.0,
"on-click": "~/.config/hypr/scripts/Volume.sh --toggle",
"on-click-right": "pavucontrol -t 3",
"on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc",
"on-scroll-down": "~/.config/hypr/scripts/Volume.sh --dec",
"smooth-scrolling-threshold": 1,
},
"pulseaudio#microphone": { "pulseaudio#microphone": {
"format": "{format_source}", "format": "{format_source}",
"format-source": " {volume} %", "format-source": " {volume} %",
"format-source-muted": "", "format-source-muted": "",
"on-click": "~/.config/hypr/scripts/Volume.sh --toggle-mic", "on-click": "~/.config/hypr/scripts/Volume.sh --toggle-mic",
"on-click-right": "pavucontrol -t 4", "on-click-right": "pavucontrol -t 4",
"on-scroll-up": "~/.config/hypr/scripts/Volume.sh --mic-inc", "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --mic-inc",
"on-scroll-down": "~/.config/hypr/scripts/Volume.sh --mic-dec", "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --mic-dec",
"scroll-step": 5, "scroll-step": 5,
}, },
"temperature": { "temperature": {
"interval": 10, "interval": 10,
"tooltip": false, "tooltip": false,
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input", "hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
//"thermal-zone": 0, //"thermal-zone": 0,
"critical-threshold": 82, "critical-threshold": 82,
"format-critical": "{temperatureC}°C {icon}", "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}", "format": "{temperatureC}°C {icon}",
"format-icons": [""], "format-icons": [""],
"on-click-right": "foot --title nvtop sh -c 'nvtop'" "on-click-right": "foot --title nvtop sh -c 'nvtop'"
}, },
"tray": { "tray": {
"icon-size": 17, "icon-size": 17,
"spacing": 8, "spacing": 8,
}, },
"wireplumber": { "wireplumber": {
"format": "{icon} {volume} %", "format": "{icon} {volume} %",
"format-muted": " Mute", "format-muted": " Mute",
"on-click": "~/.config/hypr/scripts/Volume.sh --toggle", "on-click": "~/.config/hypr/scripts/Volume.sh --toggle",
"on-click-right": "pavucontrol -t 3", "on-click-right": "pavucontrol -t 3",
"on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc", "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc",
"on-scroll-down": "~/.config/hypr/scripts/Volume.sh --dec", "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --dec",
"format-icons": ["", "", "󰕾", ""], "format-icons": ["", "", "󰕾", ""],
}, },
"wlr/taskbar": { "wlr/taskbar": {
"format": "{icon} {name} ", "format": "{icon} {name} ",
"icon-size": 16, "icon-size": 16,
"all-outputs": false, "all-outputs": false,
"tooltip-format": "{title}", "tooltip-format": "{title}",
"on-click": "activate", "on-click": "activate",
"on-click-middle": "close", "on-click-middle": "close",
"ignore-list": [ "ignore-list": [
"wofi" "wofi"
] ]
}, },
"custom/cycle_wall":{
"format":" ",
"on-click": "~/.config/hypr/scripts/WallpaperSelect.sh",
"on-click-right": "~/.config/hypr/scripts/Wallpaper.sh swww",
"on-click-middle": "~/.config/hypr/scripts/WaybarStyles.sh",
"tooltip": true,
"tooltip-format": "Change wallpaper or style"
},
"custom/keybindings": {
"format":"",
"tooltip": false,
"on-click": "~/.config/hypr/scripts/Help.sh",
},
"wlr/workspaces": { "custom/light_dark": {
"format": "{name}", "format": "",
//"format": "{name}: {icon}", "on-click": "~/.config/hypr/scripts/DarkLight.sh",
//"format": "{icon}", "tooltip": false,
"on-click": "activate", },
"all-outputs": false,
"sort-by-number": true,
"format-icons": {
"1": "main  ",
"2": "2  ",
"3": "3  ",
"4": "4  ",
"5": "5  ",
"6": "6  ",
"7": "7  ",
"8": "8  ",
"9": "9  ",
"10": " 10 ",
"focused": "",
"default": "",
},
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
},
"custom/cycle_wall":{ "custom/lock": {
"format":" ", "format": "",
"on-click": "~/.config/hypr/scripts/WallpaperSelect.sh", "on-click": "~/.config/hypr/scripts/LockScreen.sh",
"on-click-right": "~/.config/hypr/scripts/Wallpaper.sh swww", "tooltip": false,
"on-click-middle": "~/.config/hypr/scripts/WaybarStyles.sh", },
"tooltip": true,
"tooltip-format": "Change wallpaper or style" "custom/menu": {
}, "format": "",
"tooltip": false,
"on-click": "$HOME/.config/hypr/scripts/Wofi.sh",
"on-click-right": "$HOME/.config/hypr/scripts/ChangeLayoutMenu.sh",
"on-click-middle": "~/.config/hypr/scripts/Wallpaper.sh swaybg",
},
"custom/keybindings": { "custom/power": {
"format":"", "format": "  ",
"tooltip": false, "tooltip": false,
"on-click": "~/.config/hypr/scripts/Help.sh", //"on-click": "sh -c '(sleep 0.5s; wlogout --protocol layer-shell)' & disown",
}, "on-click": "$HOME/.config/hypr/scripts/WofiPower.sh",
"on-click-right": "~/.config/hypr/scripts/ChangeBlur.sh",
},
"custom/light_dark": { "custom/updater":{
"format": "", "format": " {}",
"on-click": "~/.config/hypr/scripts/DarkLight.sh", "exec": "checkupdates | wc -l",
"on-click-middle": "~/.config/hypr/scripts/ChangeBlur.sh", "exec-if": "[[ $(checkupdates | wc -l) ]]",
"tooltip": false, "interval": 15,
}, "on-click": "foot -T update paru -Syu || yay -Syu && notify-send 'The system has been updated'",
"on-click-right": "~/.config/hypr/scripts/WallpaperSwitch.sh",
"custom/lock": { },
"format": "",
"on-click": "~/.config/hypr/scripts/LockScreen.sh",
"tooltip": false,
},
"custom/menu": { "custom/weather": {
"format": "", "format": "{}",
"tooltip": false, "format-alt": "{alt}: {}",
"on-click": "$HOME/.config/hypr/scripts/Wofi.sh", "format-alt-click": "click",
"on-click-right": "$HOME/.config/hypr/scripts/ChangeLayoutMenu.sh", "interval": 3600,
"on-click-middle": "~/.config/hypr/scripts/Wallpaper.sh swaybg", "return-type": "json",
"exec": "~/.config/hypr/scripts/Weather.sh",
}, //"exec": "~/.config/hypr/scripts/Weather.py",
"exec-if": "ping wttr.in -c1",
"custom/power": { "tooltip" : true,
"format": "  ", },
"tooltip": false,
//"on-click": "sh -c '(sleep 0.5s; wlogout --protocol layer-shell)' & disown",
"on-click": "$HOME/.config/hypr/scripts/WofiPower.sh",
"on-click-right": "~/.config/hypr/scripts/ChangeBlur.sh",
},
"custom/updater":{
"format": " {}",
"exec": "checkupdates | wc -l",
"exec-if": "[[ $(checkupdates | wc -l) ]]",
"interval": 15,
"on-click": "foot -T update paru -Syu || yay -Syu && notify-send 'The system has been updated'",
"on-click-right": "~/.config/hypr/scripts/WallpaperSwitch.sh",
},
"custom/weather": {
"format": "{}",
"format-alt": "{alt}: {}",
"format-alt-click": "click",
"interval": 3600,
"return-type": "json",
"exec": "~/.config/hypr/scripts/Weather.sh",
//"exec": "~/.config/hypr/scripts/Weather.py",
"exec-if": "ping wttr.in -c1",
"tooltip" : true,
},
} }