Feat(sway): cosmetics

This commit is contained in:
Bertrand Benjamin 2024-02-10 22:12:38 +01:00
parent 5210b2a15a
commit 2131bb57c4
3 changed files with 67 additions and 44 deletions

View File

@ -135,13 +135,15 @@ bindsym $mod+Shift+Right move right
# #
# Workspaces: # Workspaces:
# #
set $ws1 1: set $ws1 1: 󰖟
set $ws2 2: set $ws2 2:
set $ws3 3:  set $ws3 3: 
set $ws4 4:  set $ws4 4: 
set $ws5 5:  set $ws5 5: 
set $ws6 6:  set $ws6 6: 
set $ws7 7:  set $ws7 7: 
set $ws8 8: 󰖟
set $ws9 9: 
bindsym $mod+ampersand workspace $ws1 bindsym $mod+ampersand workspace $ws1
bindsym $mod+eacute workspace $ws2 bindsym $mod+eacute workspace $ws2

View File

@ -2,8 +2,8 @@
"layer": "top", "layer": "top",
"output": "eDP-1", "output": "eDP-1",
"height": 30, "height": 30,
"modules-left": ["sway/workspaces", "sway/mode"], "modules-left": ["sway/mode","sway/window" ],
"modules-center": ["sway/window"], "modules-center": ["sway/workspaces" ],
"modules-right": ["pulseaudio", "battery", "tray", "clock"], "modules-right": ["pulseaudio", "battery", "tray", "clock"],
"sway/window": { "sway/window": {
"max-length": 50 "max-length": 50

View File

@ -1,70 +1,91 @@
* { * {
border: none; border: none;
border-radius: 0; border-radius: 0;
font-family: Droid Nerd Font Mono; font-family: Droid Nerd Font Mono;
font-size: 14px; font-size: 14px;
min-height: 0; min-height: 0;
} }
@import "gruvbox.css"; @import "gruvbox.css";
window#waybar { window#waybar {
background: @background; background: @background;
color: @white_b; color: @foreground;
} }
#workspaces button { #workspaces button {
padding: 0 2px; padding: 0 2px;
background: transparent; background: transparent;
color: @white_b; color: @foreground;
border-bottom: 3px solid transparent; border-bottom: 3px solid transparent;
} }
#workspaces button.focused { #workspaces button.active {
background: @orange; background: @orange_b;
border-bottom: 3px solid @orange_b;
} }
#mode, #clock, #battery { #workspaces button.visible {
padding: 0 10px; background: @orange;
margin: 0 5px; border-radius: 2px;
border-top: 3px solid @orange_b;
}
#mode,
#clock,
#battery {
padding: 0 10px;
margin: 0 5px;
} }
#mode { #mode {
background: @red; background: @red;
border-bottom: 3px solid @white_b; border-bottom: 3px solid @foreground;
}
#window {
padding: 0 10px;
} }
#clock { #clock {
color: @white_b; color: @foreground;
} }
#battery { #battery {
color: @white_b; color: @foreground;
} }
#battery.charging { #battery.charging {
color: @gree; color: @green;
} }
@keyframes blink { @keyframes blink {
to { to {
background-color: @white_b; background-color: @foreground;
color: @background; color: @background;
} }
} }
#idle_inhibitor, #pulseaudio, #custom-openvpn, #network, #cpu, #memory, #temperature, #backlight, #battery, #clock, #tray { #idle_inhibitor,
padding: 0 6px; #pulseaudio,
margin: 0 3px; #custom-openvpn,
#network,
#cpu,
#memory,
#temperature,
#backlight,
#battery,
#clock,
#tray {
padding: 0 6px;
margin: 0 3px;
} }
#battery.warning:not(.charging) { #battery.warning:not(.charging) {
background: @red; background: @red;
color: @white_b; color: @foreground;
animation-name: blink; animation-name: blink;
animation-duration: 0.5s; animation-duration: 0.5s;
animation-timing-function: linear; animation-timing-function: linear;
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; animation-direction: alternate;
} }