Files
2026-07-30 01:38:31 +08:00

131 lines
3.4 KiB
Plaintext

include /etc/sway/config.d/*
### Variables
set $mod Mod4
set $left h
set $down j
set $up k
set $right l
set $term alacritty
set $ipc qs -c noctalia-shell ipc call
set $b00 #141415
set $b01 #1c1c24
set $b02 #2f2f3d
set $b03 #333738
set $b04 #c3c3d5
set $b05 #cdcdcd
set $red #d8647e
set $yellow #f3be7c
set $hint #7e98e8
set $float #878787
font Hack Nerd Font 10
default_border pixel 3
default_floating_border pixel 3
smart_borders no_gaps
gaps inner 0
gaps outer 0
client.focused $hint $b02 $b05 $hint
client.focused_inactive $b01 $b01 $b04 $b01
client.unfocused $b01 $b01 $b03 $b01
client.urgent $red $red $b05 $red
client.placeholder $b01 $b01 $b04 $b01
client.background $b00
for_window [floating] border pixel 2
output * bg #000000 solid_color
input type:keyboard {
xkb_layout us
}
output HDMI-A-1 resolution 2560x1440 pos 0 0
output * adaptive_sync on
workspace 1 output HDMI-A-1
workspace_auto_back_and_forth yes
### Key bindings
bindsym $mod+Return exec $term
bindsym $mod+q kill
bindsym $mod+Space exec $ipc launcher toggle
bindsym $mod+c exec $ipc controlCenter toggle
bindsym $mod+s exec $ipc settings toggle
bindsym $mod+Shift+c reload
bindsym $mod+Shift+e exec swaymsg exit
bindsym $mod+Tab workspace back_and_forth
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus 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
set $ws1 "1:main"
set $ws2 "2:aux"
set $ws3 "3:media"
assign [class="^[Ss]team$"] workspace $ws2
assign [instance="steam"] workspace $ws2
assign [class="^steam_app_.*"] workspace $ws2
assign [app_id="discord"] workspace $ws3
assign [class="discord"] workspace $ws3
assign [class="Spotify"] workspace $ws3
assign [app_id="spotify"] workspace $ws3
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
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
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
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
bindsym $mod+b splith
bindsym $mod+v splitv
bindsym $mod+equal fullscreen
bindsym $mod+Shift+f floating toggle
bindsym $mod+f focus mode_toggle
bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show
bindsym --locked XF86AudioRaiseVolume exec $ipc volume increase
bindsym --locked XF86AudioLowerVolume exec $ipc volume decrease
bindsym --locked XF86AudioMute exec $ipc volume muteOutput
bindsym --locked XF86MonBrightnessUp exec $ipc brightness increase
bindsym --locked XF86MonBrightnessDown exec $ipc brightness decrease
bindsym $mod+Shift+p exec grim -g "$(slurp)" - | wl-copy
bindsym $mod+p exec grim - | wl-copy
exec_always qs -c noctalia-shell