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,118 +1,107 @@
* { * {
font-family: JetBrainsMonoNL, "Font Awesome 6 Brands", "Font Awesome 6 Free", Helvetica, Arial, sans-serif; border: none;
border-radius: 0;
font-family: "JetbrainsMono Nerd Font";
font-size: 14px; font-size: 14px;
padding: 3px 0px;
} }
window#waybar { window#waybar {
background-color: rgba(64, 70, 71, 0.95); background: none;
margin: 0; }
border-radius: 0px 0px 15px 15px;
window#waybar.hidden {
opacity: 0.2;
}
#window {
margin-top: 6px;
padding-left: 10px;
padding-right: 10px;
border-radius: 5px;
transition: none;
background: #2e3440;
color: #d8dee9; color: #d8dee9;
transition-property: background-color; }
transition-duration: .5s;
#custom-powermenu {
margin-top: 6px;
margin-left: 12px;
margin-right: 12px;
padding-left: 15px;
padding-right: 20px;
border-radius: 5px;
transition: none;
background: #2e3440;
} }
#tags { #tags {
background-color: #d8dee9; margin-top: 6px;
border-radius: 0px 0px 15px 15px; margin-right: 12px;
padding: 0px 15px 0px 15px; font-size: 4px;
box-shadow: 0px -4px 0px 0px #d8dee9; border-radius: 5px;
color: #1b1b1b; transition: none;
background: #2e3440;
} }
#tags button { #tags button {
color: #1b1b1b; transition: none;
margin: 0.5px 2px; color: #4c566a;
padding: 0px 7px 0px 7px; background: transparent;
} border-radius: 0px;
#tags button:hover {
background: rgba(0, 0, 0, 0.2);
box-shadow: inset 0 -2px #2b2b2b;
color: #2b2b2b;
} }
#tags button.occupied { #tags button.occupied {
color: #2b2b2b; transition: none;
box-shadow: inset 0 -3px #2b2b2b; color: #a3be8c;
background: transparent;
font-size: 4px;
} }
#tags button.focused { #tags button.focused {
background-color: #64727d; color: #81a1c1;
color: #d8dee9; border-bottom: 2px solid #81a1c1;
box-shadow: inset 0 -4px #2b2b2b;
} }
#mode { #tags button:hover {
background-color: #64727D; transition: none;
border-bottom: 3px solid #ffffff; box-shadow: inherit;
text-shadow: inherit;
color: #81a1c1;
} }
#clock, #temperature {
#battery, margin-top: 6px;
#cpu, margin-right: 12px;
#custom-start, border-radius: 5px;
#custom-power, transition: none;
#custom-warp, padding: 0 10px;
#memory, color: #a3be8c;
#disk, background: #2e3440;
#temperature,
#backlight,
#network,
#pulseaudio,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#mpd {
padding: 0px 15px 0px 15px;
color: #ffffff;
} }
#window, #pulseaudio {
#workspaces { margin-top: 6px;
margin: 0px 0px; margin-left: 12px;
} border-radius: 5px;
transition: none;
/* If workspaces is the leftmost module, omit left margin */ padding: 0 10px;
.modules-left > widget:first-child > #custom-start { color: #a3be8c;
margin-left: 10px; background: #2e3440;
}
/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #custom-power {
margin-right: 10px;
}
#clock {
padding: 0px 15px 0px 15px;
border-radius: 15px;
background-color: #1b1b1b;
} }
#battery { #battery {
border-radius: 15px; margin-top: 6px;
padding: 0px 15px 0px 15px; margin-left: 12px;
background-color: #301b1c; border-radius: 5px;
color: #0cf7e8; transition: none;
} padding: 10px 10px;
color: #a3be8c;
#battery.charging, #battery.plugged { background: #2e3440;
color: #ffffff;
background-color: #1b2a30;
}
@keyframes blink {
to {
background-color: #ffffff;
color: #000000;
}
} }
#battery.critical:not(.charging) { #battery.critical:not(.charging) {
background-color: #f52f2f; background-color: #d8dee9;
color: #f4f714; color: #2e3440;
animation-name: blink; animation-name: blink;
animation-duration: 0.5s; animation-duration: 0.5s;
animation-timing-function: linear; animation-timing-function: linear;
@@ -120,101 +109,50 @@ window#waybar {
animation-direction: alternate; animation-direction: alternate;
} }
#cpu { @keyframes blink {
border-radius: 15px; to {
padding: 0px 15px 0px 15px; background-color: #bf616a;
background-color: #1b1b1b;
color: #d8dee9; color: #d8dee9;
} }
#memory {
border-radius: 15px;
padding: 0px 15px 0px 15px;
background-color: #1b1b1b;
} }
#backlight { #backlight {
border-radius: 15px; margin-top: 6px;
background-color: #1b1b1b; margin-left: 12px;
border-radius: 5px;
transition: none;
padding: 10px 10px;
color: #88c0d0;
background: #2e3440;
} }
#network { #custom-cpu {
border-radius: 15px; margin-top: 6px;
padding: 0px 15px 0px 15px; margin-left: 12px;
background-color: #1b1b1b; border-radius: 5px;
color: #0cf7e8; transition: none;
padding: 10px 10px;
color: #88c0d0;
background: #2e3440;
} }
#network.disconnected { #custom-clock {
border-radius: 15px; margin-top: 6px;
background-color: #1b1b1b; margin-left: 12px;
color: #4c666a; margin-right: 12px;
} border-radius: 5px;
transition: none;
#pulseaudio { padding: 10px 10px;
background-color: #1b1b1b; color: #a3be8c;
border-radius: 15px; background: #2e3440;
padding: 0px 15px 0px 15px;
color: #d8dee9;
}
#pulseaudio.muted {
background-color: #1b1b1b;
color: #4c666a;
} }
#tray { #tray {
border-radius: 15px; margin-top: 6px;
padding: 5px 15px 5px 15px; margin-right: 12px;
background-color: #1b1b1b; border-radius: 5px;
} padding-left: 10px;
padding-right: 10px;
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: #f52f2f;
}
#mpd {
border-radius: 15px;
padding: 5px 15px 5px 15px;
background-color: #1b1b1b;
color: #d8dee9;
}
#mpd.disconnected {
background-color: #f53c3c;
}
#mpd.stopped {
background-color: #90b1b1;
}
#mpd.paused {
background-color: #4c666a;
}
#custom-start {
border-radius: 15px;
padding: 0px 15px 0px 15px;
background-color: #2b2b2b;
color: #14b3f7;
}
#custom-power {
padding: 0px 15px 0px 15px;
border-radius: 15px;
font-size: 25px;
background-color: #301b1c;
color: #24c796;
}
#custom-warp {
padding: 0px 15px 0px 15px;
border-radius: 15px;
background-color: #071a24;
color: #d8dee9; color: #d8dee9;
background: #2e3440;
} }

View File

@@ -1,192 +1,83 @@
{ {
// asd "layer": "top",
"width": 1900, "modules-left": ["custom/powermenu", "river/tags", "temperature"],
"spacing": 7, "modules-center": ["river/window"],
"mode": "dock", "modules-right": ["battery","backlight", "pulseaudio", "custom/mic","custom/cpu","custom/clock", "tray"],
"modules-center": [ "pulseaudio": {
"river/tags", "tooltip": false,
"wlr/workspaces" "scroll-step": 5,
], "format": "{icon} {volume}%",
"modules-left": [ "format-muted": "婢 0%",
"custom/start", "on-click":"amixer -D pulse Master 1+ toggle",
"mpd", "scroll-step": 5,
"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": { "format-icons": {
"locked": "", "default": ["", "", ""]
"unlocked": ""
} }
}, },
"wlr/workspaces": { "custom/powermenu": {
"sort-by-coordinates": true, "format": "",
"sort-by-name": true, "interval": "once",
"on-click": "activate", /*"exec": "checkupdates | wc -l",*/
"format": "{icon}", "on-click": "~/.config/waybar/modules/powermenu.sh",
"format-icons": { "tooltip": false,
"default": "", "signal": 8
"active": "",
"urgent": ""
}, },
"active-only": false
}, "river/tags": {
"wlr/taskbar": { "tag-labels":[
"format": "{icon}", "",
"on-click": "activate", "",
"icon-theme": "Vimix-Beryl-dark" "ﭮ",
}, "",
"tray": { "",
"spacing": 10 "",
}, ""
"clock": { ],
"timezone": "Asia/Kolkata", "disable-click": false,
"format": " {:%a, %b %d, %H:%M}", "num-tags": 7
"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": { "temperature": {
// "thermal-zone": 2, "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", "format": "{temperatureC}°C "
// "format-critical": "{temperatureC}°C {icon}", },
"critical-threshold": 80, "river/window": {
"format": "{temperatureC}°C {icon}", "format": "{}",
"format-icons": [ "max-length": 90
"",
"",
""
]
}, },
"backlight": { "backlight": {
"format": " {percent}%" "device": "amdgpu_b10",
//"format-icons": ["", "", "", "", "", "", "", "", ""] "format": "{icon} {}%",
"format-icons": ["", ""],
"interval": 1
}, },
"battery": { "battery": {
"states": { "states": {
// "good": 95, "good": 100,
"warning": 30, "warning": 30,
"critical": 15 "critical": 20
}, },
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-charging": " {capacity}%", "format-charging": "{icon} {capacity}%",
"format-plugged": " {capacity}%", "format-plugged": "{icon} {capacity}%",
"format-icons": [ "format-alt": "{time} {icon}",
"", "format-icons": ["", "", "", "", ""]
"",
"",
"",
""
],
"interval": 15
}, },
"network": { "tray":{
"format-wifi": " {bandwidthDownBytes} ({signalStrength}%)", "icon-size":18,
"format-ethernet": " {ipaddr}/{cidr}", "show-passive-items":true,
"tooltip-format": " {ifname} via {gwaddr}", "spacing": 10,
"tooltip-format-wifi": "{ifname} {essid} via {gwaddr} ip: {ipaddr}", "reverse-direction": true
"format-linked": " {ifname} (No IP)",
"format-disconnected": "",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
}, },
"pulseaudio": { "custom/clock": {
// "scroll-step": 1, // %, can be a float "interval": 1,
"format": " {icon} {volume}% | {format_source}", "return-type": "string",
"format-bluetooth": "{volume}% {icon} {format_source}", "exec": "~/.config/waybar/modules/datetime.sh",
"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 "tooltip": false
}, },
"custom/power": { "custom/cpu": {
"format": "⏻", "interval": 1,
"on-click": "~/.config/river/scripts/rofi-logout-menu", "return-type": "string",
"exec": "~/.config/waybar/modules/cpu.sh",
"tooltip": false "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
}
} }