Files
nix/modules/home/hyprland/conf/waybar/config.jsonc

228 lines
5.9 KiB
JSON

// --// waybar config generated by wbarconfgen.sh //-- //
{
// sourced from header module //
"layer": "top",
"position": "top",
"mod": "dock",
"height": 28,
"exclusive": true,
"passthrough": false,
"gtk-layer-shell": true,
// positions generated based on config.ctl //
"modules-left": [
"custom/lr",
"hyprland/workspaces",
"hyprland/window",
"custom/rr"
],
"modules-center": ["custom/lr", "clock", "custom/rr"],
"modules-right": [
"custom/lr",
"wlr/taskbar",
"custom/rr",
"custom/lr",
"tray",
"custom/rr",
"custom/lr",
"cpu",
"temperature",
"memory",
"custom/rr",
"custom/lr",
"network",
"bluetooth",
"wireplumber",
"wireplumber#microphone",
"custom/cliphist",
"custom/power",
"custom/rr"
],
// sourced from modules based on config.ctl //
"custom/power": {
"format": "{}",
"exec": "echo ; echo  logout",
"on-click": "wlogout",
"interval": 86400, // once every day
"tooltip": true
},
"custom/cliphist": {
"format": "{}",
"exec": "echo ; echo 󰅇 clipboard history",
"on-click": "sleep 0.1 && ~/.config/hypr/scripts/cliphist.sh c 1",
//"on-click-right": "sleep 0.1 && ~/.config/hypr/scripts/cliphist.sh d",
"on-click-middle": "sleep 0.1 && ~/.config/hypr/scripts/cliphist.sh w 1",
"interval": 86400, // once every day
"tooltip": true
},
"custom/mode": {
"format": "{}",
"exec": "echo ; echo 󰟡 switch mode",
"on-click": "~/.config/hypr/scripts/themeswitch.sh -n",
"on-click-right": "~/.config/hypr/scripts/themeswitch.sh -p",
"on-click-middle": "sleep 0.1 && ~/.config/hypr/scripts/themeselect.sh",
"interval": 86400, // once every day
"tooltip": true
},
"hyprland/workspaces": {
"disable-scroll": true,
"on-click": "activate",
"persistent_workspaces": {
"1": ["HDMI-A-3"],
"2": ["HDMI-A-3"],
"3": ["HDMI-A-3"],
"4": ["HDMI-A-3"],
"5": ["HDMI-A-3"],
"6": ["HDMI-A-2"],
"7": ["HDMI-A-2"],
"8": ["HDMI-A-2"],
"9": ["HDMI-A-2"],
"10": ["HDMI-A-2"]
}
},
"hyprland/window": {
"format": "{title}",
"tooltip-format": "{title}",
"rewrite": { "^(.{30}).+": "$1..." },
"separate-outputs": true
},
"clock": {
"format": "{:%Y/%m/%d %H:%M}",
"format-alt": "{:L%A, %B %d %Y (%R)} ",
"timezones": ["Asia/Shanghai"],
"calendar": {
"mode": "year",
"mode-mon-col": 3,
"weeks-pos": "right",
"on-scroll": 1,
"format": {
"months": "<span color='#ffead3'><b>{}</b></span>",
"days": "<span color='#ecc6d9'><b>{}</b></span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
}
},
"actions": {
"on-click-right": "mode",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
},
"tooltip-format": "<span size='9pt' font='WenQuanYi Zen Hei Mono'><tt>{calendar}</tt></span>",
"locale": "en_US.UTF-8"
},
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 14,
"icon-theme": "Papirus-Dark",
"spacing": 0,
"tooltip-format": "{title}",
"on-click": "activate",
"on-click-middle": "close"
},
"tray": {
"icon-size": 14,
"spacing": 4
},
"cpu": {
"interval": 10,
"format": "󰍛 {usage}%",
"format-alt": "{icon0}{icon1}{icon2}{icon3}",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"]
},
"temperature": {
"interval": 10,
"hwmon-path": "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input",
"format": " {temperatureC}°C"
},
"memory": {
"interval": 30,
"format": " {percentage}%",
"format-alt": " {used}GB",
"max-length": 10,
"tooltip": true,
"tooltip-format": " {used:0.1f}GB/{total:0.1f}GB"
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "󰤨 {essid}",
"format-ethernet": "󱘖 Wired",
"tooltip-format": "󱘖 {ipaddr}  {bandwidthUpBytes}  {bandwidthDownBytes}",
"format-linked": "󱘖 {ifname} (No IP)",
"format-disconnected": " Disconnected",
"format-alt": "󰤨 {signalStrength}%",
"interval": 5
},
"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}"
},
"wireplumber": {
"format": "{icon} {volume}",
"format-muted": "󰝟",
"on-click": "pavucontrol -t 3",
"on-click-middle": "~/.config/hypr/scripts/volumecontrol.sh -o m",
"on-scroll-up": "~/.config/hypr/scripts/volumecontrol.sh -o i",
"on-scroll-down": "~/.config/hypr/scripts/volumecontrol.sh -o d",
"tooltip-format": "{icon} {desc} // {volume}%",
"scroll-step": 5,
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
}
},
"wireplumber#microphone": {
"format": "{format_source}",
"format-source": "",
"format-source-muted": "",
"on-click": "c -t 4",
"on-click-middle": "~/.config/hypr/scripts/volumecontrol.sh -i m",
"on-scroll-up": "~/.config/hypr/scripts/volumecontrol.sh -i i",
"on-scroll-down": "~/.config/hypr/scripts/volumecontrol.sh -i d",
"tooltip-format": "{format_source} {source_desc} // {source_volume}%",
"scroll-step": 5
},
// modules for padding //
"custom/lr": {
"format": " ",
"interval": "once",
"tooltip": false
},
"custom/rr": {
"format": " ",
"interval": "once",
"tooltip": false
}
}