Add sway configs

This commit is contained in:
Eduard Tolosa 2019-10-27 02:56:42 -05:00
parent 8a6e99d13e
commit a461012f35
5 changed files with 483 additions and 3 deletions

138
user-config/waybar/config Normal file
View file

@ -0,0 +1,138 @@
// waybar configuration for wayland/sway
{
"layer": "top",
"position": "bottom",
"height": 24,
"modules-left": [
"sway/workspaces",
"custom/right-arrow-dark"
],
"modules-right": [
"custom/left-arrow-dark",
"backlight",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"network",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"custom/vpn",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"pulseaudio",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"memory",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"cpu",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"temperature",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"battery",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"clock",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"tray"
],
"custom/left-arrow-dark": {
"format": "",
"tooltip": false
},
"custom/left-arrow-light": {
"format": "",
"tooltip": false
},
"custom/right-arrow-dark": {
"format": "",
"tooltip": false
},
"custom/right-arrow-light": {
"format": "",
"tooltip": false
},
"sway/workspaces": {
"disable-scroll": true,
"format": "{name}"
},
"clock": {
"format": "{:%a %d %b %H:%M}",
"tooltip": false
},
"pulseaudio": {
"tooltip": false,
"format": "{icon} {volume:2}%",
"format-bluetooth": "{icon} {volume}%",
"format-muted": "MUTE",
"format-icons": {
"headphones": "",
"default": [
"",
""
]
},
"scroll-step": 5,
"on-click": "pavucontrol"
},
"memory": {
"tooltip": false,
"interval": 5,
"format": " {used:0.1f}G"
},
"cpu": {
"tooltip": false,
"interval": 5,
"format": " {usage:2}%"
},
"battery": {
"tooltip": false,
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
],
"interval": 5
},
"tray": {
"icon-size": 20,
"spacing": 5
},
"network": {
"format-wifi": " ON",
"format-ethernet": " ON",
"format-disconnected": " OFF",
"tooltip": false
},
"backlight": {
"device": "intel_backlight",
"format": "{percent}% "
},
"temperature": {
"critical-threshold": 80,
"format-critical": "{temperatureC}°C ",
"format": "{temperatureC}°C "
},
"custom/vpn": {
"interval": 5,
"tooltip": false,
"format": "{}",
"return-type": "json",
"exec": "$HOME/.local/bin/waybar_vpn"
}
}

View file

@ -0,0 +1,106 @@
* {
font-size: 14px;
font-family: monospace;
}
window#waybar {
background: #292b2e;
color: #fdf6e3;
}
#custom-right-arrow-dark,
#custom-left-arrow-dark {
color: #1a1a1a;
}
#custom-right-arrow-light,
#custom-left-arrow-light {
color: #292b2e;
background: #1a1a1a;
}
#custom-vpn,
#custom-vpn.down,
#network,
#network.disconnected,
#workspaces,
#clock,
#pulseaudio,
#network,
#backlight,
#memory,
#cpu,
#temperature,
#temperature.critical,
#battery,
#tray {
background: #1a1a1a;
}
#clock {
color: #3481ed
}
#workspaces button {
padding: 0 2px;
color: #fdf6e3;
}
#workspaces button.focused {
color: #268bd2;
}
#workspaces button:hover {
box-shadow: inherit;
text-shadow: inherit;
}
#workspaces button:hover {
background: #1a1a1a;
border: #1a1a1a;
padding: 0 3px;
}
#pulseaudio {
color: #268bd2;
}
#backlight {
color: #b58900;
}
#memory {
color: #2aa198;
}
#temperature {
color: #b58900;
}
#temperature.critical {
color: #dd2241;
}
#cpu {
color: #6c71c4;
}
#battery {
color: #859900;
}
#network.disconnected {
color: #dd2241;
}
#network {
color: #079e0c
}
#custom-vpn {
color: #01a004;
}
#custom-vpn.down {
color: #e02518;
}
#custom-vpn,
#custom-vpn.down,
#network,
#network.disconnected,
#clock,
#pulseaudio,
#backlight,
#memory,
#cpu,
#temperature,
#temperature.critical,
#battery {
padding: 0 10px;
}