Guest User

Untitled

a guest
Jul 10th, 2021
514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.19 KB | None | 0 0
  1. # This file has been auto-generated by i3-config-wizard(1).
  2. # It will not be overwritten, so edit it as you like.
  3. #
  4. # Should you change your keyboard layout some time, delete
  5. # this file and re-run i3-config-wizard(1).
  6. #
  7.  
  8. # i3 config file (v4)
  9. #
  10. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. set $mod Mod4
  13.  
  14. # Font for window titles. Will also be used by the bar unless a different font
  15. # is used in the bar {} block below.
  16. font pango:JetBrains Mono 10
  17. #font pango:Ubuntu Mono 11
  18.  
  19. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  20. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  21. #font pango:DejaVu Sans Mono 10
  22.  
  23. # The combination of xss-lock, nm-applet and pactl is a popular choice, so
  24. # they are included here as an example. Modify as you see fit.
  25.  
  26. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
  27. # screen before suspend. Use loginctl lock-session to lock your screen.
  28. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
  29.  
  30. # NetworkManager is the most popular way to manage wireless networks on Linux,
  31. # and nm-applet is a desktop environment-independent system tray GUI for it.
  32. #exec --no-startup-id nm-applet
  33.  
  34. # Use pactl to adjust volume in PulseAudio.
  35. set $refresh_i3status killall -SIGUSR1 i3status
  36. #bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
  37. #bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
  38. #bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
  39. #bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
  40. bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q -D pulse sset Master 5%+ && $refresh_i3status
  41. bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q -D pulse sset Master 5%- && $refresh_i3status
  42. bindsym XF86AudioMute exec --no-startup-id amixer -q -D pulse sset Master toggle && $refresh_i3status
  43.  
  44. # Sreen brightness controls
  45.  
  46. # Use Mouse+$mod to drag floating windows to their wanted position
  47. floating_modifier $mod
  48.  
  49. # start a terminal
  50. #bindsym $mod+Return exec i3-sensible-terminal
  51. bindsym $mod+Return exec --no-startup-id kitty
  52.  
  53. # kill focused window
  54. bindsym $mod+q kill
  55.  
  56. # start dmenu (a program launcher)
  57. bindsym $mod+z exec --no-startup-id dmenu_run -nb '#212134' -nf '$text-color' -sb '$bg-color' -l 10
  58. # A more modern dmenu replacement is rofi:
  59. # bindcode $mod+40 exec "rofi -modi drun,run -show drun"
  60. # There also is i3-dmenu-desktop which only displays applications shipping a
  61. # .desktop file. It is a wrapper around dmenu, so you need that installed.
  62. # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
  63.  
  64. # change focus
  65. bindsym $mod+j focus left
  66. bindsym $mod+k focus down
  67. bindsym $mod+l focus up
  68. bindsym $mod+semicolon focus right
  69.  
  70. # alternatively, you can use the cursor keys:
  71. bindsym $mod+Left focus left
  72. bindsym $mod+Down focus down
  73. bindsym $mod+Up focus up
  74. bindsym $mod+Right focus right
  75.  
  76. # move focused window
  77. bindsym $mod+Shift+j move left
  78. bindsym $mod+Shift+k move down
  79. bindsym $mod+Shift+l move up
  80. bindsym $mod+Shift+semicolon move right
  81.  
  82. # alternatively, you can use the cursor keys:
  83. bindsym $mod+Shift+Left move left
  84. bindsym $mod+Shift+Down move down
  85. bindsym $mod+Shift+Up move up
  86. bindsym $mod+Shift+Right move right
  87.  
  88. # split in horizontal orientation
  89. bindsym $mod+h split h
  90.  
  91. # split in vertical orientation
  92. bindsym $mod+v split v
  93.  
  94. # enter fullscreen mode for the focused container
  95. bindsym $mod+f fullscreen toggle
  96.  
  97. # change container layout (stacked, tabbed, toggle split)
  98. bindsym $mod+s layout stacking
  99. bindsym $mod+w layout tabbed
  100. bindsym $mod+e layout toggle split
  101.  
  102. # toggle tiling / floating
  103. bindsym $mod+space floating toggle
  104.  
  105. # change focus between tiling / floating windows
  106. bindsym $mod+Shift+space focus mode_toggle
  107.  
  108. # focus the parent container
  109. bindsym $mod+a focus parent
  110.  
  111. # focus the child container
  112. #bindsym $mod+d focus child
  113.  
  114. # apps attached for the workspace
  115. for_window [class="Firefox"] move container to workspace $ws1, workspace $ws1
  116. for_window [class="kitty" title="ranger"] move container to workspace $ws2, workspace $ws2
  117. for_window [class="kitty" title="cmus"] move container to workspace $ws3, workspace $ws3
  118. for_window [class="mpv"] move container to workspace $ws4, workspace $ws4
  119. for_window [class="Geany"] move container to workspace $ws5, workspace $ws5
  120. for_window [class="Gimp"] move container to workspace $ws6, workspace $ws6
  121. for_window [class="Steam"] floating enable, move container to workspace $ws7, workspace $ws7
  122.  
  123. # Define names for default workspaces for which we configure key bindings later on.
  124. # We use variables to avoid repeating the names in multiple places.
  125. set $ws1 "1:Firefox "
  126. set $ws2 "2:Ranger "
  127. set $ws3 "3:Music "
  128. set $ws4 "4:Videos "
  129. set $ws5 "5:Editor "
  130. set $ws6 "6:Gimp "
  131. set $ws7 "7:Steam "
  132. set $ws8 "8"
  133. set $ws9 "9"
  134. set $ws10 "10"
  135.  
  136. # switch to workspace
  137. bindsym $mod+Tab workspace next
  138. bindsym $mod+1 workspace $ws1
  139. bindsym $mod+2 workspace $ws2
  140. bindsym $mod+3 workspace $ws3
  141. bindsym $mod+4 workspace $ws4
  142. bindsym $mod+5 workspace $ws5
  143. bindsym $mod+6 workspace $ws6
  144. bindsym $mod+7 workspace $ws7
  145. bindsym $mod+8 workspace $ws8
  146. bindsym $mod+9 workspace $ws9
  147. bindsym $mod+0 workspace $ws10
  148.  
  149. # move focused container to workspace
  150. bindsym $mod+Shift+1 move container to workspace $ws1, workspace $ws1
  151. bindsym $mod+Shift+2 move container to workspace $ws2, workspace $ws2
  152. bindsym $mod+Shift+3 move container to workspace $ws3, workspace $ws3
  153. bindsym $mod+Shift+4 move container to workspace $ws4, workspace $ws4
  154. bindsym $mod+Shift+5 move container to workspace $ws5, workspace $ws5
  155. bindsym $mod+Shift+6 move container to workspace $ws6, workspace $ws6
  156. bindsym $mod+Shift+7 move container to workspace $ws7, workspace $ws7
  157. bindsym $mod+Shift+8 move container to workspace $ws8, workspace $ws8
  158. bindsym $mod+Shift+9 move container to workspace $ws9, workspace $ws9
  159. bindsym $mod+Shift+0 move container to workspace $ws10, workspace $ws10
  160.  
  161. # reload the configuration file
  162. bindsym $mod+Shift+c reload
  163. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  164. bindsym $mod+Shift+r restart
  165. # exit i3 (logs you out of your X session)
  166. bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
  167.  
  168. # resize window (you can also use the mouse for that)
  169. mode "resize" {
  170. # These bindings trigger as soon as you enter the resize mode
  171.  
  172. # Pressing left will shrink the window’s width.
  173. # Pressing right will grow the window’s width.
  174. # Pressing up will shrink the window’s height.
  175. # Pressing down will grow the window’s height.
  176. bindsym j resize shrink width 10 px or 10 ppt
  177. bindsym k resize grow height 10 px or 10 ppt
  178. bindsym l resize shrink height 10 px or 10 ppt
  179. bindsym semicolon resize grow width 10 px or 10 ppt
  180.  
  181. # same bindings, but for the arrow keys
  182. bindsym Left resize shrink width 10 px or 10 ppt
  183. bindsym Down resize grow height 10 px or 10 ppt
  184. bindsym Up resize shrink height 10 px or 10 ppt
  185. bindsym Right resize grow width 10 px or 10 ppt
  186.  
  187. # back to normal: Enter or Escape or $mod+r
  188. bindsym Return mode "default"
  189. bindsym Escape mode "default"
  190. bindsym $mod+r mode "default"
  191. }
  192.  
  193. # resize mode
  194. bindsym $mod+r mode "resize"
  195.  
  196. # set colors
  197. set $bg-color #0F5FAC
  198. set $inactive-bg-color #6F006F
  199. set $text-color #E5E5E5
  200. set $inactive-text-color #BFBFBF
  201. set $urgent-bg-color #008400
  202.  
  203. # window colors
  204. # colorclass border background text indicator
  205. client.focused $bg-color $bg-color $text-color #00ff00
  206. client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00
  207. client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00
  208. client.urgent $urgent-bg-color $urgent-bg-color $text-color #00ff00
  209.  
  210. # hiding borders
  211. hide_edge_borders both
  212.  
  213. # Start i3bar to display a workspace bar (plus the system information i3status
  214. # finds out, if available)
  215. bar {
  216. status_command i3status
  217. strip_workspace_numbers yes
  218. colors {
  219. background #212134
  220. separator #1E90FF
  221.  
  222. #colorclass border background text
  223. focused_workspace $bg-color $bg-color $text-color
  224. inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
  225. urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
  226. }
  227. }
  228.  
  229. # keyboard layout
  230. exec --no-startup-id setxkbmap us,ru -option 'grp:caps_toggle'
  231. exec --no-startup-id gxkb
  232.  
  233. # lock / logout / reboot / shutdown
  234. set $Locker i3lock -i /home/sergey/Pictures/soty.png && sleep 1
  235. set $mode_system System (l) lock, (e) logout, (s) suspend, (r) reboot, (Shift+s) shutdown
  236. mode "$mode_system" {
  237. bindsym l exec --no-startup-id $Locker, mode "default"
  238. bindsym e exec --no-startup-id i3-msg exit, mode "default"
  239. bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
  240. bindsym r exec --no-startup-id systemctl reboot, mode "default"
  241. bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
  242.  
  243. # back to normal: Enter or Escape
  244. bindsym Return mode "default"
  245. bindsym Escape mode "default"
  246. }
  247.  
  248. bindsym $mod+m mode "$mode_system"
  249.  
  250. # beep off
  251. exec --no-startup-id xset b off
  252.  
  253. # wallpaper
  254. exec --no-startup-id feh --bg-scale /home/sergey/Pictures/ozero.png
  255.  
  256. # other binds
  257. bindsym $mod+c exec --no-startup-id firefox
  258. bindsym $mod+x exec --no-startup-id kitty "ranger"
  259. bindsym $mod+d exec --no-startup-id kitty "cmus"
  260. bindsym $mod+Shift+d exec --no-startup-id cmus-remote --pause
  261. bindsym $mod+Shift+Return exec --no-startup-id geany
  262. bindsym $mod+n exec --no-startup-id zenity --calendar
  263.  
  264. # dunst notify
  265. #exec_always --no-startup-id killall dunst;notify-send preved123456789
  266.  
Add Comment
Please, Sign In to add comment