gentoo-sway #2

Merged
dbroqua merged 116 commits from gentoo-sway into master 2021-10-24 00:30:54 +02:00
2 changed files with 140 additions and 0 deletions
Showing only changes of commit 37b32d59eb - Show all commits

81
config/waybar/config Normal file
View file

@ -0,0 +1,81 @@
[
{
"layer": "bottom",
"position": "bottom",
"margin-right": 5,
"margin-left": 5,
"margin-bottom": 5,
"modules-left": [
"sway/workspaces"
],
"modules-center": [],
"modules-right": [
"disk#1",
"disk#2",
"network",
"cpu",
"memory",
"pulseaudio",
"custom/multimedia_previous",
"custom/multimedia_current",
"custom/multimedia_next",
"clock",
"tray"
],
"disk#1": {
"interval": 60,
"format": " {percentage_used:2}%",
"path": "/"
},
"disk#2": {
"interval": 60,
"format": " {percentage_used:2}%",
"path": "/home"
},
"network": {
"interface": "eno2",
"format": " {ipaddr}",
"format-disconnected": "-"
},
"cpu": {
"format": " {load}%"
},
"memory": {
"format": " {percentage}%"
},
"pulseaudio": {
"format": "♪ {volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"scroll-step": 5,
"on-click": "pavucontrol"
},
"custom/multimedia_previous": {
"format": "",
"on-click": "~/Bin/music.sh Previous"
},
"custom/multimedia_current": {
"exec": "~/Bin/nowPlaying.sh",
"on-click": "~/Bin/music.sh PlayPause",
},
"custom/multimedia_next": {
"format": "",
"on-click": "~/Bin/music.sh Next"
},
"clock": {
"format": "{:%d/%m %H:%M}"
},
"tray": {
"spacing": 10
}
}
]

59
config/waybar/style.css Normal file
View file

@ -0,0 +1,59 @@
* {
font-size: 11px;
font-family: "Roboto", "Font Awesome 5 Free";
}
window#waybar {
color: #d8dee9;
background: none;
padding: 8px;
border-radius: 4px;
}
/* Base styling for modules */
#workspaces,
#disk,
#network,
#cpu,
#memory,
#pulseaudio,
#custom-spotify,
#custom-multimedia_previous,
#custom-multimedia_current,
#custom-multimedia_next,
#clock,
#tray {
padding: 0px 8px 0px 8px;
border-radius: 4px;
background: rgba(76, 86, 106, 0.7);
margin: 0 4px;
}
#workspaces {
padding: 0;
}
#workspaces button {
padding: 0px 12px 0px 12px;
border-radius: 4px;
background: rgba(94,129,172,0.7);
margin: 0 1px;
}
#workspaces button.focused {
border-radius: 4px;
background: rgba(136, 192, 208, 0.7);
color: rgba(46, 52, 64, 1);
}
#workspaces button.urgent {
background: rgba(208, 135, 112, 0.7)
}
#network.disconnected {
background: rgba(191, 97, 106, 0.7);
}
/* Style for buttons */
#custom-spotify,
#custom-multimedia_previous,
#custom-multimedia_current,
#custom-multimedia_next {
background: rgba(94,129,172,0.7);
}