feat(sway): add initial sway config

This commit is contained in:
2026-01-22 00:05:30 +01:00
parent 63358a8f89
commit 5091854f84
7 changed files with 289 additions and 0 deletions

11
sway/config.d/00-var.conf Normal file
View File

@@ -0,0 +1,11 @@
set $mod Mod4
# vim style
set $left h
set $down j
set $up k
set $right l
# programs
set $term ghostty
set $menu wofi --show drun -iIG -w 2

View File

@@ -0,0 +1,4 @@
input "type:keyboard" {
repeat_delay 150
repeat_rate 35
}

View File

@@ -0,0 +1,22 @@
# ws2
assign [app_id="google-chrome"] workspace 2
# ws3
assign [app_id="thunderbird"] workspace 3
# ws4
assign [app_id="Cider"] workspace 4
# ws5
assign [class=".*BoltLauncher.*"] workspace 5
assign [class="net-runelite-client-RuneLite"] workspace 5
# ws8
assign [app_id="vesktop"] workspace 8
assign [app_id="Slack"] workspace 8
assign [app_id="org.telegram.desktop"] workspace 8
assign [class="Rocket.Chat"] workspace 8
# i also had these in hyprland
# for_window [class=".*"] fullscreen disable

View File

@@ -0,0 +1,16 @@
bindsym $mod+Return exec $term
bindsym $mod+Shift+q kill
bindsym $mod+d exec $menu
bindsym $mod+Shift+c reload
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
bindsym $mod+Shift+Ctrl+Alt+space exec 1password --quick-access
bindsym $mod+u exec swaylock
bindsym Print exec grim -g "$(slurp -d)" - | wl-copy

View File

@@ -0,0 +1,31 @@
exec $term
exec google-chrome-stable
exec protonmail-bridge -n
exec thunderbird
exec cider-2
exec TZ="Europe/Ljubljana" bolt-launcher
exec vesktop
exec slack
exec Telegram
exec rocketchat-desktop
# for_window [app_id="discord"] mark discord
# for_window [app_id="telegram-desktop"] mark telegram
# for_window [app_id="Slack"] mark slack
# for_window [app_id="rocketchat"] mark rocketchat
#
# workspace 8 layout splith
#
# exec_always {
# swaymsg '[con_mark="discord"] focus'
# swaymsg '[con_mark="telegram"] move right'
# swaymsg '[con_mark="slack"] move right'
# swaymsg '[con_mark="rocketchat"] move right'
# }
exec 1password --silent