Advertisement
Guest User

Untitled

a guest
Mar 7th, 2025
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.22 KB | None | 0 0
  1. # Default config for sway
  2. #
  3. # Copy this to ~/.config/sway/config and edit it to your liking.
  4. #
  5. # Read `man 5 sway` for a complete reference.
  6. #exec xinput --set-prop 7 "Device Accel Velocity Scaling" 0
  7. #exec xinput --set-prop 7 "Device Accel Profile" -1
  8.  
  9. for_window [class=“*”] allow_tearing yes
  10.  
  11. #capelations
  12. #exec capela &
  13.  
  14. #tmux. split -h pra botar na horizontal e split -v na vertical
  15. #tmux new "btop -t" ';' split -v "htop" ';' split -h "cmatrix"
  16.  
  17. #btop "embutido" no sistema
  18. #exec swaymsg "workspace monitoramento; exec foot -F -f monospace:size=15 btop -t;" &
  19. #exec swaymsg "workspace sistema;" &
  20.  
  21. #exec xinput --set-prop 7 "Device Accel Adaptive Deceleration" 4
  22. #exec xinput --set-prop 7 "Device Accel Constant Deceleration" 4
  23. #exec xinput --set-prop 6 'libinput Accel Profile Enabled' 0, 1 &
  24. #exec firejail --noprofile mpv --no-keepaspect --vo=gpu ~/mpv/preilisti.m3u &
  25. #exec foot -F -f monospace:size=15 tmux new genact -m cc \; splitw -h genact -m download \; splitw -v genact -m cryptomining \; splitw -v genact -m memdump -s 0.10
  26. #exec foot -f monospace:15 ytop -s &
  27. input type:keyboard {
  28. xkb_layout "br"
  29. xkb_model "abtn2"
  30. xkb_options "nodeadkeys"
  31. }
  32.  
  33. input type:pointer {
  34. accel_profile "flat"
  35. pointer_accel 0
  36. }
  37.  
  38. #for_window [app_id="foot"] border none
  39. #for_window [app_id="foot"] floating enable
  40. font pango: Taskbar, Liberation-bold 9
  41. #mouse_warping none
  42. #focus_follows_mouse no
  43. # Color scheme (Gruvbox dark)
  44. set $color_normal_white #a89984
  45. set $color_bright_white #ebdbb2
  46. set $color_normal_gray #3c3836
  47. set $color_bright_gray #0000ff
  48. set $color_bright_yellow #d79921
  49. set $color_normal_black #1d2021
  50. set $color_unused #ff0000
  51.  
  52. # Colors border background text indicator child_border
  53. client.focused $color_bright_gray $color_bright_gray $color_bright_white $color_bright_gray $color_normal_black
  54. client.focused_inactive $color_bright_gray $color_bright_gray $color_bright_white $color_bright_gray $color_normal_black
  55. client.unfocused $color_normal_gray $color_normal_gray $color_normal_white $color_normal_gray $color_normal_black
  56. client.urgent $color_bright_yellow $color_bright_yellow $color_normal_black $color_unused $color_unused
  57. client.placeholder $color_unused $color_unused $color_unused $color_unused $color_unused
  58.  
  59.  
  60. # Logo key. Use Mod1 for Alt.
  61. set $mod2 Mod1
  62.  
  63. bindsym Menu+Return exec "foot -F -f monospace:size=15"
  64. bindsym $mod2+q exec "/sbin/poweroff"
  65. bindsym Menu+Control_R exec "brave-browser"
  66. bindsym Menu+Shift_R exec pcmanfm
  67. bindsym Menu+Down exec 'pkill mpv'
  68. bindsym Menu+Up exec 'mpv --no-video https://www.youtube.com/playlist?list=PLjn8M2LjejNSNzb4-9wHXJnvDLikiTT_z --loop-playlist=yes --shuffle'
  69. bindsym Menu+slash exec "foot -F -f monospace:size=15 tmux new 'btop -t' ';' split -h -l 5 'mop'"
  70. #bindsym KP_Right exec pcmanfm
  71. bindsym Print exec grim
  72. default_border none
  73.  
  74. #for_window [app_id="foot"] floating enable
  75.  
  76. ### Variables
  77. #
  78. # Home row direction keys, like vim
  79. set $left h
  80. set $down j
  81. set $up k
  82. set $right l
  83. # Your preferred terminal emulator
  84. set $term st
  85. set $cabo doas poweroff
  86. # Your preferred application launcher
  87. # Note: pass the final command to swaymsg so that the resulting window can be opened
  88. # on the original workspace that the command was run on.
  89. set $menu dmenu_path | dmenu | xargs swaymsg exec --
  90.  
  91. ### Output configuration
  92. #
  93. # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
  94. #
  95. # Example configuration:
  96. #
  97. #output * bg #008080 solid_color
  98. output HDMI-A-1 resolution 800x600@50Hz position 0,0
  99. #output HDMI-A-1 resolution 1280x720@50Hz position 0,0
  100. #output HDMI-A-1 resolution 1920x1080 position 0,0 max_render_time off
  101. output HDMI-A-1 bg #008080 solid_color
  102. #
  103. # You can get the names of your outputs by running: swaymsg -t get_outputs
  104.  
  105. ### Idle configuration
  106. #
  107. # Example configuration:
  108. #
  109. # exec swayidle -w \
  110. # timeout 300 'swaylock -f -c 000000' \
  111. # timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
  112. # before-sleep 'swaylock -f -c 000000'
  113. #
  114. # This will lock your screen after 300 seconds of inactivity, then turn off
  115. # your displays after another 300 seconds, and turn your screens back on when
  116. # resumed. It will also lock your screen before your computer goes to sleep.
  117.  
  118. ### Input configuration
  119. #
  120. # Example configuration:
  121. #
  122. # input "2:14:SynPS/2_Synaptics_TouchPad" {
  123. # dwt enabled
  124. # tap enabled
  125. # natural_scroll enabled
  126. # middle_emulation enabled
  127. # }
  128. #
  129. # You can get the names of your inputs by running: swaymsg -t get_inputs
  130. # Read `man 5 sway-input` for more information about this section.
  131.  
  132. ### Key bindings
  133. #
  134. # Basics:
  135. #
  136. # Start a terminal
  137. bindsym Mod4+Return exec $term
  138.  
  139. # Kill focused window
  140. bindsym $mod2+F4 kill
  141. # bindsym $mod2+q exec $cabo
  142. # Start your launcher
  143. bindsym $mod2+p exec bemenu-run
  144.  
  145. # Drag floating windows by holding down $mod2 and left mouse button.
  146. # Resize them with right mouse button + $mod2.
  147. # Despite the name, also works for non-floating windows.
  148. # Change normal to inverse to use left mouse button for resizing and right
  149. # mouse button for dragging.
  150. floating_modifier $mod2 normal
  151.  
  152. # Reload the configuration file
  153. bindsym $mod2+Shift+c reload
  154.  
  155. # Exit sway (logs you out of your Wayland session)
  156. bindsym $mod2+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'
  157. #
  158. # Moving around:
  159. #
  160. # Move your focus around
  161. bindsym $mod2+$left focus left
  162. bindsym $mod2+$down focus down
  163. bindsym $mod2+$up focus up
  164. bindsym $mod2+$right focus right
  165. # Or use $mod2+[up|down|left|right]
  166. bindsym $mod2+Left focus left
  167. bindsym $mod2+Down focus down
  168. bindsym $mod2+Up focus up
  169. bindsym $mod2+Right focus right
  170.  
  171. # Move the focused window with the same, but add Shift
  172. bindsym $mod2+Shift+$left move left
  173. bindsym $mod2+Shift+$down move down
  174. bindsym $mod2+Shift+$up move up
  175. bindsym $mod2+Shift+$right move right
  176. # Ditto, with arrow keys
  177. bindsym $mod2+Shift+Left move left
  178. bindsym $mod2+Shift+Down move down
  179. bindsym $mod2+Shift+Up move up
  180. bindsym $mod2+Shift+Right move right
  181. bindsym $mod2+Shift+a exec wterm
  182. bindsym $mod2+Shift+z exec bemenu
  183. #
  184. # Workspaces:
  185. #
  186. # Switch to workspace
  187. bindsym $mod2+1 workspace sistema
  188. bindsym $mod2+2 workspace monitoramento
  189. bindsym $mod2+3 workspace number 3
  190. bindsym $mod2+4 workspace number 4
  191. bindsym $mod2+5 workspace number 5
  192. bindsym $mod2+6 workspace number 6
  193. bindsym $mod2+7 workspace number 7
  194. bindsym $mod2+8 workspace number 8
  195. bindsym $mod2+9 workspace number 9
  196. bindsym $mod2+0 workspace number 10
  197. # Move focused container to workspace
  198. bindsym $mod2+Shift+1 move container to workspace number 1
  199. bindsym $mod2+Shift+2 move container to workspace number 2
  200. bindsym $mod2+Shift+3 move container to workspace number 3
  201. bindsym $mod2+Shift+4 move container to workspace number 4
  202. bindsym $mod2+Shift+5 move container to workspace number 5
  203. bindsym $mod2+Shift+6 move container to workspace number 6
  204. bindsym $mod2+Shift+7 move container to workspace number 7
  205. bindsym $mod2+Shift+8 move container to workspace number 8
  206. bindsym $mod2+Shift+9 move container to workspace number 9
  207. bindsym $mod2+Shift+0 move container to workspace number 10
  208. # Note: workspaces can have any name you want, not just numbers.
  209. # We just use 1-10 as the default.
  210. #
  211. # Layout stuff:
  212. #
  213. # You can "split" the current object of your focus with
  214. # $mod2+b or $mod2+v, for horizontal and vertical splits
  215. # respectively.
  216. bindsym $mod2+b splith
  217. bindsym $mod2+v splitv
  218.  
  219. # Switch the current container between different layout styles
  220. bindsym $mod2+s layout stacking
  221. bindsym $mod2+w layout tabbed
  222. bindsym $mod2+e layout toggle split
  223.  
  224. # Make the current focus fullscreen
  225. bindsym $mod2+Return fullscreen
  226.  
  227. # Toggle the current focus between tiling and floating mode
  228. bindsym $mod2+Shift+space floating toggle
  229.  
  230. # Swap focus between the tiling area and the floating area
  231. bindsym $mod2+space focus mode_toggle
  232.  
  233. # Move focus to the parent container
  234. bindsym $mod2+a focus parent
  235. #
  236. # Scratchpad:
  237. #
  238. # Sway has a "scratchpad", which is a bag of holding for windows.
  239. # You can send windows there and get them back later.
  240.  
  241. # Move the currently focused window to the scratchpad
  242. bindsym $mod2+Shift+minus move scratchpad
  243.  
  244. # Show the next scratchpad window or hide the focused scratchpad window.
  245. # If there are multiple scratchpad windows, this command cycles through them.
  246. bindsym $mod2+minus scratchpad show
  247. #
  248. # Resizing containers:
  249. #
  250. mode "resize" {
  251. # left will shrink the containers width
  252. # right will grow the containers width
  253. # up will shrink the containers height
  254. # down will grow the containers height
  255. bindsym $left resize shrink width 10px
  256. bindsym $down resize grow height 10px
  257. bindsym $up resize shrink height 10px
  258. bindsym $right resize grow width 10px
  259.  
  260. # Ditto, with arrow keys
  261. bindsym Left resize shrink width 10px
  262. bindsym Down resize grow height 10px
  263. bindsym Up resize shrink height 10px
  264. bindsym Right resize grow width 10px
  265.  
  266. # Return to default mode
  267. bindsym Return mode "default"
  268. bindsym Escape mode "default"
  269. }
  270. bindsym $mod2+r mode "resize"
  271.  
  272. #
  273. # Status Bar:
  274. #
  275. # Read `man 5 sway-bar` for more information about this section.
  276. bar {
  277. position bottom
  278. mode hide
  279. modifier $mod2
  280. # When the status_command prints a new line to stdout, swaybar updates.
  281. # The default just shows the current date and time.
  282. status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done
  283.  
  284. colors {
  285. statusline #ffffff
  286. background #BEBEBE
  287. inactive_workspace #32323200 #32323200 #5c5c5c
  288. }
  289. }
  290.  
  291. include /etc/sway/config.d/*
  292.  
  293.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement