kasak730

Untitled

Apr 8th, 2020
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.41 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.  
  15. ##########################################################################
  16. ##################### MY MOD & SUP KEYS ##############################
  17.  
  18. set $mod Mod1
  19. set $sup Mod4
  20. set $ctrl Control
  21. #set $tab Tab
  22.  
  23. ##########################################################################
  24.  
  25.  
  26.  
  27. # Font for window titles. Will also be used by the bar unless a different font
  28. # is used in the bar {} block below.
  29. font pango:monospace 8
  30.  
  31. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  32. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  33. #font pango:DejaVu Sans Mono 8
  34.  
  35. # The combination of xss-lock, nm-applet and pactl is a popular choice, so
  36. # they are included here as an example. Modify as you see fit.
  37.  
  38. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
  39. # screen before suspend. Use loginctl lock-session to lock your screen.
  40. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
  41.  
  42. # NetworkManager is the most popular way to manage wireless networks on Linux,
  43. # and nm-applet is a desktop environment-independent system tray GUI for it.
  44. exec --no-startup-id nm-applet
  45.  
  46. # Use pactl to adjust volume in PulseAudio.
  47. set $refresh_i3status killall -SIGUSR1 i3status
  48. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
  49. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
  50. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
  51. bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
  52.  
  53. # Use Mouse+$mod to drag floating windows to their wanted position
  54. floating_modifier $mod
  55.  
  56. # start a terminal
  57. bindsym $mod+ctrl+t exec urxvt #i3-sensible-terminal
  58. bindsym $mod+t exec terminator
  59.  
  60.  
  61.  
  62. # kill focused window
  63. bindsym $sup+Shift+q kill
  64.  
  65. # start dmenu (a program launcher)
  66. bindsym $sup+d exec dmenu_run
  67. # There also is the (new) i3-dmenu-desktop which only displays applications
  68. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  69. # installed.
  70. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  71.  
  72. # change focus
  73. bindsym $mod+j focus left
  74. bindsym $mod+k focus down
  75. bindsym $mod+l focus up
  76. bindsym $mod+semicolon focus right
  77.  
  78. # alternatively, you can use the cursor keys:
  79. bindsym $mod+Left focus left
  80. bindsym $mod+Down focus down
  81. bindsym $mod+Up focus up
  82. bindsym $mod+Right focus right
  83.  
  84. # move focused window
  85. #bindsym $mod+ move left
  86. #bindsym $mod+ move down
  87. #bindsym $mod+ move up
  88. #bindsym $mod+ move right
  89.  
  90. # alternatively, you can use the cursor keys:
  91. bindsym $mod+Shift+Left move left
  92. bindsym $mod+Shift+Down move down
  93. bindsym $mod+Shift+Up move up
  94. bindsym $mod+Shift+Right move right
  95.  
  96. # split in horizontal orientation
  97. bindsym $mod+h split h
  98.  
  99. # split in vertical orientation
  100. bindsym $mod+v split v
  101.  
  102. # enter fullscreen mode for the focused container
  103. bindsym $mod+f fullscreen toggle
  104.  
  105. # change container layout (stacked, tabbed, toggle split)
  106. #bindsym $mod+s layout stacking
  107. #bindsym $mod+w layout tabbed
  108. #bindsym $mod+e layout toggle split
  109.  
  110. # toggle tiling / floating
  111. bindsym $mod+Shift+space floating toggle
  112.  
  113. # change focus between tiling / floating windows
  114. bindsym $mod+space focus mode_toggle
  115.  
  116. # focus the parent container
  117. bindsym $mod+a focus parent
  118.  
  119. # focus the child container
  120. #bindsym $mod+d focus child
  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 $sup+Shift+1 move container to workspace number $ws1
  149. bindsym $sup+Shift+2 move container to workspace number $ws2
  150. bindsym $sup+Shift+3 move container to workspace number $ws3
  151. bindsym $sup+Shift+4 move container to workspace number $ws4
  152. bindsym $sup+Shift+5 move container to workspace number $ws5
  153. bindsym $sup+Shift+6 move container to workspace number $ws6
  154. bindsym $sup+Shift+7 move container to workspace number $ws7
  155. bindsym $sup+Shift+8 move container to workspace number $ws8
  156. bindsym $sup+Shift+9 move container to workspace number $ws9
  157. bindsym $sup+Shift+0 move container to workspace number $ws10
  158.  
  159. # reload the configuration file
  160. bindsym $sup+Shift+c reload
  161. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  162. bindsym $sup+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 j resize shrink width 10 px or 10 ppt
  175. bindsym k resize grow height 10 px or 10 ppt
  176. bindsym l resize shrink height 10 px or 10 ppt
  177. bindsym semicolon 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.  
  196. bar {
  197. status_command i3status
  198. position top
  199.  
  200. colors {
  201. background #1f1c1c
  202. statusline #f2ff00
  203. focused_workspace #000000 $bg-color #000000
  204. active_workspace #000000 $bg-color #$bg-color
  205. inactive_workspace #000000 #666666 #ffffff
  206. urgent_workspace #d33682 #d33682 #fdf6e3
  207. }
  208. }
  209.  
  210. ####################################################################################
  211. ################################## MY SHIT #####################################
  212. ####################################################################################
  213.  
  214. # For Background
  215. exec_always feh --bg-scale ~/Pictures/Backgrounds/Hydrometry.jpg
  216. #exec_always feh --bg-scale ~/Pictures/screenlock/W_2013_082.jpg
  217.  
  218.  
  219.  
  220. # Conky
  221. #exec_always /home/kas/.config/i3/start-conky-i3statusbar.sh
  222.  
  223.  
  224. #Start Firefox
  225. bindsym $mod+ctrl+f exec firefox
  226.  
  227. #Start Vivaldi
  228. bindsym $mod+ctrl+v exec vivaldi-stable
  229.  
  230.  
  231.  
  232. ###########################################################################################################
  233. ################ Resizing ###############################################
  234. ###########################################################################################################
  235.  
  236. # Resizing by 1
  237. bindsym $sup+ctrl+Right resize shrink width 1 px or 1 ppt
  238. bindsym $sup+ctrl+Up resize grow height 1 px or 1 ppt
  239. bindsym $sup+ctrl+Down resize shrink height 1 px or 1 ppt
  240. bindsym $sup+ctrl+Left resize grow width 1 px or 1 ppt
  241.  
  242. # Resizing by 10
  243. bindsym $sup+ctrl+Mod1+Right resize shrink width 10 px or 10 ppt
  244. bindsym $sup+ctrl+Mod1+Up resize grow height 10 px or 10 ppt
  245. bindsym $sup+ctrl+Mod1+Down resize shrink height 10 px or 10 ppt
  246. bindsym $sup+ctrl+Mod1+Left resize grow width 10 px or 10 ppt
  247.  
  248.  
  249.  
  250. #####################################################################################################################
  251. ################# xbacklight #################
  252. #####################################################################################################################
  253.  
  254. bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 20 # increase screen brightness
  255. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 20 # decrease screen brightness
  256.  
  257. #### Conky ###
  258. exec_always --no-startup-id conky -c ~/.config/i3/my.conkyrc
  259. #exec_always --no-startup-id conky -c ~/dot-files-BU-12-9/.myconkys/3
  260. #exec_always --no-startup-id conky -c ~/other_peoples_configs/conky0_Left.rc
  261.  
  262.  
  263.  
  264.  
  265. ##### i3 blocks #####
  266. #status_command i3blocks -c ~/.config/i3/i3blocks-awesome.conf
  267.  
  268.  
  269.  
  270. #if you want transparency on non-focused windows, ... USE -CGb --backend glx --vsync opengl to stop ghosting
  271. #was trying different syntax
  272. #exec_always --no-startup-id compton --config ~/.config/i3/compton.conf
  273. #exec_always --no-startup-id compton --config ~/.config/i3/compton.conf -CGb --backend glx --vsync opengl -z
  274. #exec --no-startup-id compton --config ~/.config/i3/compton.conf
  275. exec --no-startup-id picom --config $HOME/.config/i3/picom.conf
  276.  
  277.  
  278. #Open Thunar
  279. bindsym $mod+ctrl+a exec thunar
  280.  
  281.  
  282. #Lock i3
  283. bindsym $mod+ctrl+x exec i3lock
  284.  
  285. #Betterlock
  286. ### COMMAND INCOMPLETE ###
  287. #bindsym $mod+ctrl+x exec betterlockscreen ~/packages/betterlockscreen
  288.  
  289.  
  290.  
  291. ##############################################################
  292. ####################### i3gaps ###########################
  293. ##############################################################
  294.  
  295. #hide_edge_borders both
  296. for_window [class="^.*"] border pixel 4
  297. gaps inner 10
  298. gaps outer 10
  299.  
  300.  
  301. # Window borders
  302. #new_window 1pixel
  303. smart_borders on
  304.  
  305. # Color settings
  306. client.focused #FE2644 #FE2644 #000088 #00C1FF
  307. client.focused_inactive #00C1FF #00C1FF #ffffff #2C2C2C
  308. client.unfocused #0310EA #0310EA #ffffff #2C2C2C
  309. client.urgent #00C1FF #00C1FF #000088 #00C1FF
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317. #Resizing window borders
  318. bindsym $mod+Shift+o gaps inner current plus 5
  319. bindsym $mod+Shift+p gaps inner current minus 5
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327. #STOP/HIDE EVERYTHING:
  328. bindsym $mod+Shift+Delete exec --no-startup-id lmc truemute ; exec --no-startup-id lmc pause ; exec --no-startup-id pauseallmpv; workspace 0; exec $term -e htop ; exec $term -e $FILE
  329.  
  330.  
  331. #for_window [instance="dropdown_dropdowncalc"] border pixel 2
  332. #bindsym $mod+Shift+m exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24
  333.  
  334.  
  335. ################### SCREEN SHOTS ##########################
  336.  
  337. bindsym Print exec scrot $HOME/Pictures/screenshots/`date +%Y-%m-%d_%H:%M:%S`.png
  338. bindsym Shift+Print exec scrot -u $HOME/Pictures/screenshots/`date +%Y-%m-%d_%H:%M:%S`.png
  339. bindsym ctrl+Print exec scrot -s $HOME/Pictures/screenshots/`date +%Y-%m-%d_%H:%M:%S`.png
Advertisement
Add Comment
Please, Sign In to add comment