mirror of
https://github.com/ivabus/dotfiles
synced 2024-11-22 08:05:07 +03:00
Remaster waybar config
This commit is contained in:
parent
b6d78b6336
commit
2945051b03
3 changed files with 50 additions and 49 deletions
|
@ -8,7 +8,7 @@ for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 p
|
||||||
set $menu exec $term --class=launcher -e env zsh -c "source ~/.profile && /usr/bin/sway-launcher-desktop"
|
set $menu exec $term --class=launcher -e env zsh -c "source ~/.profile && /usr/bin/sway-launcher-desktop"
|
||||||
set $filemgr nemo
|
set $filemgr nemo
|
||||||
|
|
||||||
output * bg ~/.config/sway/magenta_blue.png stretch
|
output * bg #181924 solid_color
|
||||||
|
|
||||||
input * {
|
input * {
|
||||||
xkb_layout us,ru
|
xkb_layout us,ru
|
||||||
|
@ -19,10 +19,7 @@ input * {
|
||||||
bar swaybar_command waybar
|
bar swaybar_command waybar
|
||||||
xwayland enable
|
xwayland enable
|
||||||
|
|
||||||
smart_borders on
|
|
||||||
default_border pixel 1
|
default_border pixel 1
|
||||||
hide_edge_borders smart
|
|
||||||
smart_gaps on
|
|
||||||
gaps inner 8
|
gaps inner 8
|
||||||
font "JetBrains Mono" 9
|
font "JetBrains Mono" 9
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"position": "top",
|
"position": "top",
|
||||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||||
"modules-center": ["sway/window"],
|
"modules-center": [],
|
||||||
"modules-right": ["idle_inhibitor", "network", "cpu", "memory", "pulseaudio", "battery", "sway/language", "clock", "tray"],
|
"modules-right": ["idle_inhibitor", "cpu", "temperature", "memory", "custom/loadavg", "network", "pulseaudio", "battery", "sway/language", "clock", "tray"],
|
||||||
"sway/mode": {
|
"sway/mode": {
|
||||||
"format": "<span style=\"italic\">{}</span>"
|
"format": "<span style=\"italic\">{}</span>"
|
||||||
},
|
},
|
||||||
|
@ -17,15 +17,14 @@
|
||||||
"spacing": 10
|
"spacing": 10
|
||||||
},
|
},
|
||||||
"clock": {
|
"clock": {
|
||||||
"format": "{:%H:%M:%S}",
|
"format": "{:%H:%M:%S %d.%m.%Y}",
|
||||||
"format-alt": "{:%d.%m.%Y}",
|
|
||||||
"interval": 1
|
"interval": 1
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"scroll-step": 1,
|
"scroll-step": 1,
|
||||||
"format": "Vol: {volume}%",
|
"format": "Volume: {volume}%",
|
||||||
"format-bluetooth": "Vol: {volume}% ",
|
"format-bluetooth": "Volume: {volume}% (BT)",
|
||||||
"format-bluetooth-muted": "Vol: {icon}",
|
"format-bluetooth-muted": "Volume: {icon} (BT)",
|
||||||
"format-muted": "Vol: {volume}%",
|
"format-muted": "Vol: {volume}%",
|
||||||
"on-click": "pavucontrol"
|
"on-click": "pavucontrol"
|
||||||
},
|
},
|
||||||
|
@ -37,14 +36,20 @@
|
||||||
"format": "RAM: {}%",
|
"format": "RAM: {}%",
|
||||||
"interval": 1
|
"interval": 1
|
||||||
},
|
},
|
||||||
|
"custom/loadavg": {
|
||||||
|
"exec": "cat /proc/loadavg | head -c 14",
|
||||||
|
"return-type": "{}",
|
||||||
|
"format": "Load average: {}",
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
"temperature": {
|
"temperature": {
|
||||||
"format": "{temperatureC}°C",
|
"format": "Temperature: {temperatureC}°C",
|
||||||
"interval": 1
|
"interval": 1
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
"format": "Bat: {capacity}%",
|
"format": "Battery: {capacity}%",
|
||||||
"format-charging": "Bat: {capacity}% (charging)",
|
"format-charging": "Battery: {capacity}% (charging)",
|
||||||
"format-plugged": "Bat: {capacity}% (plugged)",
|
"format-plugged": "Battery: {capacity}% (plugged)",
|
||||||
"interval": 10
|
"interval": 10
|
||||||
},
|
},
|
||||||
"network": {
|
"network": {
|
||||||
|
|
|
@ -3,23 +3,34 @@
|
||||||
font-family: "JetBrains Mono", "Noto Sans";
|
font-family: "JetBrains Mono", "Noto Sans";
|
||||||
font-size: 9pt;
|
font-size: 9pt;
|
||||||
border: none;
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
padding: 1 1px;
|
padding: 1px 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background-color: @base;
|
/*background-color: @base;*/
|
||||||
color: @yellow;
|
color: transparent;
|
||||||
|
background: transparent;
|
||||||
|
padding-left: 16px;
|
||||||
|
padding-right: 16px;
|
||||||
|
margin-top: 8px;
|
||||||
|
border-radius: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces {
|
||||||
|
background: @base;
|
||||||
|
transition: none;
|
||||||
|
border-radius: 32px;
|
||||||
|
color: @subtext0;
|
||||||
|
margin: 8px 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
background-color: transparent;
|
border-radius: 32px;
|
||||||
border-radius: 2px;
|
|
||||||
color: @subtext0;
|
|
||||||
margin: 4px 1px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button:hover {
|
button:hover {
|
||||||
color: @red;
|
color: @red;
|
||||||
background-color: @surface1;
|
background-color: @surface1;
|
||||||
}
|
}
|
||||||
|
@ -35,34 +46,24 @@ window#waybar {
|
||||||
#mode {
|
#mode {
|
||||||
background-color: @mantle;
|
background-color: @mantle;
|
||||||
}
|
}
|
||||||
#language, #clock, #battery, #cpu, #memory, #disk, #temperature, #backlight, #network, #pulseaudio, #custom-media, #tray, #mode, #idle_inhibitor, #mpd{
|
|
||||||
padding: 0 4px;
|
.modules-right {
|
||||||
|
transition: none;
|
||||||
|
background: @base;
|
||||||
color: @text;
|
color: @text;
|
||||||
background-color: @mantle;
|
margin: 8px 8px 0;
|
||||||
border-radius: 2px;
|
padding-left: 4px;
|
||||||
margin: 4px 1px;
|
padding-right: 4px;
|
||||||
|
border-radius: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#language, #clock, #battery, #cpu, #memory, #disk, #temperature, #backlight, #network, #pulseaudio, #custom-media, #tray, #mode, #idle_inhibitor, #mpd, #custom-loadavg {
|
||||||
|
padding: 0 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#window {
|
#window {
|
||||||
color: @yellow;
|
color: transparent;
|
||||||
font-weight: 800;
|
background-color: transparent;
|
||||||
}
|
|
||||||
|
|
||||||
/* If workspaces is the leftmost module, omit left margin */
|
|
||||||
.modules-left > widget:first-child > #workspaces {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* If workspaces is the rightmost module, omit right margin */
|
|
||||||
.modules-right > widget:last-child > #workspaces {
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes blink {
|
|
||||||
to {
|
|
||||||
background-color: #888888;
|
|
||||||
color: #000000;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.critical:not(.charging) {
|
#battery.critical:not(.charging) {
|
||||||
|
@ -81,5 +82,3 @@ label:focus {
|
||||||
min-width: 16px;
|
min-width: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue