Advertisement
Guest User

Sway Config

a guest
Jun 30th, 2023
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. include "$HOME/.cache/wal/colors-sway"
  2. include "/etc/sway/config.d/*"
  3.  
  4. set $output_left DP-3
  5. set $output_center HDML-A-1
  6. set $output_right DP-2
  7.  
  8. set $wallpaper ~/Pictures/Wallpaper/rosepine-wallpapers/rose_pine_contourline.png
  9.  
  10. output DP-3 pos 0 0 res 1600x1200
  11. output HDMI-A-1 pos 1600 0 res 1920x1080
  12. output DP-2 pos 3520 0 res 1600x1200
  13. output * bg $wallpaper fill
  14.  
  15. focus output $output_center
  16.  
  17. # Mod1 for Alt
  18. set $mod Mod4
  19. # set $menu wofi -S drun -s ~/.config/wofi/tokio_moon.css -W 60% -H 60%
  20. set $menu rofi -show drun
  21. # set $term flatpak run org.wezfurlong.wezterm
  22. set $term kitty
  23. set $browser firefox
  24. set $notes appflowy
  25. floating_modifier $mod
  26.  
  27. input "type:pointer" {
  28. natural_scroll enabled
  29. accel_profile "flat"
  30. }
  31.  
  32. input "type:keyboard" {
  33. xkb_layout us
  34. xkb_options caps:ctrl_modifier,compose:ralt
  35. }
  36.  
  37. bindsym $mod+q exec ~/.bin/shutdownpls --wallpaper $wallpaper
  38. bindsym $mod+Shift+c reload
  39. bindsym $mod+Shift+r restart
  40. bindsym $mod+Shift+q exit
  41. bindsym $mod+Shift+End exec swaylock -i $wallpaper
  42. bindsym $mod+Shift+Escape exec swaylock -f -i $wallpaper && systemctl suspend
  43. bindsym $mod+Shift+Ctrl+s exec systemctl poweroff
  44. bindsym $mod+Shift+Ctrl+r exec systemctl reboot
  45.  
  46. bindsym $mod+x kill
  47. bindsym $mod+Return exec $term
  48. bindsym $mod+d exec $menu
  49. bindsym $mod+b exec $browser
  50. bindsym $mod+n exec $notes
  51.  
  52. bindsym $mod+h focus left
  53. bindsym $mod+l focus right
  54. bindsym $mod+j focus down
  55. bindsym $mod+k focus up
  56.  
  57. bindsym $mod+Shift+h move left
  58. bindsym $mod+Shift+l move right
  59. bindsym $mod+Shift+j move down
  60. bindsym $mod+Shift+k move up
  61.  
  62. bindsym $mod+Space floating toggle
  63. bindsym $mod+f fullscreen toggle
  64. mode "resize" {
  65. bindsym h resize shrink width 10px
  66. bindsym l resize grow width 10px
  67. bindsym k resize shrink height 10px
  68. bindsym j resize grow height 10px
  69.  
  70. bindsym Return mode "default"
  71. bindsym Escape mode "default"
  72. }
  73. bindsym $mod+r mode "resize"
  74.  
  75. workspace_layout default
  76.  
  77. workspace 1 output $output_left
  78. workspace 2 output $output_center
  79. workspace 3 output $output_right
  80.  
  81. bindsym $mod+1 workspace number 1
  82. bindsym $mod+2 workspace number 2
  83. bindsym $mod+3 workspace number 3
  84. bindsym $mod+4 workspace number 4
  85. bindsym $mod+5 workspace number 5
  86. bindsym $mod+6 workspace number 6
  87. bindsym $mod+7 workspace number 7
  88. bindsym $mod+8 workspace number 8
  89. bindsym $mod+9 workspace number 9
  90. bindsym $mod+0 workspace number 0
  91.  
  92. bindsym $mod+Shift+1 move container to workspace number 1
  93. bindsym $mod+Shift+2 move container to workspace number 2
  94. bindsym $mod+Shift+3 move container to workspace number 3
  95. bindsym $mod+Shift+4 move container to workspace number 4
  96. bindsym $mod+Shift+5 move container to workspace number 5
  97. bindsym $mod+Shift+6 move container to workspace number 6
  98. bindsym $mod+Shift+7 move container to workspace number 7
  99. bindsym $mod+Shift+8 move container to workspace number 8
  100. bindsym $mod+Shift+9 move container to workspace number 9
  101. bindsym $mod+Shift+0 move container to workspace number 0
  102.  
  103. for_window [title="shutdownpls"] floating enable
  104.  
  105. font pango:MononokiNerdFont Regular 11
  106.  
  107. blur enable
  108. blur_passes 2
  109. blur_radius 2
  110. corner_radius 15
  111.  
  112. gaps inner 18
  113. default_border normal 3
  114. client.focused $color0 $background $foreground $background $background
  115. client.urgent $color0 $color1 $color0 $background $background
  116.  
  117. bar {
  118. swaybar_command waybar
  119. }
  120.  
  121. exec swayidle -w \
  122. before-sleep 'swaylock -f -b -c 000000'
  123.  
  124. exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP
  125. exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
  126.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement