Add sway config and other Wayland-related stuff

This commit is contained in:
Lexi / Zoe 2026-05-13 13:49:07 +02:00
parent 2ef36eb976
commit ecd2f63c92
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
18 changed files with 664 additions and 0 deletions

View file

@ -0,0 +1,43 @@
# Define launch keybindings and rules for automatically assigning windows to specific
# workspaces/outputs to make them floating by default, etc.
# LAUNCH KEYBINDINGS
# ~~~~~~~~~~~~~~~~~~
# Password manager
bindsym $mod+p exec passrofi
# Pavucontrol
bindsym $mod+Mod1+p exec pavucontrol
# Screenshot tool (Mod1 is Alt)
# (Uses our custom screenshot tool ~/bin/wlscreenshot.)
bindsym Print exec wlscreenshot screen
bindsym Mod1+Print exec wlscreenshot window
# Quick screenshots (saved directly without editing)
bindsym Ctrl+Print exec wlscreenshot --quick screen
bindsym Ctrl+Mod1+Print exec wlscreenshot --quick window
# Open file browser
# TODO: A keybinding to open a file browser in floating mode would be good. THis doesn't work
# with Nemo because it always runs in a shared process, so using "--name=" only works for the
# first window and is applied to all other windows as well. Maybe a different file browser?)
# TODO: Keybind? n, b, o?
bindsym $mod+n exec nemo
# Emoji selector
bindsym $mod+m exec rofi -show emoji
# WINDOW RULES
# ~~~~~~~~~~~~
# Floating terminal windows (depends on terminal emulator)
for_window [app_id="^(kitty|sakura)-floating$"] floating enable
# Pavucontrol: Always floating
for_window [app_id="^org.pulseaudio.pavucontrol$"] floating enable
# Flameshot: Always floating
for_window [app_id="^flameshot$"] floating enable, fullscreen disable