Advertisement
Guest User

Untitled

a guest
May 17th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.15 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. # i3 config file (v4)
  8. #
  9. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  10. #
  11. # This config file uses keycodes (bindsym) and was written for the QWERTY
  12. # layout.
  13. #
  14. # To get a config file with the same key positions, but for your current
  15. # layout, use the i3-config-wizard
  16. #
  17.  
  18. # i3 config file (v4)
  19. #
  20. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  21.  
  22. # Variable setting
  23. set $defaultmod Mod4
  24. set $up i
  25. set $down k
  26. set $left j
  27. set $right l
  28.  
  29. # Font for window titles. Will also be used by the bar unless a different font
  30. # is used in the bar {} block below.
  31. font pango:Clear Sans 10
  32.  
  33. ########## Autolaunch ##########
  34. exec --no-startup-id nm-applet
  35. exec --no-startup-id /usr/lib64/polkit-gnome/polkit-gnome-authentication-agent-1
  36.  
  37. ########## Keybindings ##########
  38. # Easier locking
  39. bindsym Mod4+Shift+s exec ~/.xlock/lock.sh
  40.  
  41. ### Backlight ###
  42. # Note: If light doesn't work, install xbacklight and 1) uncomment the two lines below.
  43. # 2) Comment out the exec light lines.
  44. bindsym XF86MonBrightnessUp exec xbacklight -inc 10
  45. bindsym XF86MonBrightnessDown exec xbacklight -dec 10
  46. # bindsym XF86MonBrightnessUp exec light -A 10 # Increase Brightness
  47. # bindsym XF86MonBrightnessDown exec light -U 10 # Decrease Brightness
  48.  
  49. ### Media Player ###
  50. bindsym XF86AudioPlay exec playerctl play-pause
  51. bindsym XF86AudioPause exec playerctl pause
  52. bindsym XF86AudioPrev exec playerctl previous
  53. bindsym XF86AudioNext exec playerctl next
  54.  
  55. ### Other ###
  56. bindsym Print exec scrot -q 100
  57.  
  58. ### Sound ###
  59. # Raise Volume
  60. bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+ && paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga
  61. # Lower Volume
  62. bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 5%- && paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga
  63. bindsym XF86AudioMute exec --no-startup-id amixer -D pulse sset Master toggle-mute # Toggle muting
  64.  
  65. # Use Mouse+Mod4 to drag floating windows to their wanted position
  66. floating_modifier Mod4
  67.  
  68. # start a terminal
  69. bindsym Mod4+Return exec i3-sensible-terminal
  70.  
  71. # kill focused window
  72. bindsym Mod4+Shift+q kill
  73.  
  74. # start dmenu (a program launcher)
  75. bindsym Mod4+d exec rofi -show drun
  76.  
  77. # change focus
  78. bindsym Mod4+$left focus left
  79. bindsym Mod4+$down focus down
  80. bindsym Mod4+$up focus up
  81. bindsym Mod4+$right focus right
  82.  
  83. # alternatively, you can use the cursor keys:
  84. bindsym Mod4+Left focus left
  85. bindsym Mod4+Down focus down
  86. bindsym Mod4+Up focus up
  87. bindsym Mod4+Right focus right
  88.  
  89. # move focused window
  90. bindsym Mod4+Shift+$left move left
  91. bindsym Mod4+Shift+$down move down
  92. bindsym Mod4+Shift+$up move up
  93. bindsym Mod4+Shift+$right move right
  94.  
  95. # alternatively, you can use the cursor keys:
  96. bindsym Mod4+Shift+Left move left
  97. bindsym Mod4+Shift+Down move down
  98. bindsym Mod4+Shift+Up move up
  99.  
  100. # split in horizontal orientation
  101. bindsym Mod4+h split h
  102.  
  103. # split in vertical orientation
  104. bindsym Mod4+v split v
  105.  
  106. # enter fullscreen mode for the focused container
  107. bindsym Mod4+f fullscreen toggle
  108.  
  109. # change container layout (stacked, tabbed, toggle split)
  110. bindsym Mod4+s layout stacking
  111. bindsym Mod4+w layout tabbed
  112. bindsym Mod4+e layout toggle split
  113.  
  114. # toggle tiling / floating
  115. bindsym Mod4+Shift+space floating toggle
  116.  
  117. # change focus between tiling / floating windows
  118. bindsym Mod4+space focus mode_toggle
  119.  
  120. # focus the parent container
  121. bindsym Mod4+a focus parent
  122. focus_follows_mouse no
  123.  
  124. # focus the child container
  125. #bindsym Mod4+d focus child
  126.  
  127. # Show the next scratchpad window or hide the focused scratchpad window.
  128. # If there are multiple scratchpad windows, this command cycles through them.
  129. bindsym Mod4+minus scratchpad show
  130.  
  131. # Define names for default workspaces for which we configure key bindings later on.
  132. # We use variables to avoid repeating the names in multiple places.
  133. set $ws1 "1: "
  134. set $ws2 "2: "
  135. set $ws3 "3"
  136. set $ws4 "4"
  137. set $ws5 "5"
  138. set $ws6 "6"
  139. set $ws7 "7"
  140. set $ws8 "8"
  141. set $ws9 "9"
  142. set $ws10 "10: "
  143.  
  144.  
  145. # switch to workspace
  146. bindsym Mod4+1 workspace $ws1
  147. bindsym Mod4+2 workspace $ws2
  148. bindsym Mod4+3 workspace $ws3
  149. bindsym Mod4+4 workspace $ws4
  150. bindsym Mod4+5 workspace $ws5
  151. bindsym Mod4+6 workspace $ws6
  152. bindsym Mod4+7 workspace $ws7
  153. bindsym Mod4+8 workspace $ws8
  154. bindsym Mod4+9 workspace $ws9
  155. bindsym Mod4+0 workspace $ws10
  156.  
  157. # move focused container to workspace
  158. bindsym Mod4+Shift+1 move container to workspace $ws1
  159. bindsym Mod4+Shift+2 move container to workspace $ws2
  160. bindsym Mod4+Shift+3 move container to workspace $ws3
  161. bindsym Mod4+Shift+4 move container to workspace $ws4
  162. bindsym Mod4+Shift+5 move container to workspace $ws5
  163. bindsym Mod4+Shift+6 move container to workspace $ws6
  164. bindsym Mod4+Shift+7 move container to workspace $ws7
  165. bindsym Mod4+Shift+8 move container to workspace $ws8
  166. bindsym Mod4+Shift+9 move container to workspace $ws9
  167. bindsym Mod4+Shift+0 move container to workspace $ws10
  168.  
  169. assign [class="Firefox"] $ws2
  170. #assign [class="Google-chrome"] $ws2
  171.  
  172. # move container
  173. bindsym Mod4+z move workspace to output left
  174. bindsym Mod4+x move workspace to output right
  175.  
  176. # reload the configuration file
  177. bindsym Mod4+Shift+c reload
  178.  
  179. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  180. bindsym Mod4+Shift+r restart
  181.  
  182. # exit i3 (logs you out of your X session)
  183. bindsym Mod4+Shift+e exit
  184. # bindsym Mod4+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'"
  185.  
  186. # resize window (you can also use the mouse for that)
  187. mode "resize" {
  188.         # These bindings trigger as soon as you enter the resize mode
  189.  
  190.         # Pressing left will shrink the window’s width.
  191.         # Pressing right will grow the window’s width.
  192.         # Pressing up will shrink the window’s height.
  193.         # Pressing down will grow the window’s height.
  194.         bindsym $left       resize shrink width 10 px or 10 ppt
  195.         bindsym $down       resize grow height 10 px or 10 ppt
  196.         bindsym $up         resize shrink height 10 px or 10 ppt
  197.         bindsym $right      resize grow width 10 px or 10 ppt
  198.  
  199.         # same bindings, but for the arrow keys
  200.         bindsym Left        resize shrink width 10 px or 10 ppt
  201.         bindsym Down        resize grow height 10 px or 10 ppt
  202.         bindsym Up          resize shrink height 10 px or 10 ppt
  203.         bindsym Right       resize grow width 10 px or 10 ppt
  204.  
  205.         # back to normal: Enter or Escape or Mod4+r
  206.         bindsym Return mode "default"
  207.         bindsym Escape mode "default"
  208.         bindsym Mod4+r mode "default"
  209. }
  210.  
  211. bindsym Mod4+r mode "resize"
  212.  
  213. set $bg-color            #2f343f
  214. set $inactive-bg-color   #2f343f
  215. set $text-color          #f3f4f5
  216. set $inactive-text-color #676E7D
  217. set $urgent-bg-color     #E53935
  218.  
  219. # Start i3bar to display a workspace bar (plus the system information i3status
  220. # finds out, if available)
  221. bar {
  222.         status_command i3status
  223.         position top
  224.  
  225.         colors {
  226.             background #404552
  227.  
  228.             focused_workspace #3685e2 #3685e2 #fafafa
  229.             active_workspace #5294e2 #5294e2 #fafafa
  230.             inactive_workspace #404552 #404552 #fafafa
  231.             urgent_workspace #ff5757 #ff5757 #fafafa
  232.         }
  233. }
  234.  
  235. ########## Styling ##########
  236.  
  237. client.focused          #404552 #404552 #fafafa #ff5757 #fafafa
  238. client.focused_inactive #666666 #404552 #eeeeee #666666 #666666
  239. client.unfocused        #404552 #484b52 #eeeeee #ff5757 #404552
  240. client.urgent           #ff5757 #404552 #ffffff #555757 #404552
  241. client.background       #404552
  242.  
  243. #hide_edge_borders both
  244.  
  245. ########## i3-gaps integration ##########
  246.  
  247. for_window [class="^.*"] border pixel 5
  248. for_window [window_role="pop-up"] floating enable
  249. for_window [window_role="task_dialog"] floating enable
  250. for_window [title="Preferences$"] floating enable
  251.  
  252. smart_borders no_gaps
  253. smart_gaps on
  254. gaps inner 10
  255. gaps outer 0
  256.  
  257. # wallpaper
  258. exec_always feh --bg-scale /home/teytur/Pictures/Wallpapers/cozy.jpg
  259.  
  260. # rebind Caps to Esc
  261. #exec_always xmodmap -e "clear lock" #disable caps lock switch
  262. #exec_always xmodmap -e "keysym Caps_Lock = Escape" #set caps_lock as escape
  263. exec_always setxkbmap -layout gb,is -option caps:escape
  264.  
  265. # tapping and natural scrolling
  266. # xinput-list
  267. # xinput list-props <device id>
  268. # xinput set-prop <device id> <property id> 1
  269. #exec xinput set-prop 15 308 1
  270. #exec xinput set-prop 15 290 1
  271. #exec xinput set-prop 12 290 1
  272. #exec xinput set-prop 12 298 1
  273. exec_always xinput set-prop 'DELL07E6:00 06CB:76AF Touchpad' 'libinput Tapping Enabled' 1
  274. exec_always xinput set-prop 'DELL07E6:00 06CB:76AF Touchpad' 'libinput Natural Scrolling Enabled' 1
  275.  
  276. # set keyboard uk, is, toggle between
  277. #exec setxkbmap -layout gb,is
  278. #exec setxkbmap -option 'grp:alt_shift_toggle'
  279.  
  280. # compton
  281. #exec_always compton -f
  282. # redshift
  283. exec redshift
  284. # firefox
  285. exec firefox
  286. # chrome
  287. #exec google-chrome-stable
  288.  
  289. bindsym Mod4+n exec nautilus
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement