waybar module cleanup

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

View File

@ -1,6 +1,6 @@
{
"backlight": {
"backlight": {
"interval": 2,
"align": 0,
"rotate": 0,
@ -14,9 +14,9 @@
"on-scroll-up": "~/.config/hypr/scripts/Brightness.sh --inc",
"on-scroll-down": "~/.config/hypr/scripts/Brightness.sh --dec",
"smooth-scrolling-threshold": 1,
},
},
"battery": {
"battery": {
"interval": 60,
"align": 0,
"rotate": 0,
@ -38,19 +38,20 @@
"format-time": "{H}h {M}min",
"tooltip": true,
"tooltip-format": "{timeTo} {power}w",
"on-click-middle": "~/.config/hypr/scripts/ChangeBlur.sh",
"on-click-right": "$HOME/.config/hypr/scripts/WofiPower.sh",
},
},
"bluetooth": {
"bluetooth": {
"format": "",
"format-disabled": "", // an empty format will hide the module
"format-connected": " {num_connections}",
"tooltip-format": " {device_alias}",
"tooltip-format-connected": "{device_enumerate}",
"tooltip-format-enumerate-connected": " {device_alias}"
},
},
"cava": {
"cava": {
//"cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
"framerate": 30,
"autosens": 1,
@ -58,7 +59,7 @@
"bars": 14,
"lower_cutoff_freq": 50,
"higher_cutoff_freq": 10000,
"method": "pipewire",
"method": "pulse",
"source": "auto",
"stereo": true,
"reverse": false,
@ -71,10 +72,10 @@
"actions": {
"on-click-right": "mode"
}
},
},
"clock": {
//"format": "{:%I:%M %p}",
"clock": {
//"format": "{:%I:%M %p}",
"format": " {:%H:%M}",
"format-alt": " {:%H:%M  %Y, %d %B, %A}",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
@ -83,7 +84,6 @@
"mode-mon-col" : 3,
"weeks-pos" : "right",
"on-scroll" : 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#ffead3'><b>{}</b></span>",
"days": "<span color='#ecc6d9'><b>{}</b></span>",
@ -99,18 +99,18 @@
"on-click-backward": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
},
},
"cpu": {
"cpu": {
"format": "{usage}% 󰍛",
"interval": 1,
"format-alt-click": "click",
"format-alt": "{icon0}{icon1}{icon2}{icon3} {usage:>2}% 󰍛",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
"on-click-right": "gnome-system-monitor",
},
},
"disk": {
"disk": {
"interval": 30,
//"format": "󰋊",
"path": "/",
@ -118,28 +118,28 @@
"format": "{percentage_used}% 󰋊",
//"tooltip": true,
"tooltip-format": "{used} used out of {total} on {path} ({percentage_used}%)",
},
},
"hyprland/language": {
"hyprland/language": {
"format": "Lang: {}",
"format-en": "US",
"format-tr": "Korea",
"keyboard-name": "at-translated-set-2-keyboard",
"on-click": "hyprctl switchxkblayout $SET_KB next"
},
},
"hyprland/submap": {
"hyprland/submap": {
"format": "<span style=\"italic\"> {}</span>", // Icon: expand-arrows-alt
"tooltip": false,
},
},
"hyprland/window": {
"hyprland/window": {
"format": "{}",
"max-length": 360,
"separate-outputs": true,
},
},
"hyprland/workspaces": {
"hyprland/workspaces": {
"format": "{name}",
//"format": "{name}: {icon}",
//"format": "{icon}",
@ -163,17 +163,17 @@
},
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
},
},
"idle_inhibitor": {
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": " ",
"deactivated": " ",
}
},
},
"keyboard-state": {
"keyboard-state": {
//"numlock": true,
"capslock": true,
"format": {
@ -184,9 +184,9 @@
"locked": "",
"unlocked": ""
}
},
},
"memory": {
"memory": {
"interval": 10,
"format": "{used:0.1f}G 󰾆",
"format-alt": "{percentage}% 󰾆",
@ -194,9 +194,9 @@
"tooltip": true,
"tooltip-format": "{used:0.1f}GB/{total:0.1f}G",
"on-click-right": "foot --title btop sh -c 'btop'"
},
},
"network": {
"network": {
"format": "{ifname}",
"format-wifi": "{essid}  ",
"format-ethernet": "󰈁 Wired",
@ -207,9 +207,9 @@
"tooltip-format-ethernet": "{ifname} 󰈁",
"tooltip-format-disconnected": "󰈂 Disconnected",
"max-length": 50,
},
},
"pulseaudio": {
"pulseaudio": {
"format": "{icon} {volume} %",
"format-bluetooth": "{icon}  {volume} %",
"format-muted": "",
@ -229,9 +229,9 @@
"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-source": " {volume} %",
"format-source-muted": "",
@ -240,9 +240,9 @@
"on-scroll-up": "~/.config/hypr/scripts/Volume.sh --mic-inc",
"on-scroll-down": "~/.config/hypr/scripts/Volume.sh --mic-dec",
"scroll-step": 5,
},
},
"temperature": {
"temperature": {
"interval": 10,
"tooltip": false,
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
@ -252,14 +252,14 @@
"format": "{temperatureC}°C {icon}",
"format-icons": [""],
"on-click-right": "foot --title nvtop sh -c 'nvtop'"
},
},
"tray": {
"tray": {
"icon-size": 17,
"spacing": 8,
},
},
"wireplumber": {
"wireplumber": {
"format": "{icon} {volume} %",
"format-muted": " Mute",
"on-click": "~/.config/hypr/scripts/Volume.sh --toggle",
@ -267,9 +267,9 @@
"on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc",
"on-scroll-down": "~/.config/hypr/scripts/Volume.sh --dec",
"format-icons": ["", "", "󰕾", ""],
},
},
"wlr/taskbar": {
"wlr/taskbar": {
"format": "{icon} {name} ",
"icon-size": 16,
"all-outputs": false,
@ -279,88 +279,61 @@
"ignore-list": [
"wofi"
]
},
},
"wlr/workspaces": {
"format": "{name}",
//"format": "{name}: {icon}",
//"format": "{icon}",
"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/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": {
"custom/keybindings": {
"format":"",
"tooltip": false,
"on-click": "~/.config/hypr/scripts/Help.sh",
},
},
"custom/light_dark": {
"custom/light_dark": {
"format": "",
"on-click": "~/.config/hypr/scripts/DarkLight.sh",
"on-click-middle": "~/.config/hypr/scripts/ChangeBlur.sh",
"tooltip": false,
},
},
"custom/lock": {
"custom/lock": {
"format": "",
"on-click": "~/.config/hypr/scripts/LockScreen.sh",
"tooltip": false,
},
},
"custom/menu": {
"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/power": {
"custom/power": {
"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":{
"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": {
"custom/weather": {
"format": "{}",
"format-alt": "{alt}: {}",
"format-alt-click": "click",
@ -370,6 +343,6 @@
//"exec": "~/.config/hypr/scripts/Weather.py",
"exec-if": "ping wttr.in -c1",
"tooltip" : true,
},
},
}
}