sway: adjust comments
This commit is contained in:
@@ -43,38 +43,40 @@ client.focused_inactive $bar_bg $bar_bg $baseB0 $bar_bg
|
|||||||
client.unfocused $bar_bg $bar_bg $baseB0 $bar_bg
|
client.unfocused $bar_bg $bar_bg $baseB0 $bar_bg
|
||||||
client.urgent $orange $orange $baseB3 $orange
|
client.urgent $orange $orange $baseB3 $orange
|
||||||
|
|
||||||
# Output configuration
|
# always start on the same brightness
|
||||||
set $laptop eDP-1
|
exec light -S 20
|
||||||
|
|
||||||
|
# Wallpaper: generate wallpaper with: https://source.unsplash.com/random/3840x2160/?japan
|
||||||
|
# set normal wp
|
||||||
output * bg ~/images/wallpaper/wallpaper.png fill
|
output * bg ~/images/wallpaper/wallpaper.png fill
|
||||||
|
|
||||||
|
# create a blurred counter part for locking
|
||||||
|
exec_always convert ~/images/wallpaper/wallpaper.png -blur 0x8 /tmp/lock.png
|
||||||
|
|
||||||
|
# turn off screen, when lid closed
|
||||||
|
set $laptop eDP-1
|
||||||
bindswitch --reload --locked lid:on output $laptop disable
|
bindswitch --reload --locked lid:on output $laptop disable
|
||||||
bindswitch --reload --locked lid:off output $laptop enable
|
bindswitch --reload --locked lid:off output $laptop enable
|
||||||
|
|
||||||
exec light -S 20
|
|
||||||
|
|
||||||
# Idle configuration
|
# Idle configuration
|
||||||
# create blurred lock screen
|
# set lock and save to script, so other programs can also use it
|
||||||
exec_always convert ~/images/wallpaper/wallpaper.png -blur 0x8 /tmp/lock.png
|
|
||||||
|
|
||||||
# set lockc and save to script, so other programs can also use it
|
|
||||||
set $lock 'swaylock -f --image /tmp/lock.png --indicator-idle-visible -F'
|
set $lock 'swaylock -f --image /tmp/lock.png --indicator-idle-visible -F'
|
||||||
exec_always echo $lock > ~/.local/bin/lock.sh
|
exec_always echo $lock > ~/.local/bin/lock.sh
|
||||||
exec_always chmod +x ~/.local/bin/lock.sh
|
exec_always chmod +x ~/.local/bin/lock.sh
|
||||||
|
|
||||||
# Lock after 20 minutes
|
# Lock after 20 minutes, lock before suspend
|
||||||
# Lock before suspend
|
|
||||||
exec swayidle -w \
|
exec swayidle -w \
|
||||||
timeout 1200 ~/.local/bin/lock.sh \
|
timeout 1200 ~/.local/bin/lock.sh \
|
||||||
before-sleep ~/.local/bin/lock.sh
|
before-sleep ~/.local/bin/lock.sh
|
||||||
#timeout 1320 'systemctl suspend' \
|
#timeout 1320 'systemctl suspend' \
|
||||||
|
|
||||||
|
|
||||||
# Input configuration
|
# Input configuration
|
||||||
|
# mouse/trackpad
|
||||||
input type:pointer {
|
input type:pointer {
|
||||||
accel_profile "flat"
|
accel_profile "flat"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# keyboard
|
||||||
input type:keyboard {
|
input type:keyboard {
|
||||||
# Umlauts on RAlt + {a,u,o,s}
|
# Umlauts on RAlt + {a,u,o,s}
|
||||||
xkb_layout eu
|
xkb_layout eu
|
||||||
@@ -143,8 +145,8 @@ input type:keyboard {
|
|||||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && $SHOW_VOL
|
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && $SHOW_VOL
|
||||||
set $SHOW_MUTE_OUT notify-send "Audio Output" "$(pactl get-sink-mute @DEFAULT_SINK@)" -i speaker
|
set $SHOW_MUTE_OUT notify-send "Audio Output" "$(pactl get-sink-mute @DEFAULT_SINK@)" -i speaker
|
||||||
set $SHOW_MUTE_IN notify-send "Microphone" "$(pactl get-source-mute @DEFAULT_SOURCE@)" -i microphone
|
set $SHOW_MUTE_IN notify-send "Microphone" "$(pactl get-source-mute @DEFAULT_SOURCE@)" -i microphone
|
||||||
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle && $SHOW_MUTE_IN
|
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && $SHOW_MUTE_OUT
|
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||||
|
|
||||||
# Moving around:
|
# Moving around:
|
||||||
# Move your focus around
|
# Move your focus around
|
||||||
|
|||||||
Reference in New Issue
Block a user