Getting things setup for sway wayland

This commit is contained in:
Chris Cochrun 2021-04-16 06:09:09 -05:00
parent 2287ac931b
commit e94ff95428
20 changed files with 513 additions and 53 deletions

View file

@ -45,9 +45,9 @@ input type:touchpad {
}
### Style
gaps outer 10
gaps inner 10
smart_gaps on
gaps outer 15
gaps inner 20
#smart_gaps on
default_border none
@ -65,7 +65,13 @@ titlebar_border_thickness 1
# Start your launcher
bindsym Menu exec $menu
bindsym $mod+Menu exec wofi --show run | xargs swaymsg exec --
#Pass
bindsym $mod+p exec wofipass
# Screenshot
bindsym Print exec grim -g "${slurp}" - | wl-copy
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
@ -153,7 +159,7 @@ titlebar_border_thickness 1
bindsym $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
bindsym $mod+Shift+p focus parent
#
# Scratchpad:
#
@ -166,6 +172,16 @@ titlebar_border_thickness 1
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
#
# Audio
#
bindsym $mod+a exec alacritty --class pulsemixer -e pulsemixer
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#
# Resizing containers:
#
@ -199,8 +215,10 @@ set $mode_launcher Launcher
bindsym $mod+o mode "$mode_launcher"
mode "$mode_launcher" {
bindsym e exec emacsclient -c &
bindsym e exec emacsclient -c -a emacs &
bindsym b exec qutebrowser
bindsym a exec emacsclient -c -e '(org-agenda)'
bindsym i exec emacsclient -c -e '(mu4e)'
bindsym Return mode "default"
bindsym Escape mode "default"
}
@ -214,8 +232,14 @@ bar {
workspace_buttons yes
}
for_window [app_id="mpv"] floating enable
for_window [app_id="imv"] floating enable
for_window [app_id="dolphin"] floating enable
for_window [app_id="emacs"] opacity 0.90
exec emacs --daemon
exec mako
exec waystart
xwayland enable
include /etc/sway/config.d/*
include /etc/sway/config.d/*