init
This commit is contained in:
205
modules/home/hyprland/conf/waybar/config.jsonc
Normal file
205
modules/home/hyprland/conf/waybar/config.jsonc
Normal file
@@ -0,0 +1,205 @@
|
||||
// --// 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": "~/.config/hypr/scripts/logoutlaunch.sh 2",
|
||||
"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"]
|
||||
}
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": "{:%Y/%m/%d %H:%M}",
|
||||
"format-alt": "{:%I:%M%p 周%u}",
|
||||
"tooltip-format": "<tt><big>{calendar}</big></tt>",
|
||||
"locale": "zh_CN.UTF-8"
|
||||
},
|
||||
|
||||
"wlr/taskbar": {
|
||||
"format": "{icon}",
|
||||
"icon-size": 14,
|
||||
"icon-theme": "papirus-icon-theme",
|
||||
"spacing": 0,
|
||||
"tooltip-format": "{title}",
|
||||
"on-click": "activate",
|
||||
"on-click-middle": "close",
|
||||
"ignore-list": ["Alacritty"],
|
||||
"app_ids-mapping": {
|
||||
"firefoxdeveloperedition": "firefox-developer-edition"
|
||||
}
|
||||
},
|
||||
|
||||
"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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user