feat: swayosd config
This commit is contained in:
@ -49,6 +49,8 @@ client.focused "#2c2c2c" "#212121" "#fefefe" "#ffffff" "#2c2c2c"
|
||||
# your displays after another 300 seconds, and turn your screens back on when
|
||||
# resumed. It will also lock your screen before your computer goes to sleep.
|
||||
|
||||
exec swayosd-server
|
||||
|
||||
### Input configuration
|
||||
#
|
||||
# Example configuration:
|
||||
@ -227,17 +229,17 @@ bindsym $mod+r mode "resize"
|
||||
# Utilities:
|
||||
#
|
||||
# Special keys to adjust volume via PulseAudio
|
||||
bindsym --locked XF86AudioMute exec amixer set Master toggle
|
||||
bindsym --locked XF86AudioLowerVolume exec amixer set Master 5%-
|
||||
bindsym --locked XF86AudioRaiseVolume exec amixer set Master 5%+
|
||||
bindsym --locked XF86AudioMicMute exec amixer set Capture toggle
|
||||
bindsym --locked XF86AudioMute exec amixer set Master toggle && swayosd-client --output-volume mute-toggle
|
||||
bindsym --locked XF86AudioLowerVolume exec amixer set Master 5%- && swayosd-client --output-volume lower
|
||||
bindsym --locked XF86AudioRaiseVolume exec amixer set Master 5%+ && swayosd-client --output-volume raise
|
||||
bindsym --locked XF86AudioMicMute exec amixer set Capture toggle && swayosd-client --input-volume mute-toggle
|
||||
bindsym --locked XF86AudioPlay exec playerctl play-pause
|
||||
bindsym --locked XF86AudioNext exec playerctl next
|
||||
bindsym --locked XF86AudioPrev exec playerctl previous
|
||||
bindsym --locked XF86AudioStop exec playerctl stop
|
||||
# Special keys to adjust brightness via brightnessctl
|
||||
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+
|
||||
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- && swayosd-client --brightness lower
|
||||
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ && swayosd-client --brightness raise
|
||||
# Special key to take a screenshot with grim
|
||||
bindsym Print exec grim
|
||||
|
||||
|
12
.config/swayosd/style.css
Normal file
12
.config/swayosd/style.css
Normal file
@ -0,0 +1,12 @@
|
||||
window#osd image, window#osd label {
|
||||
color: #fefefe;
|
||||
}
|
||||
|
||||
window#osd {
|
||||
border-radius: 10px;
|
||||
background: #202020DD;
|
||||
}
|
||||
|
||||
window#osd #container {
|
||||
margin: 10px;
|
||||
}
|
Reference in New Issue
Block a user