Added input device options and window rules.

This commit is contained in:
Sheldon Lee 2022-09-07 18:21:39 +08:00
parent 604970e48d
commit 855d6ce702

View File

@ -91,6 +91,15 @@ exec swayidle -w \
#
input 1133:50503:Logitech_USB_Receiver accel_profile flat
input 1133:16500:Logitech_G304 accel_profile flat
input 1133:16521:Logitech_K580 {
xkb_layout us
xkb_variant colemak
}
input 1204:4621:Majestouch_Convertible_2 {
xkb_layout us
xkb_variant colemak
}
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
@ -305,7 +314,6 @@ bindsym $mod+Control+h gaps horizontal current plus 200
bindsym $mod+Control+l gaps horizontal current minus 200
bindsym $mod+shift+f gaps horizontal current toggle 400
gaps inner 5
smart_gaps inverse_outer
default_border pixel 3
@ -313,13 +321,14 @@ default_border pixel 3
#
# Startup programs:
#
#exec wayland-run-on-new-display set-correct-monitor 390+1080
exec wayland-run-on-new-display set-correct-monitor 390+1080
exec gentoo-pipewire-launcher
exec dunst
exec wlsunset -l 22.4 -L 114.1
exec alacritty
exec firefox
exec discord-ff
exec webcord-bin
exec signal-desktop
#
@ -329,11 +338,15 @@ exec signal-desktop
assign [app_id="firefox"] workspace 2:r
assign [app_id="Discord Firefox"] workspace 3:s
for_window [title="^Discord — Mozilla Firefox$"] fullscreen disable
assign [class="WebCord"] workspace 3:s
assign [class="Signal"] workspace 3:s
assign [class="Steam"] workspace 4:t
# Space Games, as joystick usage without mouse and keyboard count as idle.
for_window [class="steam_app_359320"] inhibit_idle focus
for_window [class="starcitizen.exe"] inhibit_idle focus
# Inhibit idle on focus
for_window [class="WebCord"] inhibit_idle focus
for_window [app_id="org.jellyfin.jellyfinmediaplayer"] inhibit_idle focus
# Floating windows
for_window [title="^Firefox — Sharing Indicator$"] floating enable, move position 50ppt 0px;
for_window [class="^Steam$"] floating enable