# various sections of sway config # ===== input ===== input * { xkb_layout de tap enabled dwt disabled dwtp disabled natural_scroll disabled drag_lock disabled # accel_profile flat # pointer_accel -0.6 # pointer_accel 0 } # ===== keybinds ===== # Start a temp terminal bindsym $mod+Shift+Return exec $term -e d26r temp bash # screen-message bindsym $mod+s exec sm -i -a 1 -f '#203' ' 🧌 ' # mic shortcuts: start with open mic (hold Alt+x to mute), # press Alt+Shift+x to switch to/from ptt (hold Alt+x to unmute). # also decreases speaker volume in ptt mode while unmuted. exec pactl set-source-mute @DEFAULT_SOURCE@ no bindsym --no-repeat Mod1+Shift+x exec bash -c 'if [[ -f /tmp/mark-micmute-ptt ]]; then rm /tmp/mark-micmute-ptt; pactl set-source-mute @DEFAULT_SOURCE@ no; else touch /tmp/mark-micmute-ptt; pactl set-source-mute @DEFAULT_SOURCE@ yes; fi' bindsym --no-repeat Mod1+x exec bash -c 'if [[ -f /tmp/mark-micmute-ptt ]]; then pactl set-sink-volume mark_combine_out_5 50%; sleep 0.1; pactl set-source-mute @DEFAULT_SOURCE@ no; else pactl set-source-mute @DEFAULT_SOURCE@ yes; fi' bindsym --no-repeat --release Mod1+x exec bash -c 'sleep 0.05; if [[ -f /tmp/mark-micmute-ptt ]]; then pactl set-sink-volume mark_combine_out_5 100%; sleep 0.05; pactl set-source-mute @DEFAULT_SOURCE@ yes; else pactl set-source-mute @DEFAULT_SOURCE@ no; fi' # Toggle the current focus between tiling and floating mode bindsym $mod+Shift+f floating toggle # default bind bindsym $mod+Shift+space floating toggle # ===== layout keybinds ===== # bindsym $mod+w layout tabbed # default, would put all windows of the same container into tabs bindsym $mod+w splitv ; layout tabbed # puts the current window as the only tab, next opened windows join it in its spot bindsym $mod+e layout toggle split # default, unchanged bindsym $mod+Shift+w split none # undo splith/splitv/split+tab # ===== bar ===== bar { position bottom # [...] }