43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
# sway # modes
|
|
|
|
# Resizing containers:
|
|
set $mode_resize "<b>Resize</b>(<b>←↑↓→</b>) <b>Gaps</b>(<b>+/-</b>)"
|
|
mode --pango_markup $mode_resize {
|
|
# resize windows vimlike
|
|
bindsym $left resize shrink width 10px
|
|
bindsym $down resize grow height 10px
|
|
bindsym $up resize shrink height 10px
|
|
bindsym $right resize grow width 10px
|
|
# with arrow keys
|
|
bindsym Left resize shrink width 10px
|
|
bindsym Down resize grow height 10px
|
|
bindsym Up resize shrink height 10px
|
|
bindsym Right resize grow width 10px
|
|
# resize window Gaps with +/-
|
|
bindsym minus gaps inner current minus 5px
|
|
bindsym plus gaps inner current plus 5px
|
|
# Return to default mode
|
|
bindsym Return mode "default"
|
|
bindsym Escape mode "default"
|
|
}
|
|
# launch resize mode (Alt+r)
|
|
bindsym $mod+r mode $mode_resize
|
|
|
|
# Audio menu
|
|
set $mode_audio "<b>Audio</b>(<b>↑/↓/m</b>) <b>Micro</b>(<b>+/-/n</b>)"
|
|
mode --pango_markup $mode_audio {
|
|
# volume control
|
|
bindsym Up exec --no-startup-id "amixer -q sset Master 1%+ unmute"
|
|
bindsym Down exec --no-startup-id "amixer -q sset Master 1%- unmute"
|
|
bindsym m exec --no-startup-id "amixer set Master toggle"
|
|
# micro control
|
|
bindsym minus exec --no-startup-id "amixer -q sset Capture 1%- cap"
|
|
bindsym plus exec --no-startup-id "amixer -q sset Capture 1%+ cap"
|
|
bindsym n exec --no-startup-id "amixer set Capture toggle"
|
|
# Return to default mode
|
|
bindsym Return mode "default"
|
|
bindsym Escape mode "default"
|
|
}
|
|
# launch audio mode (Super+s)
|
|
bindsym $mad+s mode $mode_audio
|