notebook.config 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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. ### Variables
  7. #
  8. # Logo key. Use Mod1 for Alt.
  9. set $mod Mod4
  10. # Home row direction keys, like vim
  11. set $left h
  12. set $down j
  13. set $up k
  14. set $right l
  15. # Your preferred terminal emulator
  16. set $term alacritty
  17. # Your preferred web browser
  18. set $browser firefox
  19. # Your preferred application launcher
  20. # Note: it's recommended that you pass the final command to sway
  21. set $menu dmenu_path | bemenu-run --fb '#000000' --ab '#000000' --tb '#000000' --nb '#000000' --tf '#ffffff' --hf '#ffffff' --hb '#2e8b57' --border 1 --bdr '#333333' --line-height 25 --hp 10 --fn 'DejaVu Sans Mono 10' --list 20 --center --no-spacing | xargs swaymsg exec
  22. ### Output configuration
  23. #
  24. # Default wallpaper (more resolutions are available in /gnu/store/npk7022f0c2i9cjidh7133pklh27hqv3-sway-1.0/share/backgrounds/sway/)
  25. # output * bg fill
  26. #
  27. # Example configuration:
  28. #
  29. # output HDMI-A-1 resolution 1920x1080 position 1920,0
  30. #
  31. # You can get the names of your outputs by running: swaymsg -t get_outputs
  32. output * bg #000000 solid_color
  33. ### Idle configuration
  34. #
  35. # Example configuration:
  36. #
  37. # exec swayidle -w \
  38. # timeout 300 'swaylock -f -c 000000' \
  39. # timeout 600 'swaymsg "output * dpms off"' \
  40. # resume 'swaymsg "output * dpms on"' \
  41. # before-sleep 'swaylock -f -c 000000'
  42. #
  43. # This will lock your screen after 300 seconds of inactivity, then turn off
  44. # your displays after another 300 seconds, and turn your screens back on when
  45. # resumed. It will also lock your screen before your computer goes to sleep.
  46. # exec swayidle -w \
  47. # timeout 600 'swaymsg "output * dpms off"' \
  48. # resume 'swaymsg "output * dpms on"'
  49. #
  50. # Clipboard
  51. #
  52. # https://github.com/yory8/clipman
  53. exec wl-paste -t text --watch clipman store
  54. exec wl-paste -p -t text --watch clipman store -P --histpath="~/.local/share/clipman-primary.json"
  55. bindsym $mod+y exec clipman pick -t wofi
  56. ### Input configuration
  57. #
  58. # Example configuration:
  59. #
  60. # input "2:14:SynPS/2_Synaptics_TouchPad" {
  61. # dwt enabled
  62. # tap enabled
  63. # natural_scroll enabled
  64. # middle_emulation enabled
  65. # }
  66. #
  67. # You can get the names of your inputs by running: swaymsg -t get_inputs
  68. # Read `man 5 sway-input` for more information about this section.
  69. ### Key bindings
  70. #
  71. # Basics:
  72. #
  73. # start a terminal
  74. bindsym $mod+Return exec $term
  75. # start a web browser
  76. bindsym $mod+Shift+w exec $browser
  77. bindsym $mod+Shift+m exec looking-glass-client-wrapper
  78. bindsym $mod+Shift+s exec passmenu
  79. bindsym $mod+Shift+v exec virt-manager
  80. # kill focused window
  81. bindsym $mod+Shift+q kill
  82. # start your launcher
  83. bindsym $mod+d exec $menu
  84. # Drag floating windows by holding down $mod and left mouse button.
  85. # Resize them with right mouse button + $mod.
  86. # Despite the name, also works for non-floating windows.
  87. # Change normal to inverse to use left mouse button for resizing and right
  88. # mouse button for dragging.
  89. floating_modifier $mod normal
  90. bindsym button3 kill
  91. # reload the configuration file
  92. bindsym $mod+Shift+c reload
  93. # exit sway (logs you out of your Wayland session)
  94. 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'
  95. #
  96. # Moving around:
  97. #
  98. # Move your focus around
  99. bindsym $mod+$left focus left
  100. bindsym $mod+$down focus down
  101. bindsym $mod+$up focus up
  102. bindsym $mod+$right focus right
  103. # or use $mod+[up|down|left|right]
  104. bindsym $mod+Left focus left
  105. bindsym $mod+Down focus down
  106. bindsym $mod+Up focus up
  107. bindsym $mod+Right focus right
  108. # _move_ the focused window with the same, but add Shift
  109. bindsym $mod+Shift+$left move left
  110. bindsym $mod+Shift+$down move down
  111. bindsym $mod+Shift+$up move up
  112. bindsym $mod+Shift+$right move right
  113. # ditto, with arrow keys
  114. bindsym $mod+Shift+Left move left
  115. bindsym $mod+Shift+Down move down
  116. bindsym $mod+Shift+Up move up
  117. bindsym $mod+Shift+Right move right
  118. #
  119. # Workspaces:
  120. #
  121. # switch to workspace
  122. bindsym $mod+1 workspace 1
  123. bindsym $mod+2 workspace 2
  124. bindsym $mod+3 workspace 3
  125. bindsym $mod+4 workspace 4
  126. bindsym $mod+5 workspace 5
  127. bindsym $mod+6 workspace 6
  128. bindsym $mod+7 workspace 7
  129. bindsym $mod+8 workspace 8
  130. bindsym $mod+9 workspace 9
  131. bindsym $mod+0 workspace 10
  132. # move focused container to workspace
  133. bindsym $mod+Shift+1 move container to workspace 1
  134. bindsym $mod+Shift+2 move container to workspace 2
  135. bindsym $mod+Shift+3 move container to workspace 3
  136. bindsym $mod+Shift+4 move container to workspace 4
  137. bindsym $mod+Shift+5 move container to workspace 5
  138. bindsym $mod+Shift+6 move container to workspace 6
  139. bindsym $mod+Shift+7 move container to workspace 7
  140. bindsym $mod+Shift+8 move container to workspace 8
  141. bindsym $mod+Shift+9 move container to workspace 9
  142. bindsym $mod+Shift+0 move container to workspace 10
  143. # Note: workspaces can have any name you want, not just numbers.
  144. # We just use 1-10 as the default.
  145. #
  146. # Layout stuff:
  147. #
  148. # You can "split" the current object of your focus with
  149. # $mod+b or $mod+v, for horizontal and vertical splits
  150. # respectively.
  151. bindsym $mod+b splith
  152. bindsym $mod+v splitv
  153. # Switch the current container between different layout styles
  154. bindsym $mod+s layout stacking
  155. bindsym $mod+w layout tabbed
  156. bindsym $mod+e layout toggle split
  157. # Make the current focus fullscreen
  158. bindsym $mod+f fullscreen
  159. # Toggle the current focus between tiling and floating mode
  160. bindsym $mod+Shift+t floating toggle
  161. bindsym $mod+Shift+a sticky toggle
  162. # Swap focus between the tiling area and the floating area
  163. # bindsym $mod+space focus mode_toggle
  164. # move focus to the parent container
  165. bindsym $mod+a focus parent
  166. #
  167. # Scratchpad:
  168. #
  169. # Sway has a "scratchpad", which is a bag of holding for windows.
  170. # You can send windows there and get them back later.
  171. # Move the currently focused window to the scratchpad
  172. bindsym $mod+Shift+minus move scratchpad
  173. # Show the next scratchpad window or hide the focused scratchpad window.
  174. # If there are multiple scratchpad windows, this command cycles through them.
  175. bindsym $mod+minus scratchpad show
  176. #
  177. # Volume:
  178. #
  179. bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
  180. bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
  181. bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
  182. #
  183. # Brightness
  184. #
  185. bindsym XF86MonBrightnessUp exec "brightnessctl set +5%"
  186. bindsym XF86MonBrightnessDown exec "brightnessctl set 5%-"
  187. #
  188. # Screenshots:
  189. #
  190. # capture all screens
  191. bindsym Print exec grim -t png
  192. # capture the specified screen area
  193. bindsym Ctrl+Print exec grim -g "$(slurp -d)" -t png
  194. #
  195. # Resizing containers:
  196. #
  197. mode "resize" {
  198. # left will shrink the containers width
  199. # right will grow the containers width
  200. # up will shrink the containers height
  201. # down will grow the containers height
  202. bindsym $left resize shrink width 10px
  203. bindsym $down resize grow height 10px
  204. bindsym $up resize shrink height 10px
  205. bindsym $right resize grow width 10px
  206. # ditto, with arrow keys
  207. bindsym Left resize shrink width 10px
  208. bindsym Down resize grow height 10px
  209. bindsym Up resize shrink height 10px
  210. bindsym Right resize grow width 10px
  211. # return to default mode
  212. bindsym Return mode "default"
  213. bindsym Escape mode "default"
  214. }
  215. bindsym $mod+r mode "resize"
  216. #
  217. # Status Bar:
  218. #
  219. # Read `man 5 sway-bar` for more information about this section.
  220. bar {
  221. position top
  222. # When the status_command prints a new line to stdout, swaybar updates.
  223. # The default just shows the current date and time.
  224. status_command /home/oleg/.local/bin/sensors-notebook.py
  225. colors {
  226. statusline #ffffff
  227. background #000000
  228. focused_workspace #66cdaa #2e8b57 #ffffff
  229. # active_workspace #333333 #333333 #888888
  230. inactive_workspace #000000 #000000 #ffffff
  231. urgent_workspace #eb709b #eb709b #ffffff
  232. }
  233. }
  234. input * {
  235. xkb_layout custom,ru
  236. xkb_options grp:win_space_toggle,grp_led:scroll
  237. }
  238. # class border backgr. text indicator child_border
  239. client.focused #66cdaa #2e8b57 #ffffff #00ff00 #2e8b57
  240. client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
  241. client.unfocused #262626 #000000 #888888 #292d2e #222222
  242. client.urgent #2f343a #900000 #ffffff #900000 #900000
  243. client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
  244. client.background #ffffff
  245. # for_window [app_id="Alacritty"] border none
  246. # for_window [app_id="Alacritty"] resize set width 30 ppt
  247. for_window [title="Picture-in-Picture"] border none
  248. for_window [title="Picture-in-Picture"] resize set height 360 px
  249. for_window [title="Picture-in-Picture"] floating enable
  250. for_window [title="Picture-in-Picture"] sticky enable
  251. for_window [instance="vncviewer"] border none
  252. for_window [title="Moonlight"] border none