revert New waybar
This commit is contained in:
2022-08-07 20:41:17 +02:00
parent 6f3c9265ca
commit daef669059
2 changed files with 210 additions and 381 deletions

View File

@@ -1,192 +1,83 @@
{
// asd
"width": 1900,
"spacing": 7,
"mode": "dock",
"modules-center": [
"river/tags",
"wlr/workspaces"
],
"modules-left": [
"custom/start",
"mpd",
"clock",
"memory",
"cpu",
"tray"
],
"modules-right": [
"custom/warp",
"network",
"pulseaudio",
"backlight",
"battery",
"custom/power"
],
"river/tags": {
"tag-labels": [
"",
"",
"",
"",
"",
"",
"",
"",
""
]
},
"keyboard-state": {
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"wlr/workspaces": {
"sort-by-coordinates": true,
"sort-by-name": true,
"on-click": "activate",
"format": "{icon}",
"format-icons": {
"default": "",
"active": "",
"urgent": ""
},
"active-only": false
},
"wlr/taskbar": {
"format": "{icon}",
"on-click": "activate",
"icon-theme": "Vimix-Beryl-dark"
},
"tray": {
"spacing": 10
},
"clock": {
"timezone": "Asia/Kolkata",
"format": " {:%a, %b %d, %H:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><big>{calendar}</big></tt>",
"format-alt": " {:%A, %B %d, %Y, %H:%M}"
},
"cpu": {
"interval": 5,
"format": " {usage}% ({avg_frequency} GHz)",
"tooltip": false
},
"memory": {
"interval": 5,
"format": " {}%"
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
// "format-critical": "{temperatureC}°C {icon}",
"critical-threshold": 80,
"format": "{temperatureC}°C {icon}",
"format-icons": [
"",
"",
""
]
},
"backlight": {
"format": " {percent}%"
//"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
],
"interval": 15
},
"network": {
"format-wifi": " {bandwidthDownBytes} ({signalStrength}%)",
"format-ethernet": " {ipaddr}/{cidr}",
"tooltip-format": " {ifname} via {gwaddr}",
"tooltip-format-wifi": "{ifname} {essid} via {gwaddr} ip: {ipaddr}",
"format-linked": " {ifname} (No IP)",
"format-disconnected": "",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"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": "",
"default": [
"",
"",
""
]
},
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
},
"custom/start": {
"format": "<span font_family='Iosevka' font_size='20pt'></span>",
"on-click": "wofi --show drun",
"tooltip": false
},
"custom/power": {
"format": "⏻",
"on-click": "~/.config/river/scripts/rofi-logout-menu",
"tooltip": false
},
"custom/warp": {
"exec": "~/.local/bin/mywarp --show-icon",
"interval": 2,
"format": {},
"exec-on-event": true,
"on-click": "~/.local/bin/mywarp --toggle",
"tooltip": false
},
"mpd": {
"format": "{stateIcon} {consumeIcon} {randomIcon} {repeatIcon} {singleIcon} ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"interval": 2,
"consume-icons": {
"on": " " // Icon shows only when "consume" is on
},
"random-icons": {
"off": "<span color=\"#f53c3c\"></span> ", // Icon grayed out when "random" is off
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)",
"on-click": "mpc toggle",
"on-click-right": "mpc stop",
"on-scroll-up": "mpc next",
"on-scroll-down": "mpc prev",
"smooth-scrolling-threshold": 3
}
"layer": "top",
"modules-left": ["custom/powermenu", "river/tags", "temperature"],
"modules-center": ["river/window"],
"modules-right": ["battery","backlight", "pulseaudio", "custom/mic","custom/cpu","custom/clock", "tray"],
"pulseaudio": {
"tooltip": false,
"scroll-step": 5,
"format": "{icon} {volume}%",
"format-muted": "婢 0%",
"on-click":"amixer -D pulse Master 1+ toggle",
"scroll-step": 5,
"format-icons": {
"default": ["", "", ""]
}
},
"custom/powermenu": {
"format": "",
"interval": "once",
/*"exec": "checkupdates | wc -l",*/
"on-click": "~/.config/waybar/modules/powermenu.sh",
"tooltip": false,
"signal": 8
},
"river/tags": {
"tag-labels":[
"",
"",
"ﭮ",
"",
"",
"",
""
],
"disable-click": false,
"num-tags": 7
},
"temperature": {
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"format": "{temperatureC}°C "
},
"river/window": {
"format": "{}",
"max-length": 90
},
"backlight": {
"device": "amdgpu_b10",
"format": "{icon} {}%",
"format-icons": ["", ""],
"interval": 1
},
"battery": {
"states": {
"good": 100,
"warning": 30,
"critical": 20
},
"format": "{icon} {capacity}%",
"format-charging": "{icon} {capacity}%",
"format-plugged": "{icon} {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
},
"tray":{
"icon-size":18,
"show-passive-items":true,
"spacing": 10,
"reverse-direction": true
},
"custom/clock": {
"interval": 1,
"return-type": "string",
"exec": "~/.config/waybar/modules/datetime.sh",
"tooltip": false
},
"custom/cpu": {
"interval": 1,
"return-type": "string",
"exec": "~/.config/waybar/modules/cpu.sh",
"tooltip": false
},
}