Add sway and waybar configs

This commit is contained in:
2021-02-05 09:09:36 -06:00
parent bc68f48e82
commit eb383a3365
3 changed files with 299 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
{
"layer": "top", // Waybar at top layer
"height": 40, // Waybar height (to be removed for auto height)
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
"modules-center": ["tray"],
"modules-right": ["pulseaudio", "battery", "clock"],
"sway/workspaces": {
"disable-scroll": true
},
"tray": {
"icon-size": 16,
"spacing": 10
},
"clock": {
"format": "{:%a %b %d %I:%M %p}",
"format-alt": "{:%Y-%m-%d}",
"tooltip": false
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon}",
"format-charging": "{icon}",
"format-plugged": "{icon}",
"format-icons": ["", "", "", "", ""]
},
"pulseaudio": {
"scroll-step": 0,
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol-qt"
}
}

View File

@@ -0,0 +1,58 @@
/*
* style.css
* Copyright (C) 2021 Vintage Salt
*
* Distributed under terms of the MIT license.
*/
* {
border: none;
border-radius: 0;
font-family: IBM Plex Sans Medium;
font-size: 13px;
}
window#waybar {
background: @theme_base_color;
border-bottom: 4px solid #32302f;
}
/* swaywm stuff */
#workspaces {
padding: 0 6px;
}
#workspaces button {
background: transparent;
padding: 0 0.9em;
}
#workspaces button.focused {
background: #83a598;
color: @theme_base_color;
}
#mode {
background: #fb4934;
color: @theme_base_color;
padding: 0 1em;
}
/* widgets */
#pulseaudio {
padding: 0 1em;
}
#battery {
padding: 0 1em;
font-size: 16px;
}
#battery.charging {
color: #b8bb26;
}
#battery.warning {
color: #fabd2f;
}
#battery.criticcal {
color: #fb4934;
}
#clock {
border-left: 1px solid #32302f;
padding: 0 1em;
}