Advertisement
Guest User

Untitled

a guest
Jun 6th, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.25 KB | None | 0 0
  1. # i3 config file (v4)
  2. #
  3. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  4. #
  5. # This config file uses keycodes (bindsym) and was written for the QWERTY
  6. # layout.
  7. #
  8. # To get a config file with the same key positions, but for your current
  9. # layout, use the i3-config-wizard
  10.  
  11. set $mod Mod4
  12.  
  13. # Font for window titles. Will also be used by the bar unless a different font
  14. # is used in the bar {} block below.
  15. #font pango:monospace 8
  16.  
  17. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  18. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  19. font pango:DejaVu Sans Mono for Powerline 9
  20.  
  21. # The combination of xss-lock, nm-applet and pactl is a popular choice, so
  22. # they are included here as an example. Modify as you see fit.
  23.  
  24. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
  25. # screen before suspend. Use loginctl lock-session to lock your screen.
  26. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
  27.  
  28. # NetworkManager is the most popular way to manage wireless networks on Linux,
  29. # and nm-applet is a desktop environment-independent system tray GUI for it.
  30. exec --no-startup-id nm-applet
  31.  
  32. set $volstep 5%
  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@ +$volstep && $refresh_i3status
  37. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -$volstep && $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.  
  41. # use these keys for focus, movement, and resize directions when reaching for
  42. # the arrows is not convenient
  43. set $up k
  44. set $down j
  45. set $left h
  46. set $right l
  47.  
  48. # use Mouse+$mod to drag floating windows to their wanted position
  49. floating_modifier $mod
  50.  
  51. # start a terminal
  52. bindsym $mod+Return exec konsole
  53.  
  54. # kill focused window
  55. set $kill_window Shift+q
  56. bindsym $mod+$kill_window kill
  57.  
  58. # start dmenu (a program launcher)
  59. #bindsym $mod+d exec dmenu_run
  60. # There also is the (new) i3-dmenu-desktop which only displays applications
  61. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  62. # installed.
  63. bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  64.  
  65. # change focus
  66. bindsym $mod+$left focus left
  67. bindsym $mod+$down focus down
  68. bindsym $mod+$up focus up
  69. bindsym $mod+$right focus right
  70.  
  71. # alternatively, you can use the cursor keys:
  72. bindsym $mod+Left focus left
  73. bindsym $mod+Down focus down
  74. bindsym $mod+Up focus up
  75. bindsym $mod+Right focus right
  76.  
  77. # move focused window
  78. bindsym $mod+Shift+$left move left
  79. bindsym $mod+Shift+$down move down
  80. bindsym $mod+Shift+$up move up
  81. bindsym $mod+Shift+$right move right
  82.  
  83. # alternatively, you can use the cursor keys:
  84. bindsym $mod+Shift+Left move left
  85. bindsym $mod+Shift+Down move down
  86. bindsym $mod+Shift+Up move up
  87. bindsym $mod+Shift+Right move right
  88.  
  89. # split in horizontal orientation
  90. bindsym $mod+b split h
  91.  
  92. # split in vertical orientation
  93. bindsym $mod+v split v
  94.  
  95. # enter fullscreen mode for the focused container
  96. bindsym $mod+f fullscreen toggle
  97.  
  98. # change container layout (stacked, tabbed, toggle split)
  99. bindsym $mod+s layout stacking
  100. bindsym $mod+w layout tabbed
  101. bindsym $mod+e layout toggle split
  102.  
  103. # toggle tiling / floating
  104. bindsym $mod+Shift+space floating toggle
  105.  
  106. # change focus between tiling / floating windows
  107. bindsym $mod+space focus mode_toggle
  108.  
  109. # focus the parent container
  110. bindsym $mod+a focus parent
  111.  
  112. # focus the child container
  113. #bindsym $mod+d focus child
  114.  
  115. # move the currently focused window to the scratchpad
  116. bindsym $mod+Shift+minus move scratchpad
  117.  
  118. # Show the next scratchpad window or hide the focused scratchpad window.
  119. # If there are multiple scratchpad windows, this command cycles through them.
  120. bindsym $mod+minus scratchpad show
  121.  
  122. # Define names for default workspaces for which we configure key bindings later on.
  123. # We use variables to avoid repeating the names in multiple places.
  124. set $ws1 "1"
  125. set $ws2 "2"
  126. set $ws3 "3"
  127. set $ws4 "4"
  128. set $ws5 "5"
  129. set $ws6 "6"
  130. set $ws7 "7"
  131. set $ws8 "8"
  132. set $ws9 "9"
  133. set $ws10 "10"
  134.  
  135. # switch to workspace
  136. bindsym $mod+1 workspace number $ws1
  137. bindsym $mod+2 workspace number $ws2
  138. bindsym $mod+3 workspace number $ws3
  139. bindsym $mod+4 workspace number $ws4
  140. bindsym $mod+5 workspace number $ws5
  141. bindsym $mod+6 workspace number $ws6
  142. bindsym $mod+7 workspace number $ws7
  143. bindsym $mod+8 workspace number $ws8
  144. bindsym $mod+9 workspace number $ws9
  145. bindsym $mod+0 workspace number $ws10
  146.  
  147. # move focused container to workspace
  148. bindsym $mod+Shift+1 move container to workspace number $ws1
  149. bindsym $mod+Shift+2 move container to workspace number $ws2
  150. bindsym $mod+Shift+3 move container to workspace number $ws3
  151. bindsym $mod+Shift+4 move container to workspace number $ws4
  152. bindsym $mod+Shift+5 move container to workspace number $ws5
  153. bindsym $mod+Shift+6 move container to workspace number $ws6
  154. bindsym $mod+Shift+7 move container to workspace number $ws7
  155. bindsym $mod+Shift+8 move container to workspace number $ws8
  156. bindsym $mod+Shift+9 move container to workspace number $ws9
  157. bindsym $mod+Shift+0 move container to workspace number $ws10
  158.  
  159. # reload the configuration file
  160. bindsym $mod+Shift+c reload
  161. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  162. bindsym $mod+Shift+r restart
  163. # exit i3 (logs you out of your X session)
  164. 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'"
  165.  
  166. # resize window (you can also use the mouse for that)
  167. mode "resize" {
  168. # These bindings trigger as soon as you enter the resize mode
  169.  
  170. # Pressing left will shrink the window’s width.
  171. # Pressing right will grow the window’s width.
  172. # Pressing up will shrink the window’s height.
  173. # Pressing down will grow the window’s height.
  174. bindsym $left resize shrink width 10 px or 10 ppt
  175. bindsym $down resize grow height 10 px or 10 ppt
  176. bindsym $up resize shrink height 10 px or 10 ppt
  177. bindsym $right resize grow width 10 px or 10 ppt
  178.  
  179. # same bindings, but for the arrow keys
  180. bindsym Left resize shrink width 10 px or 10 ppt
  181. bindsym Down resize grow height 10 px or 10 ppt
  182. bindsym Up resize shrink height 10 px or 10 ppt
  183. bindsym Right resize grow width 10 px or 10 ppt
  184.  
  185. # back to normal: Enter or Escape or $mod+r
  186. bindsym Return mode "default"
  187. bindsym Escape mode "default"
  188. bindsym $mod+r mode "default"
  189. }
  190.  
  191. bindsym $mod+r mode "resize"
  192.  
  193. # Start i3bar to display a workspace bar (plus the system information i3status
  194. # finds out, if available)
  195. #bar {
  196. #status_command i3status
  197. #}
  198.  
  199. #exec_always --no-startup-id $HOME/.config/polybar/launch.sh
  200.  
  201.  
  202. for_window [title="Desktop — Plasma"] kill; floating enable; border none
  203. for_window [class="plasmashell"] floating enable;
  204. for_window [class="Plasma"] floating enable; border none
  205. for_window [title="plasma-desktop"] floating enable; border none
  206. for_window [title="win7"] floating enable; border none
  207. for_window [class="krunner"] floating enable; border none
  208. for_window [class="Kmix"] floating enable; border none
  209. for_window [class="Klipper"] floating enable; border none
  210. for_window [class="Plasmoidviewer"] floating enable; border none
  211. for_window [class="(?i)*nextcloud*"] floating disable
  212. for_window [class="plasmashell" window_type="notification"] floating enable, border none, move right 700px, move down 450px
  213. no_focus [class="plasmashell" window_type="notification"]
  214.  
  215. # Float by type
  216. for_window [window_role="pop-up"] floating enable
  217. for_window [window_role="task_dialog"] floating enable
  218. for_window [window_type="dialog"] floating enable
  219. for_window [window_type="menu"] floating enable
  220.  
  221. # Use Mouse+$mod to drag floating windows to their wanted position
  222. floating_modifier $mod
  223.  
  224. #---( focus related )---)
  225.  
  226. focus_follows_mouse no
  227.  
  228. no_focus [class="plasmashell"]
  229. no_focus [window_role="pop-up"]
  230. no_focus [window_type="notification"]
  231.  
  232. focus_on_window_activation none
  233.  
  234. #######################################################################
  235. # automatically start i3-config-wizard to offer the user to create a
  236. # keysym-based config which used their favorite modifier (alt or windows)
  237. #
  238. # i3-config-wizard will not launch if there already is a config file
  239. # in ~/.config/i3/config (or $XDG_CONFIG_HOME/i3/config if set) or
  240. # ~/.i3/config.
  241. #
  242. # Please remove the following exec line:
  243. #######################################################################
  244. exec i3-config-wizard
  245.  
  246. # $i3-theme-window
  247. # solarized accents
  248. set $yellow #b58900
  249. set $orange #cb4b16
  250. set $red #dc322f
  251. set $magenta #d33682
  252. set $violet #6c71c4
  253. set $blue #268bd2
  254. set $cyan #2aa198
  255. set $green #859900
  256.  
  257. # solarized light
  258. set $baseA3 #fdf6e3
  259. set $baseA2 #eee8d5
  260. set $baseA1 #93a1a1
  261. set $baseA0 #839496
  262. set $baseB0 #657b83
  263. set $baseB1 #586e75
  264. set $baseB2 #073642
  265. set $baseB3 #002b36
  266. set $custom #e1cab3
  267.  
  268. # $i3-background
  269. exec_always --no-startup-id xsetroot -solid '$baseA2'
  270.  
  271. ###################
  272. # solarized (clean)
  273. ###################
  274. # clientclass border backgr. text indicator
  275. client.focused $green $green $baseB3 $blue
  276. client.focused_inactive $cyan $cyan $baseB2 $violet
  277. client.unfocused $baseA2 $baseA2 $baseB1 $baseA1
  278. #client.urgent $orange $orange $baseB3 $red
  279. client.urgent $yellow $yellow $baseB3 $orange
  280.  
  281. ####################
  282. # solarized (borders)
  283. ####################
  284. # clientclass border backgr. text indicator
  285. client.focused $baseB0 $green $baseB3 $blue
  286. client.focused_inactive $baseB0 $cyan $baseB2 $violet
  287. client.unfocused $baseB0 $baseA2 $baseB1 $baseA1
  288. #client.urgent $baseB0 $orange $baseB3 $red
  289. client.urgent $baseB0 $yellow $baseB3 $orange
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement