dotfiles/sway/.config/sway/config.d/behavior

54 lines
1.6 KiB
Plaintext

###############################
# #
# BEHAVIOR #
# #
###############################
# Start IVPN service
exec doas ivpn-service # replace with doas with sudo if you don't have doas
# Make xdg-desktop-portal-wlr work properly
exec dbus-update-activation-environment WAYLAND_DISPLAY
# Application autostart
exec mako
exec pipewire
exec pipewire-pulse
exec wireplumber
exec ~/.config/sway/autostart.sh
# Window focus doesn't follow mouse
focus_follows_mouse no
# Mouse doesn't move to workspace on workspace change
mouse_warping none
# Automatic back-and-forth when switching to the current workspace
workspace_auto_back_and_forth yes
# Workspace 10 always on second monitor (I use this for Spotify, feel free to change)
workspace 10 output "DP-2"
### APPLICATION SPECIFIC ###
# Config for sway-launcher-desktop
for_window [app_id="^launcher$"] floating enable, resize set 30 ppt 60 ppt, border pixel 4
# Floating window for KeePassXC-Browser popup
for_window [title="^Unlock Database - KeePassXC$"] floating enable, resize set 40 ppt 55 ppt,
# Nextcloud main status window (when clicking on tray icon)
for_window [title="^Nextcloud$"] floating enable, border none,
# NoScript pop-ups in Tor Browser
for_window [title="about:blank - - Tor Browser"] floating enable,
# About Tor Browser window
for_window [title="^About Tor Browser$"] floating enable,
# Browser screenshare dialog
for_window [title="is sharing your screen."] border none,
# ProtonMail Bridge
for_window [app_id="proton-bridge"] border none,