config 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. ######
  2. # font
  3. font pango:Ubuntu 12
  4. ##########
  5. # wallaper
  6. output * bg /home/headlesschook/Pictures/Wallpapers/crow.png fill
  7. default_border pixel 2
  8. default_floating_border pixel 0
  9. gaps inner 10
  10. ###########
  11. # Variables
  12. set $mod Mod4
  13. set $term foot
  14. set $menu dmenu_path | dmenu | xargs swaymsg exec --
  15. set $ws1 "1: browser"
  16. set $ws2 "2: terminal"
  17. set $ws3 "3: gimp"
  18. set $ws4 "4: blender"
  19. set $ws5 "5: programing"
  20. set $ws6 "6:"
  21. set $ws7 "7:"
  22. set $ws8 "8:"
  23. set $ws9 "9:"
  24. set $ws10 "10: gaming"
  25. set $dark_grey #2f343f
  26. set $dark_grey_trans #2f3440f2
  27. set $light_grey #525762
  28. set $dark_red #492525
  29. set $light_blue #5294e2
  30. set $white #afb8c5
  31. set $none #000000
  32. set $LOCATION "/home/headlesschook/Pictures/Screenshots/"
  33. set $filename $(date '+screenshot-%d-%m-%Y-%H:%M:%S.png')
  34. ##############
  35. # Key bindings
  36. input type:keyboard xkb_numlock enabled
  37. bindsym $mod+Return exec $term
  38. bindsym $mod+Shift+q kill
  39. bindsym $mod+d exec $menu
  40. bindsym $mod+e exec pcmanfm
  41. bindsym Print exec grim $LOCATION$filename
  42. bindsym Control+Print exec grim $LOCATION$filename && gimp $LOCATION$(ls -t $LOCATION | head -1)
  43. bindsym Alt+Print exec grim -g "$(slurp)" $LOCATION$filename
  44. floating_modifier $mod normal
  45. bindsym $mod+Shift+c reload
  46. 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'
  47. bindsym $mod+h splith
  48. bindsym $mod+v splitv
  49. #bindsym $mod+s layout stacking
  50. #bindsym $mod+w layout tabbed
  51. #bindsym $mod+n layout toggle split
  52. bindsym $mod+f fullscreen
  53. bindsym $mod+Shift+space floating toggle
  54. bindsym $mod+space focus mode_toggle
  55. bindsym $mod+a focus parent
  56. bindsym $mod+Shift+minus move scratchpad
  57. bindsym $mod+minus scratchpad show
  58. # Move focus
  59. bindsym $mod+Left focus left
  60. bindsym $mod+Down focus down
  61. bindsym $mod+Up focus up
  62. bindsym $mod+Right focus right
  63. # Move window
  64. bindsym $mod+Shift+Left move left
  65. bindsym $mod+Shift+Down move down
  66. bindsym $mod+Shift+Up move up
  67. bindsym $mod+Shift+Right move right
  68. # Switch to workspace
  69. bindsym $mod+1 workspace number $ws1
  70. bindsym $mod+2 workspace number $ws2
  71. bindsym $mod+3 workspace number $ws3
  72. bindsym $mod+4 workspace number $ws4
  73. bindsym $mod+5 workspace number $ws5
  74. bindsym $mod+6 workspace number $ws6
  75. bindsym $mod+7 workspace number $ws7
  76. bindsym $mod+8 workspace number $ws8
  77. bindsym $mod+9 workspace number $ws9
  78. bindsym $mod+0 workspace number $ws10
  79. bindcode $mod+87 workspace number $ws1
  80. bindcode $mod+88 workspace number $ws2
  81. bindcode $mod+89 workspace number $ws3
  82. bindcode $mod+83 workspace number $ws4
  83. bindcode $mod+84 workspace number $ws5
  84. bindcode $mod+85 workspace number $ws6
  85. bindcode $mod+79 workspace number $ws7
  86. bindcode $mod+80 workspace number $ws8
  87. bindcode $mod+81 workspace number $ws9
  88. bindcode $mod+90 workspace number $ws10
  89. # Move focused container to workspace
  90. bindsym $mod+Shift+1 move container to workspace number $ws1
  91. bindsym $mod+Shift+2 move container to workspace number $ws2
  92. bindsym $mod+Shift+3 move container to workspace number $ws3
  93. bindsym $mod+Shift+4 move container to workspace number $ws4
  94. bindsym $mod+Shift+5 move container to workspace number $ws5
  95. bindsym $mod+Shift+6 move container to workspace number $ws6
  96. bindsym $mod+Shift+7 move container to workspace number $ws7
  97. bindsym $mod+Shift+8 move container to workspace number $ws8
  98. bindsym $mod+Shift+9 move container to workspace number $ws9
  99. bindsym $mod+Shift+0 move container to workspace number $ws10
  100. bindcode $mod+Shift+87 move container to workspace number $ws1
  101. bindcode $mod+Shift+88 move container to workspace number $ws2
  102. bindcode $mod+Shift+89 move container to workspace number $ws3
  103. bindcode $mod+Shift+83 move container to workspace number $ws4
  104. bindcode $mod+Shift+84 move container to workspace number $ws5
  105. bindcode $mod+Shift+85 move container to workspace number $ws6
  106. bindcode $mod+Shift+79 move container to workspace number $ws7
  107. bindcode $mod+Shift+80 move container to workspace number $ws8
  108. bindcode $mod+Shift+81 move container to workspace number $ws9
  109. bindcode $mod+Shift+90 move container to workspace number $ws10
  110. # Resize bindings
  111. mode "resize" {
  112. bindsym Left resize shrink width 10px
  113. bindsym Down resize grow height 10px
  114. bindsym Up resize shrink height 10px
  115. bindsym Right resize grow width 10px
  116. bindsym Return mode "default"
  117. bindsym Escape mode "default"
  118. }
  119. bindsym $mod+r mode "resize"
  120. ### window colors
  121. # title border window border text indicator
  122. client.focused $dark_grey $light_grey $white $light_blue
  123. client.unfocused $light_grey $dark_grey $white $dark_grey
  124. client.focused_inactive $light_grey $dark_grey $white $dark_grey
  125. client.urgent $dark_red $dark_red $white $none
  126. ### Status Bar:
  127. #
  128. set $bg-color #2f343f
  129. set $inactive-bg-color #2f343f
  130. set $text-color #f3f4f5
  131. set $inactive-text-color #676E7D
  132. set $urgent-bg-color #E53935
  133. ### window colors
  134. # title border window border text indicator
  135. client.focused $dark_grey $light_grey $white $light_blue
  136. client.unfocused $light_grey $dark_grey $white $dark_grey
  137. client.focused_inactive $light_grey $dark_grey $white $dark_grey
  138. client.urgent $dark_red $dark_red $white $none
  139. ### bar
  140. #
  141. bar {
  142. position top
  143. status_command while date +'%Y-%m-%d %H:%M '; do sleep 1; done
  144. colors {
  145. background $bg-color
  146. separator #757575
  147. # border background text
  148. focused_workspace $bg-color $bg-color $text-color
  149. inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
  150. urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
  151. }
  152. }
  153. ### Custom window properties
  154. #
  155. for_window [instance="Godot_Editor"] floating enable
  156. for_window [instance="Godot_Engine"] floating enable
  157. for_window [instance="Godot_ProjectList"] floating enable
  158. for_window [app_id="mpv"] floating enable
  159. for_window [instance="viewnior"] floating enable
  160. assign [class="firefox"] $ws2
  161. assign [class="Gimp"] $ws3
  162. assign [app_id="blender"] $ws4
  163. assign [class="Steam"] $ws10
  164. #output DP-1 resolution 1920x1080
  165. include /etc/sway/config.d/*