cat .config/warbar/config
pacman -S otf-font-awesome jq grim slurp pcmanfm-gtk3 foot light pavucontrol
yay -S wlsunset iwgtk
https://repo.archlinuxcn.org/x86_64/iwgtk-0.4-2-x86_64.pkg.tar.zst
https://cf-builds.garudalinux.org/repos/chaotic-aur/x86_64/wlsunset-0.2.0-2-x86_64.pkg.tar.zst
--------------------------------------------------------------------------------------
"layer": "bottom",
"output": "eDP-1",
"position": "top",
"spacing": 2,
"modules-center":["custom/flux"],
"modules-left": ["sway/workspaces","sway/mode","sway/window","custom/ftog","custom/close"],
"modules-right": ["custom/playerctl","pulseaudio", "network", "backlight", "battery","clock","tray"],
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
"format":"{:%Y %b %d %I:%m %p %a }",
"format-alt":"{:%I:%m %p }",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"backlight": {
"device": "intel_backlight",
"format": "{percent}% {icon}",
"format-icons": ["", ""],
"on-scroll-up": " light -A 2 ",
"on-scroll-down": " light -U 2 "
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon} ",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": " {signalStrength}% ",
"format-ethernet": "{ipaddr}/{cidr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "⚠",
"tooltip-format": "{essid} {ifname}: {ipaddr}/{cidr}",
"interval":"1",
"on-click": "iwgtk"
},
"pulseaudio": {
"scroll-step": 1, // %, can be a float
"format": "{icon} {volume}% {format_source}",
"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": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"custom/ftog": {
"format": " " ,
"on-click": "swaymsg floating toggle",
},
"custom/close": {
"format": " " ,
"on-click": "swaymsg kill"
},
"custom/flux": {
"format": " " ,
"on-click": "flux"
},
"custom/playerctl": {
"format": "{icon} {}",
"return-type": "json",
"format-icons": {
"Playing": " ",
"Paused": " ",
},
"max-length":70,
"exec": "playerctl -a metadata --format '{\"text\": \"{{playerName}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
"on-click": "playerctl play-pause",
"on-click-middle":"playerctl previous",
"on-click-right":"playerctl next"
},
},{
"layer": "top",
"output": "eDP-1",
"spacing": 15,
"position": "left",
"modules-right": ["sway/language","cpu","memory"],
"modules-left": ["custom/wofi","custom/term","custom/web","custom/file","custom/code","wlr/taskbar",],
"modules-center": ["idle_inhibitor","custom/ftog"],
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 14,
"icon-theme": "Numix-Circle",
"tooltip-format": "{title}",
"on-click": "activate",
"on-click-middle": "close"
},
"cpu": {
"format": " {usage}% ",
"tooltip": false
},
"memory": {
"format": " {used:0.1f}G "
},
"sway/language": {
"format": "{short} {variant}",
},
"temperature": {
// "thermal-zone": 2,
"hwmon-path": "/sys/class/hwmon/hwmon0/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"custom/term": {
"format": " ",
"on-click": "foot"
},
"custom/web": {
"format": " ",
"on-click": "firefox"
},
"custom/file": {
"format": " ",
"on-click":"pcmanfm"
},
"custom/wofi": {
"format": " ",
"on-click": "wofi --show drun -I"
},
"custom/wshot": {
"format": " x",
"on-click": "wshot"
},
"custom/code": {
"format": " " ,
"on-click": "foot -e nvim"
},
}]
-------------------------------------------------------------------------------------------
ss::
Comments
Post a Comment