Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.39 KB | None | 0 0
  1. set $mod Mod4
  2.  
  3. # Font for window titles. Will also be used by the bar unless a different font
  4. # is used in the bar {} block below.
  5. font pango:monospace 8
  6.  
  7. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
  8. # screen before suspend. Use loginctl lock-session to lock your screen.
  9. # exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
  10.  
  11.  
  12. # Use pactl to adjust volume in PulseAudio.
  13. # set $refresh_i3status killall -SIGUSR1 i3status
  14. # bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
  15. # bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
  16. # bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
  17. # bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
  18.  
  19. # Use Mouse+$mod to drag floating windows to their wanted position
  20. floating_modifier $mod
  21.  
  22. # Custom key bindings:
  23. # ----------------------------------------
  24. bindsym $mod+g exec --no-startup-id gvim
  25. bindsym $mod+i exec --no-startup-id geany
  26. bindsym $mod+w exec --no-startup-id chromium
  27. bindsym $mod+x exec --no-startup-id gmrun
  28. bindsym $mod+t exec --no-startup-id urxvt -e tmux
  29. bindsym $mod+n exec --no-startup-id urxvt -e ranger
  30. bindsym $mod+d exec --no-startup-id Cutter
  31. bindsym $mod+o exec --no-startup-id okular
  32. bindsym $mod+z exec --no-startup-id zathura
  33. bindsym $mod+Shift+t exec --no-startup-id terminator
  34. bindsym $mod+Control+t exec --no-startup-id terminator -e tmux
  35. bindsym $mod+Shift+s exec --no-startup-id sudo zzz
  36. bindsym $mod+Shift+p exec --no-startup-id sudo poweroff
  37. bindsym $mod+Shift+b exec --no-startup-id sudo reboot
  38. # ----------------------------------------
  39.  
  40. # options:
  41. # ----------------------------------------
  42. gaps inner 10
  43. gaps outer 10
  44. default_border pixel 5
  45. default_floating_border pixel 5
  46. workspace 10 output eDP-1
  47. workspace 1 output HDMI-1
  48. client.focused #1ec84b #1ec84b #ffffff #1ec84b #1ec84b
  49. client.focused_inactive #008ae6 #008ae6 #ffffff #008ae6 #008ae6
  50. client.unfocused #008ae6 #008ae6 #888888 #008ae6 #008ae6
  51. client.urgent #e62e00 #e62e00 #ffffff #e62e00 #e62e00
  52. #exec_always --no-startup-id feh --bg-scale ~/.config/i3/diablo3.jpg
  53. #exec_always --no-startup-id compton --config ~/.config/compton.conf -CGb
  54. exec_always --no-startup-id bash ~/.config/i3/autostart.sh
  55. # -----------------------------------------
  56.  
  57. # start a terminal
  58. bindsym $mod+Return exec i3-sensible-terminal
  59.  
  60. # kill focused window
  61. bindsym $mod+Shift+c kill
  62.  
  63. # change focus
  64. bindsym $mod+h focus left
  65. bindsym $mod+j focus down
  66. bindsym $mod+k focus up
  67. bindsym $mod+l focus right
  68.  
  69. # alternatively, you can use the cursor keys:
  70. bindsym $mod+Left focus left
  71. bindsym $mod+Down focus down
  72. bindsym $mod+Up focus up
  73. bindsym $mod+Right focus right
  74.  
  75. # move focused window
  76. bindsym $mod+Shift+h move left
  77. bindsym $mod+Shift+j move down
  78. bindsym $mod+Shift+k move up
  79. bindsym $mod+Shift+l move right
  80.  
  81. # alternatively, you can use the cursor keys:
  82. bindsym $mod+Shift+Left move left
  83. bindsym $mod+Shift+Down move down
  84. bindsym $mod+Shift+Up move up
  85. bindsym $mod+Shift+Right move right
  86.  
  87. # split in horizontal orientation
  88. bindsym $mod+b split h
  89.  
  90. # split in vertical orientation
  91. bindsym $mod+v split v
  92.  
  93. # enter fullscreen mode for the focused container
  94. bindsym $mod+f fullscreen toggle
  95.  
  96. # change container layout (stacked, tabbed, toggle split)
  97. bindsym $mod+s layout stacking
  98. bindsym $mod+q layout tabbed
  99. bindsym $mod+e layout toggle split
  100.  
  101. # toggle tiling / floating
  102. bindsym $mod+Shift+space floating toggle
  103.  
  104. # change focus between tiling / floating windows
  105. bindsym $mod+space focus mode_toggle
  106.  
  107. # focus the parent container
  108. bindsym $mod+a focus parent
  109.  
  110. # focus the child container
  111. #bindsym $mod+d focus child
  112.  
  113. # Define names for default workspaces for which we configure key bindings later on.
  114. # We use variables to avoid repeating the names in multiple places.
  115. set $ws1 "1"
  116. set $ws2 "2"
  117. set $ws3 "3"
  118. set $ws4 "4"
  119. set $ws5 "5"
  120. set $ws6 "6"
  121. set $ws7 "7"
  122. set $ws8 "8"
  123. set $ws9 "9"
  124. set $ws10 "10"
  125.  
  126. # switch to workspace
  127. bindsym $mod+1 workspace number $ws1
  128. bindsym $mod+2 workspace number $ws2
  129. bindsym $mod+3 workspace number $ws3
  130. bindsym $mod+4 workspace number $ws4
  131. bindsym $mod+5 workspace number $ws5
  132. bindsym $mod+6 workspace number $ws6
  133. bindsym $mod+7 workspace number $ws7
  134. bindsym $mod+8 workspace number $ws8
  135. bindsym $mod+9 workspace number $ws9
  136. bindsym $mod+0 workspace number $ws10
  137.  
  138. # move focused container to workspace
  139. bindsym $mod+Shift+1 move container to workspace number $ws1
  140. bindsym $mod+Shift+2 move container to workspace number $ws2
  141. bindsym $mod+Shift+3 move container to workspace number $ws3
  142. bindsym $mod+Shift+4 move container to workspace number $ws4
  143. bindsym $mod+Shift+5 move container to workspace number $ws5
  144. bindsym $mod+Shift+6 move container to workspace number $ws6
  145. bindsym $mod+Shift+7 move container to workspace number $ws7
  146. bindsym $mod+Shift+8 move container to workspace number $ws8
  147. bindsym $mod+Shift+9 move container to workspace number $ws9
  148. bindsym $mod+Shift+0 move container to workspace number $ws10
  149.  
  150. # reload the configuration file
  151. bindsym $mod+Shift+e reload
  152. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  153. bindsym $mod+Shift+r restart
  154. # exit i3 (logs you out of your X session)
  155. bindsym $mod+Shift+q 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'"
  156.  
  157. # resize window (you can also use the mouse for that)
  158. mode "resize" {
  159. # These bindings trigger as soon as you enter the resize mode
  160.  
  161. # Pressing left will shrink the window’s width.
  162. # Pressing right will grow the window’s width.
  163. # Pressing up will shrink the window’s height.
  164. # Pressing down will grow the window’s height.
  165. bindsym j resize shrink width 10 px or 10 ppt
  166. bindsym k resize grow height 10 px or 10 ppt
  167. bindsym l resize shrink height 10 px or 10 ppt
  168. bindsym semicolon resize grow width 10 px or 10 ppt
  169.  
  170. # same bindings, but for the arrow keys
  171. bindsym Left resize shrink width 10 px or 10 ppt
  172. bindsym Down resize grow height 10 px or 10 ppt
  173. bindsym Up resize shrink height 10 px or 10 ppt
  174. bindsym Right resize grow width 10 px or 10 ppt
  175.  
  176. # back to normal: Enter or Escape or $mod+r
  177. bindsym Return mode "default"
  178. bindsym Escape mode "default"
  179. bindsym $mod+r mode "default"
  180. }
  181.  
  182. bindsym $mod+r mode "resize"
  183.  
  184. # Start i3bar to display a workspace bar (plus the system information i3status
  185. # finds out, if available)
  186. bar {
  187. font pango:Cousine for Powerline 9
  188. # font pango:Inconsolata for Powerline 9
  189. # status_command bumblebee-status -m nic disk:root cpu memory battery date time -p root.path=/ time.format="%H:%M" date.format="%a, %b %d %Y" -t onedark-powerline
  190. status_command /usr/bin/i3status-rs ~/.config/i3status-rs.toml
  191. position top
  192. mode hide
  193. hidden_state hide
  194. modifier Mod1
  195. colors {
  196. background #005266
  197. statusline #ffffff
  198. separator #000000
  199. focused_workspace #ffffff #1ec84b #000000
  200. active_workspace #ffffff #000000 #ffffff
  201. inactive_workspace #ffffff #000000 #ffffff
  202. urgent_workspace #ffffff #e62e00 #ffffff
  203. }
  204.  
  205. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement