Add autotiling to xmonad

This commit is contained in:
pancakes 2023-10-01 11:03:09 +10:00
parent fe8e7c68a0
commit 7e959e03a5
2 changed files with 19 additions and 31 deletions

View file

@ -36,8 +36,9 @@ sudo cp ./greetd.toml /etc/greetd/config.toml
sudo systemctl enable greetd
# Window Manager
sudo pacman -S --needed --noconfirm brightnessctl fuzzel gammastep grim kanshi mako network-manager-applet slurp sway swayidle swaylock waybar xdg-desktop-portal-gtk xdg-desktop-portal-wlr
sudo pacman -S --needed --noconfirm brightnessctl fuzzel gammastep grim kanshi mako network-manager-applet python-i3ipc slurp sway swayidle swaylock waybar xdg-desktop-portal-gtk xdg-desktop-portal-wlr
mkdir -p ~/Pictures/Screenshots
git clone https://github.com/nicolasavru/swaymonad.git ~/.config/swaymonad
# Fonts
sudo pacman -S --needed --noconfirm noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra ttf-firacode-nerd ttf-liberation wqy-zenhei

View file

@ -1,3 +1,6 @@
# Autotiling with xmonad 2col
exec_always "pkill -f 'python3? .+/swaymonad.py'; ~/.config/swaymonad/swaymonad.py"
# Home row direction keys, like vim
set $left h
set $down j
@ -65,20 +68,20 @@ bindsym Mod4+Shift+c reload
bindsym Mod4+Shift+e exec swaymsg exit
# Moving around:
bindsym Mod4+i nop promote_window
# Move your focus around
bindsym Mod4+$left focus left
bindsym Mod4+$down focus down
bindsym Mod4+$up focus up
bindsym Mod4+$right focus right
bindsym Mod4+j nop focus_next_window
bindsym Mod4+k nop focus_prev_window
# Move the focused window with the same, but add Shift
bindsym Mod4+Shift+$left move left
bindsym Mod4+Shift+$down move down
bindsym Mod4+Shift+$up move up
bindsym Mod4+Shift+$right move right
bindsym Mod4+h nop swap_with_prev_window
bindsym Mod4+l nop swap_with_next_window
# Workspaces:
bindsym Mod4+x nop reflectx
bindsym Mod4+y nop reflecty
bindsym Mod4+t nop transpose
bindsym Mod4+Comma nop increment_masters
bindsym Mod4+Period nop decrement_masters
# Switch to workspace
bindsym Mod4+1 workspace number 1
@ -102,10 +105,8 @@ bindsym Mod4+Shift+7 move container to workspace number 7
bindsym Mod4+Shift+8 move container to workspace number 8
bindsym Mod4+Shift+9 move container to workspace number 9
# Layout stuff:
# Make the current focus fullscreen
bindsym Mod4+i fullscreen
bindsym Mod4+Shift+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym Mod4+Shift+space floating toggle
@ -117,22 +118,8 @@ bindsym Mod4+space focus mode_toggle
bindsym Mod4+a focus parent
# Resizing containers:
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym Mod4+r mode "resize"
bindsym Mod4+Shift+h resize shrink width 30px
bindsym Mod4+Shift+l resize grow width 30px
include /etc/sway/config.d/*