replace swaybar with waybar
This commit is contained in:
parent
144c98b194
commit
3b44579bf3
|
@ -20,19 +20,19 @@ client.background $bg
|
||||||
set $font Hack Nerd Font
|
set $font Hack Nerd Font
|
||||||
font pango:$font 8
|
font pango:$font 8
|
||||||
|
|
||||||
set $ws1 "1:[1]"
|
set $ws1 "1"
|
||||||
set $ws2 "2:[2]"
|
set $ws2 "2"
|
||||||
set $ws3 "3:[3]"
|
set $ws3 "3"
|
||||||
set $ws4 "4:[4]"
|
set $ws4 "4"
|
||||||
set $ws5 "5:[5]"
|
set $ws5 "5"
|
||||||
set $ws6 "6:[6]"
|
set $ws6 "6"
|
||||||
set $ws7 "7:[7]"
|
set $ws7 "7"
|
||||||
set $ws8 "8:[8]"
|
set $ws8 "8"
|
||||||
set $ws9 "9:[9]"
|
set $ws9 "9"
|
||||||
set $ws10 "10:[10]"
|
set $ws10 "10"
|
||||||
|
|
||||||
# default workspace
|
# default workspace
|
||||||
workspace "2:[2]"
|
workspace "2"
|
||||||
|
|
||||||
# window title
|
# window title
|
||||||
#for_window [class="^.*"] border pixel 2 title_format " %title"
|
#for_window [class="^.*"] border pixel 2 title_format " %title"
|
||||||
|
@ -291,23 +291,24 @@ exec /bin/dex -a
|
||||||
exec $terminal
|
exec $terminal
|
||||||
|
|
||||||
bar {
|
bar {
|
||||||
status_command i3status
|
swaybar_command waybar
|
||||||
|
# status_command i3status
|
||||||
font pango:$font 10
|
#
|
||||||
height 30
|
# font pango:$font 10
|
||||||
tray_padding 7
|
# height 30
|
||||||
position top
|
# tray_padding 7
|
||||||
separator_symbol " ▏"
|
# position top
|
||||||
strip_workspace_numbers yes
|
# separator_symbol " ▏"
|
||||||
|
# strip_workspace_numbers yes
|
||||||
colors {
|
#
|
||||||
background #000000
|
# colors {
|
||||||
statusline $fg
|
# background #000000
|
||||||
|
# statusline $fg
|
||||||
focused_workspace #2c2f33 #2c2f33 $fg
|
#
|
||||||
active_workspace #000000 #000000 $fg
|
# focused_workspace #2c2f33 #2c2f33 $fg
|
||||||
inactive_workspace #000000 #000000 #4b5056
|
# active_workspace #000000 #000000 $fg
|
||||||
urgent_workspace #000000 #000000 #e27c77
|
# inactive_workspace #000000 #000000 #4b5056
|
||||||
}
|
# urgent_workspace #000000 #000000 #e27c77
|
||||||
|
# }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,79 @@
|
||||||
|
{
|
||||||
|
"layer": "top", // Waybar at top layer
|
||||||
|
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
||||||
|
"height": 24, // Waybar height (to be removed for auto height)
|
||||||
|
// Choose the order of the modules
|
||||||
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||||
|
"modules-center": [],
|
||||||
|
"modules-right": ["clock", "network", "cpu", "memory", "battery", "backlight", "pulseaudio", "custom/vpn", "idle_inhibitor", "tray"],
|
||||||
|
|
||||||
|
// Modules configuration
|
||||||
|
"sway/workspaces": {
|
||||||
|
"disable-scroll": true,
|
||||||
|
"all-outputs": true,
|
||||||
|
"format": "{name}"
|
||||||
|
},
|
||||||
|
"sway/mode": {
|
||||||
|
"format": "<span style=\"italic\">{}</span>"
|
||||||
|
},
|
||||||
|
"idle_inhibitor": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"activated": "",
|
||||||
|
"deactivated": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tray": {
|
||||||
|
// "icon-size": 21,
|
||||||
|
"spacing": 10
|
||||||
|
},
|
||||||
|
"clock": {
|
||||||
|
"format": " {:%Y-%m-%d %H:%M}"
|
||||||
|
},
|
||||||
|
"cpu": {
|
||||||
|
"format": " {usage}%",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"format": " {}%"
|
||||||
|
},
|
||||||
|
"backlight": {
|
||||||
|
"format": "{icon} {percent}%",
|
||||||
|
"format-icons": ["", ""]
|
||||||
|
},
|
||||||
|
"battery": {
|
||||||
|
"states": {
|
||||||
|
// "good": 95,
|
||||||
|
"warning": 30,
|
||||||
|
"critical": 15
|
||||||
|
},
|
||||||
|
"format": " {icon} {capacity}%",
|
||||||
|
// "format-good": "", // An empty format will hide the module
|
||||||
|
// "format-full": "",
|
||||||
|
"format-icons": ["", "", "", "", ""]
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
// "interface": "wlp2s0", // (Optional) To force the use of this interface
|
||||||
|
"format-wifi": " <{essid}> {ipaddr}/{cidr}",
|
||||||
|
"format-ethernet": " {ipaddr}/{cidr}",
|
||||||
|
"format-disconnected": "⚠ Disconnected"
|
||||||
|
},
|
||||||
|
"pulseaudio": {
|
||||||
|
//"scroll-step": 1,
|
||||||
|
"format": "{icon} {volume}%",
|
||||||
|
//"format-bluetooth": "{icon} {volume}%",
|
||||||
|
"format-muted": "婢",
|
||||||
|
"format-icons": {
|
||||||
|
"headphones": "",
|
||||||
|
"headset": "",
|
||||||
|
"default": ["", ""]
|
||||||
|
},
|
||||||
|
"on-click": "pavucontrol"
|
||||||
|
},
|
||||||
|
"custom/vpn": {
|
||||||
|
"format": "{}",
|
||||||
|
"interval": 5,
|
||||||
|
"exec": "test -e /proc/sys/net/ipv4/conf/tun0 && echo || echo "
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
* {
|
||||||
|
border: none;
|
||||||
|
font-family: Verdana, sans-serif;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar {
|
||||||
|
background: rgba(43, 48, 59, 0.8);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
padding: 0 5px;
|
||||||
|
background: transparent;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.focused {
|
||||||
|
background: #64727D;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock, #battery, #cpu, #memory, #temperature, #backlight, #network, #pulseaudio, #mode {
|
||||||
|
padding: 0 10px;
|
||||||
|
border-right: 1px solid white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#idle_inhibitor, #tray, #custom-vpn {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
Loading…
Reference in New Issue