Compare commits
3 Commits
f9d80c88f8
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
1fd789e650
|
|||
|
4c1186c785
|
|||
|
c380e3fbf5
|
@@ -69,9 +69,6 @@ output 'Dell Inc. DELL U3219Q 9RSG413' color_profile icc ~/.config/sway/dell-U32
|
||||
output eDP-1 color_profile icc ~/.config/sway/B140UAN02_7.icm
|
||||
{{- end }}
|
||||
|
||||
# Wayland overlay bar for sound and brightness level
|
||||
set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock
|
||||
|
||||
### Idle configuration
|
||||
#
|
||||
# Example configuration:
|
||||
@@ -264,14 +261,14 @@ bindsym $mod+r mode "resize"
|
||||
#
|
||||
# Utilities:
|
||||
#
|
||||
# Special keys to adjust volume via PulseAudio
|
||||
bindsym --locked XF86AudioMute exec pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $WOBSOCK ) || pamixer --get-volume > $WOBSOCK
|
||||
bindsym --locked XF86AudioLowerVolume exec pamixer -ud 5 && pamixer --get-volume > $WOBSOCK
|
||||
bindsym --locked XF86AudioRaiseVolume exec pamixer -ui 5 && pamixer --get-volume > $WOBSOCK
|
||||
bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
# Special keys to adjust volume via WirePlumber
|
||||
bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
bindsym --locked XF86AudioLowerVolume exec wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%-
|
||||
bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+
|
||||
bindsym --locked XF86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||
# Special keys to adjust brightness via brightnessctl
|
||||
bindsym --locked XF86MonBrightnessUp exec light -S "$(light -G | awk '{ print int(($1 + .72) * 1.4) }')" && light -G | cut -d'.' -f1 > $WOBSOCK
|
||||
bindsym --locked XF86MonBrightnessDown exec light -S "$(light -G | awk '{ print int($1 / 1.4) }')" && light -G | cut -d'.' -f1 > $WOBSOCK
|
||||
bindsym --locked XF86MonBrightnessUp exec light -S "$(light -G | awk '{ print int(($1 + .72) * 1.4) }')"
|
||||
bindsym --locked XF86MonBrightnessDown exec light -S "$(light -G | awk '{ print int($1 / 1.4) }')"
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=A lightweight overlay volume/backlight/progress/anything bar for Wayland
|
||||
Documentation=man:wob(1)
|
||||
BindsTo=sway-session.target
|
||||
ConditionEnvironment=WAYLAND_DISPLAY
|
||||
|
||||
[Service]
|
||||
StandardInput=socket
|
||||
ExecStart=/usr/bin/wob
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
||||
@@ -1,6 +0,0 @@
|
||||
[Socket]
|
||||
ListenFIFO=%t/wob.sock
|
||||
SocketMode=0600
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
@@ -5,7 +5,7 @@
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad"],
|
||||
"modules-center": ["sway/window"],
|
||||
"modules-right": ["idle_inhibitor", "wireplumber", "network", "sway/language", "battery", "clock", "tray"],
|
||||
"modules-right": ["idle_inhibitor", "backlight", "wireplumber", "network", "sway/language", "battery", "clock", "tray"],
|
||||
// Modules configuration
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
@@ -60,6 +60,10 @@
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
"backlight": {
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", ""],
|
||||
},
|
||||
"wireplumber": {
|
||||
"format": "{volume}% {icon}",
|
||||
|
||||
@@ -54,7 +54,7 @@ window#waybar.hidden {
|
||||
background-color: #f275be;
|
||||
}
|
||||
|
||||
#clock, #battery, #network, #wireplumber, #tray, #mode, #language, #idle_inhibitor, #window {
|
||||
#clock, #battery, #network, #backlight, #wireplumber, #tray, #mode, #language, #idle_inhibitor, #window {
|
||||
padding: 0 10px;
|
||||
margin: 0 2px;
|
||||
color: #adbcbc;
|
||||
@@ -106,6 +106,10 @@ label:focus {
|
||||
background-color: #103c48;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background-color: #184956;
|
||||
}
|
||||
|
||||
#wireplumber {
|
||||
background-color: #184956;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user