diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2023-01-13 13:46:51 +0000 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2023-01-13 13:46:51 +0000 |
| commit | 921cc1b7466f504b4521450cf7d2adac4e6c5c93 (patch) | |
| tree | e3ba4a37e145b941ef182a9a92456e3333996954 /sway/config | |
| parent | 8bf69148fbb8ac98bf21e1bbd87021aa8f5291cc (diff) | |
Add new configs
Diffstat (limited to 'sway/config')
| -rw-r--r-- | sway/config | 179 |
1 files changed, 179 insertions, 0 deletions
diff --git a/sway/config b/sway/config new file mode 100644 index 0000000..52926f6 --- /dev/null +++ b/sway/config @@ -0,0 +1,179 @@ +############# +# Varaibles # +############# + +set $mod Mod4 +set $left h +set $down j +set $up k +set $right l +set $term alacritty +set $menu rofi -font "Iosevka Term 12" -show combi | xargs swaymsg exec + +# Colours +set $cl_high #4d4d4d +set $cl_indi #d9d8d8 +set $cl_back #1c1c1c +set $cl_fore #ffffff +set $cl_urge #ee2e24 + +# Output names +set $monitor1 DP-1 +set $monitor2 HDMI-A-1 + +############# +# Display # +############# + +font pango:Iosevka Term 11 + +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 + +############ +# Inputs # +############ + +input type:keyboard { + xkb_layout "gb" + repeat_delay 300 + repeat_rate 30 +} + +input type:pointer { + pointer_accel -0.7 +} + +############## +# 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 + +############## +# Keybinds # +############## + +bindsym $mod+Return exec $term +bindsym $mod+d exec $menu +bindsym $mod+Shift+q kill +bindsym $mod+Shift+c reload +bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' + +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 + +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 + +############ +# Waybar # +############ + +bar { + swaybar_command waybar +} + +include @sysconfdir@/sway/config.d/* |
