I3 to Sway #1

Merged
dbroqua merged 112 commits from gentoo-sway into master 2021-10-21 21:40:49 +02:00
2 changed files with 57 additions and 9 deletions
Showing only changes of commit f62587c125 - Show all commits

View file

@ -2,19 +2,22 @@
{ {
"layer": "bottom", "layer": "bottom",
"position": "bottom", "position": "bottom",
"margin-right": 5, "margin": 4,
"margin-left": 5,
"margin-bottom": 5,
"modules-left": [ "modules-left": [
"sway/workspaces" "sway/workspaces",
"sway/mode"
],
"modules-center": [
], ],
"modules-center": [],
"modules-right": [ "modules-right": [
"disk#1", "disk#1",
"disk#2", "disk#2",
"network", "network",
"cpu", "cpu",
"memory", "memory",
"temperature#1",
"temperature#2",
"temperature#3",
"pulseaudio", "pulseaudio",
"custom/multimedia_previous", "custom/multimedia_previous",
"custom/multimedia_current", "custom/multimedia_current",
@ -22,6 +25,12 @@
"clock", "clock",
"tray" "tray"
], ],
"sway/workspaces": {
"all-outputs": true
},
"sway/mode": {
"format": " {}"
},
"disk#1": { "disk#1": {
"interval": 60, "interval": 60,
"format": " {percentage_used:2}%", "format": " {percentage_used:2}%",
@ -43,6 +52,21 @@
"memory": { "memory": {
"format": " {percentage}%" "format": " {percentage}%"
}, },
"temperature#1": {
"thermal-zone": 2,
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"format": " {temperatureC}°C"
},
"temperature#2": {
"thermal-zone": 0,
"hwmon-path": "/sys/class/hwmon/hwmon0/temp1_input",
"format": "{temperatureC}°C"
},
"temperature#3": {
"thermal-zone": 1,
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
"format": "{temperatureC}°C"
},
"pulseaudio": { "pulseaudio": {
"format": "♪ {volume}% {icon}", "format": "♪ {volume}% {icon}",
"format-bluetooth": "{volume}% {icon}", "format-bluetooth": "{volume}% {icon}",
@ -66,7 +90,7 @@
"custom/multimedia_current": { "custom/multimedia_current": {
"interval": 10, "interval": 10,
"exec": "~/Bin/nowPlaying.sh", "exec": "~/Bin/nowPlaying.sh",
"on-click": "~/Bin/music.sh PlayPause", "on-click": "~/Bin/music.sh PlayPause"
}, },
"custom/multimedia_next": { "custom/multimedia_next": {
"format": "", "format": "",

View file

@ -12,10 +12,12 @@ window#waybar {
/* Base styling for modules */ /* Base styling for modules */
#workspaces, #workspaces,
#mode,
#disk, #disk,
#network, #network,
#cpu, #cpu,
#memory, #memory,
#temperature,
#pulseaudio, #pulseaudio,
#custom-spotify, #custom-spotify,
#custom-multimedia_previous, #custom-multimedia_previous,
@ -37,19 +39,41 @@ window#waybar {
border-radius: 4px; border-radius: 4px;
background: rgba(94,129,172,0.7); background: rgba(94,129,172,0.7);
margin: 0 1px; margin: 0 1px;
color: rgba(46, 52, 64, 1);
}
#workspaces button.current_output {
background: rgba(136, 192, 208, 0.7);
} }
#workspaces button.focused { #workspaces button.focused {
border-radius: 4px; border-radius: 4px;
background: rgba(136, 192, 208, 0.7); background: rgba(163, 190, 140, 0.7);
color: rgba(46, 52, 64, 1);
} }
#workspaces button.urgent { #workspaces button.urgent {
background: rgba(208, 135, 112, 0.7) background: rgba(208, 135, 112, 0.7);
} }
#network.disconnected { #network.disconnected {
background: rgba(191, 97, 106, 0.7); background: rgba(191, 97, 106, 0.7);
} }
#temperature.1 {
margin-right: 0;
padding-right: 4px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
#temperature.2 {
margin: 0;
padding: 0 4px;
border-radius: 0;
}
#temperature.3 {
margin-left: 0;
padding-left: 4px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
/* Style for buttons */ /* Style for buttons */
#custom-spotify, #custom-spotify,
#custom-multimedia_previous, #custom-multimedia_previous,