# Common keys and reusable things set { $mod Mod4 $left h $down j $up k $right l $term foot $audiomixer $term pulsemixer $screenshot wayshot -s "$(slurp)" --file /tmp/out.png $lock swaylock -f -F -c 000000 $menu bemenu-run \ -p spawn \ --list 30 \ -W 0.7 \ --no-exec \ --scrollbar autohide \ -c \ --tb '#CC838C' --tf '#000000' \ --nb '#000000' --nf '#CC838C' \ --hb '#CC838C' --hf '#000000' \ --ab '#101010' --af '#CC838C' \ --scb '#000000' --scf '#CC838C' \ | xargs swaymsg exec -- } # Keybinds bindsym { # Software actions $mod+Space exec $menu $mod+Ctrl+Shift+l exec $lock $mod+Shift+v exec $audiomixer Print exec $screenshot # # General window management # $mod+c exec $term $mod+Shift+c kill $mod+Shift+q reload # # Window focus and movement: # $mod+$left focus left $mod+$down focus down $mod+$up focus up $mod+$right focus right $mod+Shift+$left move left $mod+Shift+$down move down $mod+Shift+$up move up $mod+Shift+$right move right # # Workspaces: # $mod+1 workspace 1 $mod+2 workspace 2 $mod+3 workspace 3 $mod+4 workspace 4 $mod+5 workspace 5 $mod+6 workspace 6 $mod+Shift+1 move container to workspace 1 $mod+Shift+2 move container to workspace 2 $mod+Shift+3 move container to workspace 3 $mod+Shift+4 move container to workspace 4 $mod+Shift+5 move container to workspace 5 $mod+Shift+6 move container to workspace 6 # # Layout stuff: # # Switch the current container between different layout styles $mod+t layout tabbed $mod+e layout toggle split # Make the current focus fullscreen $mod+f fullscreen # Toggle the current focus between tiling and floating mode $mod+Shift+space floating toggle # Move focus to the parent container $mod+a focus parent # # Modes # $mod+r mode "resize" } # # Resizing containers: # mode "resize" { bindsym { $left resize shrink width 40px $down resize grow height 40px $up resize shrink height 40px $right resize grow width 40px Return mode "default" Escape mode "default" } } # # Output configuration # output { * { bg #000000 solid_color } } # # Idle # exec swayidle -w \ timeout 300 $lock \ timeout 600 'swaymsg "output * power off"' \ resume 'swaymsg "output * power on"' \ before-sleep $lock # # Status Bar: # bar { position top swaybar_command waybar colors { statusline #CC838C background #000000 focused_workspace #000000 #171717 #CC838C inactive_workspace #000000 #000000 #404040 } } # # Input: # input "type:keyboard" { xkb_layout us,de xkb_options grp:alt_shift_toggle } # Colors client.focused #CC838C #101010 #CC838C #CC838C #CC838C client.focused_inactive #404040 #000000 #404040 #404040 #404040 client.unfocused #404040 #000000 #404040 #404040 #404040 # Defaults default_border pixel 2 smart_borders no_gaps workspace_layout default floating_modifier $mod normal