diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2024-12-25 14:26:51 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2024-12-25 14:26:51 +0000 |
| commit | dc41873a79b32ed3d34dd7dac09c081f7472d207 (patch) | |
| tree | ba3c80c8d137263a8f346cf32853d15f75094fab /sway/config | |
| parent | f4c682dc6bdeebe9f0c6a20deb7092cf893791a1 (diff) | |
Change most things to symlinks instead of hardlinks
Diffstat (limited to 'sway/config')
| -rw-r--r-- | sway/config | 225 |
1 files changed, 4 insertions, 221 deletions
diff --git a/sway/config b/sway/config index 2789e75..a1b2735 100644 --- a/sway/config +++ b/sway/config @@ -1,223 +1,6 @@ -############# -# Varaibles # -############# +include /etc/sway/config.d/* +include conf.d/*.conf -set $mod Mod4 -set $left h -set $down j -set $up k -set $right l -set $term alacritty -set $menu wofi +include input.conf +include output.conf -# Colours -set $cl_high #434e59 -set $cl_indi #d9d8d8 -set $cl_back #22282e -set $cl_fore #ffffff -set $cl_urge #ee2e24 - -############# -# Display # -############# - -font pango:Iosevka Nerd Font 10 - -titlebar_padding 4 - -gaps inner 15 - -client.focused $cl_high $cl_high $cl_fore $cl_indi $cl_high -client.focused_inactive $cl_back $cl_back $cl_fore $cl_back $cl_back -client.unfocused $cl_back $cl_back $cl_fore $cl_back $cl_back -client.urgent $cl_urge $cl_urge $cl_fore $cl_urge $cl_urge - -output * background ~/.config/sway/wallpaper.jpg fill - -include output.cfg - -############ -# Inputs # -############ - -include input.cfg - -############## -# Workspaces # -############## - -# Bind to specific outputs -workspace 1 output $monitor1 # terminal -workspace 2 output $monitor1 # firefox -workspace 3 output $monitor2 # discord -workspace 4 output $monitor2 # spotify -workspace 5 output $monitor1 # thunderbird - -############# -# Windows # -############# - -for_window [app_id="termfloat"] floating enable -for_window [app_id="termfloat"] resize set height 500 -for_window [app_id="termfloat"] resize set width 900 - -default_border normal 3 - -default_floating_border normal 3 - -############## -# Keybinds # -############## - -bindsym $mod+Return exec $term -bindsym $mod+Shift+Return exec $term --class="termfloat" -bindsym $mod+d exec pgrep -x wofi >/dev/null 2>&1 && killall wofi || $menu -bindsym $mod+Shift+c reload -bindsym $mod+Shift+e exec ~/.config/sway/scripts/exit-menu.sh - -# Politely quit -bindsym $mod+q kill -# Rudely kill -bindsym $mod+Shift+q exec swaymsg -t get_tree | \ - jq '.. | select(.type?) | select(.focused==true).pid' | \ - xargs -L 1 kill -9 - -floating_modifier $mod normal - -# Move around -bindsym $mod+$left focus left -bindsym $mod+$down focus down -bindsym $mod+$up focus up -bindsym $mod+$right focus right -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - -# Move the focused window -bindsym $mod+Shift+$left move left -bindsym $mod+Shift+$down move down -bindsym $mod+Shift+$up move up -bindsym $mod+Shift+$right move right -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# Move to workspaces -bindsym $mod+1 workspace number 1 -bindsym $mod+2 workspace number 2 -bindsym $mod+3 workspace number 3 -bindsym $mod+4 workspace number 4 -bindsym $mod+5 workspace number 5 -bindsym $mod+6 workspace number 6 -bindsym $mod+7 workspace number 7 -bindsym $mod+8 workspace number 8 -bindsym $mod+9 workspace number 9 -bindsym $mod+0 workspace number 10 - -# Move focused container to workspace -bindsym $mod+Shift+1 move container to workspace number 1 -bindsym $mod+Shift+2 move container to workspace number 2 -bindsym $mod+Shift+3 move container to workspace number 3 -bindsym $mod+Shift+4 move container to workspace number 4 -bindsym $mod+Shift+5 move container to workspace number 5 -bindsym $mod+Shift+6 move container to workspace number 6 -bindsym $mod+Shift+7 move container to workspace number 7 -bindsym $mod+Shift+8 move container to workspace number 8 -bindsym $mod+Shift+9 move container to workspace number 9 -bindsym $mod+Shift+0 move container to workspace number 10 - -# Layout -bindsym $mod+b splith -bindsym $mod+v splitv - -# Layout styles -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split - -# Fullscreen -bindsym $mod+f fullscreen - -# Toggle to floating windows -bindsym $mod+space focus mode_toggle - -# Toggle current window as floating -bindsym $mod+Shift+space floating toggle - -# Move focus to the parent container -bindsym $mod+a focus parent - -# Scratchpad -bindsym $mod+Shift+minus move scratchpad -bindsym $mod+minus scratchpad show - -# Screenshot -bindsym Print exec /usr/share/sway/scripts/grimshot copy area -bindsym Print+Control exec /usr/share/sway/scripts/grimshot --notify save area -bindsym $mod+Shift+equal exec /usr/share/sway/scripts/grimshot --notify copy area -bindsym $mod+Control+equal exec /usr/share/sway/scripts/grimshot --notify save area - -# Audio -bindsym $mod+bracketleft exec pactl set-sink-volume @DEFAULT_SINK@ -5% -bindsym $mod+bracketright exec pactl set-sink-volume @DEFAULT_SINK@ +5% -bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle -bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% -bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% - -# Playback -bindsym XF86AudioPrev exec playerctl previous -bindsym XF86AudioNext exec playerctl next -bindsym XF86AudioPlay exec playerctl play-pause - -# Brightness -bindsym XF86MonBrightnessDown exec brightnessctl set 5- -bindsym XF86MonBrightnessUp exec brightnessctl set +5 - -mode "resize" { - bindsym $left resize shrink width 10px - bindsym $down resize grow height 10px - bindsym $up resize shrink height 10px - bindsym $right resize grow width 10px - - bindsym Left resize shrink width 10px - bindsym Down resize grow height 10px - bindsym Up resize shrink height 10px - bindsym Right resize grow width 10px - - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym $mod+r mode "default" -} -bindsym $mod+r mode "resize" - -# Start notification daemon -exec mako - -# Make sure env vars are imported into D-Bus -exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway - -# Swayidle -exec swayidle -w \ - timeout 300 "notify-send 'Power' 'System will suspend very soon due to inactivity.'" \ - timeout 310 "swaylock" \ - timeout 313 "swaymsg 'output * power off'" resume "swaymsg 'output * power on'" \ - before-sleep "swaylock" - -exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 - -exec aa-notify -p -s 1 -w 60 -f /var/log/audit/audit.log - -# Chromium hotkey fix -for_window [app_id="^chrome-.*-.*$"] shortcuts_inhibitor disable - -############ -# Waybar # -############ - -bar { - swaybar_command waybar -} - -include @sysconfdir@/sway/config.d/* |
