.config/sway: update
parent
66f81a529a
commit
98b9bb4b88
|
@ -46,6 +46,10 @@ set $swaylock swaylock -f \
|
|||
--text-ver-color=#00000000 \
|
||||
--text-wrong-color=#00000000
|
||||
|
||||
# strings
|
||||
set $mounted "Mounted %f at %d"
|
||||
set $unmounted "Unmounted %s"
|
||||
|
||||
# bar ##########################################################################
|
||||
bar {
|
||||
separator_symbol " | "
|
||||
|
@ -142,10 +146,10 @@ bindsym {
|
|||
XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-, exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
|
||||
XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle, exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
|
||||
XF86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle, exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)"
|
||||
XF86MonBrightnessUp exec brightnessctl set "+1%", exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
|
||||
XF86MonBrightnessDown exec brightnessctl set "1%-", exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
|
||||
shift+XF86MonBrightnessUp exec brightnessctl set "+10%", exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
|
||||
shift+XF86MonBrightnessDown exec brightnessctl set "10%-", exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
|
||||
XF86MonBrightnessUp exec brightnessctl -n set +1%, exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
|
||||
XF86MonBrightnessDown exec brightnessctl -n set 1%-, exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
|
||||
shift+XF86MonBrightnessUp exec brightnessctl -n set +10%, exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
|
||||
shift+XF86MonBrightnessDown exec brightnessctl -n set 10%-, exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
|
||||
}
|
||||
|
||||
# resize
|
||||
|
@ -188,8 +192,9 @@ default_floating_border normal 0
|
|||
|
||||
# exec #########################################################################
|
||||
exec {
|
||||
# systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
# dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
hash dbus-update-activation-environment 2>/dev/null && \
|
||||
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
swayidle -w \
|
||||
timeout 300 'brightnessctl -s set 1%' resume 'brightnessctl -r' \
|
||||
timeout 600 '$swaylock' \
|
||||
|
@ -197,10 +202,10 @@ exec {
|
|||
timeout 1800 'systemctl suspend-then-hibernate' \
|
||||
before-sleep '$swaylock'
|
||||
wlsunset -l 45 -L 15
|
||||
mako
|
||||
mako --max-visible=0
|
||||
devmon \
|
||||
--exec-on-drive "notify-send 'Mounted %f at %d'" \
|
||||
--exec-on-unmount "notify-send 'Unmounted %s'"
|
||||
--exec-on-drive 'notify-send "Mounted %f at %d"' \
|
||||
--exec-on-unmount 'notify-send "Unmounted %f"'
|
||||
foot -s
|
||||
}
|
||||
|
||||
|
@ -215,7 +220,7 @@ font monospace 13
|
|||
# keyboard
|
||||
input "type:keyboard" {
|
||||
xkb_layout us,si
|
||||
xkb_options caps:escape,grp:alt_shift_toggle
|
||||
xkb_options caps:escape,grp:alt_shift_toggle,compose:ralt
|
||||
repeat_delay 200
|
||||
repeat_rate 30
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue