Compare commits
3 Commits
f9d80c88f8
...
1fd789e650
| 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
|
output eDP-1 color_profile icc ~/.config/sway/B140UAN02_7.icm
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
# Wayland overlay bar for sound and brightness level
|
|
||||||
set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock
|
|
||||||
|
|
||||||
### Idle configuration
|
### Idle configuration
|
||||||
#
|
#
|
||||||
# Example configuration:
|
# Example configuration:
|
||||||
@@ -264,14 +261,14 @@ bindsym $mod+r mode "resize"
|
|||||||
#
|
#
|
||||||
# Utilities:
|
# Utilities:
|
||||||
#
|
#
|
||||||
# Special keys to adjust volume via PulseAudio
|
# Special keys to adjust volume via WirePlumber
|
||||||
bindsym --locked XF86AudioMute exec pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $WOBSOCK ) || pamixer --get-volume > $WOBSOCK
|
bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||||
bindsym --locked XF86AudioLowerVolume exec pamixer -ud 5 && pamixer --get-volume > $WOBSOCK
|
bindsym --locked XF86AudioLowerVolume exec wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%-
|
||||||
bindsym --locked XF86AudioRaiseVolume exec pamixer -ui 5 && pamixer --get-volume > $WOBSOCK
|
bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+
|
||||||
bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
bindsym --locked XF86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||||
# Special keys to adjust brightness via brightnessctl
|
# 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 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) }')" && light -G | cut -d'.' -f1 > $WOBSOCK
|
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
|
// Choose the order of the modules
|
||||||
"modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad"],
|
"modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad"],
|
||||||
"modules-center": ["sway/window"],
|
"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
|
// Modules configuration
|
||||||
"sway/workspaces": {
|
"sway/workspaces": {
|
||||||
"disable-scroll": true,
|
"disable-scroll": true,
|
||||||
@@ -61,6 +61,10 @@
|
|||||||
"format-disconnected": "Disconnected ⚠",
|
"format-disconnected": "Disconnected ⚠",
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
},
|
},
|
||||||
|
"backlight": {
|
||||||
|
"format": "{percent}% {icon}",
|
||||||
|
"format-icons": ["", "", "", "", "", "", "", "", ""],
|
||||||
|
},
|
||||||
"wireplumber": {
|
"wireplumber": {
|
||||||
"format": "{volume}% {icon}",
|
"format": "{volume}% {icon}",
|
||||||
"format-muted": "",
|
"format-muted": "",
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ window#waybar.hidden {
|
|||||||
background-color: #f275be;
|
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;
|
padding: 0 10px;
|
||||||
margin: 0 2px;
|
margin: 0 2px;
|
||||||
color: #adbcbc;
|
color: #adbcbc;
|
||||||
@@ -106,6 +106,10 @@ label:focus {
|
|||||||
background-color: #103c48;
|
background-color: #103c48;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#backlight {
|
||||||
|
background-color: #184956;
|
||||||
|
}
|
||||||
|
|
||||||
#wireplumber {
|
#wireplumber {
|
||||||
background-color: #184956;
|
background-color: #184956;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user