Add configs for swaywm and waybar

This commit is contained in:
2021-10-06 18:59:14 +03:00
parent 8b2b4debfa
commit ad4446f61b
6 changed files with 307 additions and 1 deletions

35
waybar/config Normal file
View File

@@ -0,0 +1,35 @@
{
// "layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
"height": 40, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["sway/workspaces"],
"modules-center": [],
"modules-right": ["pulseaudio", "sway/language", "network", "clock"],
// Left modules
"sway/workspaces": {
// "disable-scroll": true,
"all-outputs": true,
"format": "{index}"
},
// Right modules
"pulseaudio": {
"tooltip": false
},
"sway/language": {
"tooltip": false
},
"network": {
"format": "{icon} connected",
"format-icons": [""],
"tooltip": false
},
"clock": {
"format": "{:%d %b %H:%M, %A}",
"tooltip": false
}
}

3
waybar/launch.sh Executable file
View File

@@ -0,0 +1,3 @@
killall waybar
waybar

42
waybar/style.css Normal file
View File

@@ -0,0 +1,42 @@
/* Colors */
/* primary: #ffa759 */
/* background: #202734 */
/* background-alt: #191e2a */
/* foreground: #cbccc6 */
window#waybar {
background: transparent;
color: #cbccc6;
font-family: "Fira Code", "Font Awesome 5 Free Solid";
}
#workspaces {
background: #202734;
margin: 10px;
border-radius: 8px;
}
#workspaces button {
color: #fff;
background: transparent;
}
#workspaces button.focused {
color: #ffa759;
}
#workspaces button.urgent {
background: #ffa579;
}
#clock, #network, #language, #pulseaudio {
background: #202734;
margin: 10px;
padding: 10px;
border-radius: 8px;
}
#network, #language, #pulseaudio {
margin-right: 5px;
}