Advertisement
kasak730

Untitled

Apr 28th, 2020
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.32 KB | None | 0 0
  1. ┌─[✗]─[kas@kasak7125-730]─[~]
  2. └──╼ $cat .config/i3/config
  3. exec --no-startup-id "picom"
  4. #border_radius 8
  5. # This file has been auto-generated by i3-config-wizard(1).
  6. # It will not be overwritten, so edit it as you like.
  7. #
  8. # Should you change your keyboard layout some time, delete
  9. # this file and re-run i3-config-wizard(1).
  10. #
  11.  
  12. # i3 config file (v4)
  13. #
  14. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  15.  
  16. ##########################################################################
  17. ##################### MY MOD & SUP KEYS ##############################
  18.  
  19. set $mod Mod1
  20. set $sup Mod4
  21. set $ctrl Control
  22. #set $tab Tab
  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. # kill focused window
  61. bindsym $sup+Shift+q kill
  62.  
  63. # start dmenu (a program launcher)
  64. bindsym $mod+d exec dmenu_run
  65. # There also is the (new) i3-dmenu-desktop which only displays applications
  66. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  67. # installed.
  68. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  69.  
  70. # change focus
  71. bindsym $mod+j focus left
  72. bindsym $mod+k focus down
  73. bindsym $mod+l focus up
  74. bindsym $mod+semicolon focus right
  75.  
  76. # alternatively, you can use the cursor keys:
  77. bindsym $mod+Left focus left
  78. bindsym $mod+Down focus down
  79. bindsym $mod+Up focus up
  80. bindsym $mod+Right focus right
  81.  
  82. # move focused window
  83. bindsym $mod+Shift+j move left
  84. bindsym $mod+Shift+k move down
  85. bindsym $mod+Shift+l move up
  86. bindsym $mod+Shift+semicolon move right
  87.  
  88. # alternatively, you can use the cursor keys:
  89. bindsym $mod+Shift+Left move left
  90. bindsym $mod+Shift+Down move down
  91. bindsym $mod+Shift+Up move up
  92. bindsym $mod+Shift+Right move right
  93.  
  94. # split in horizontal orientation
  95. bindsym $mod+h split h
  96.  
  97. # split in vertical orientation
  98. bindsym $mod+v split v
  99.  
  100. # enter fullscreen mode for the focused container
  101. bindsym $mod+f fullscreen toggle
  102.  
  103. # change container layout (stacked, tabbed, toggle split)
  104. bindsym $mod+s layout stacking
  105. bindsym $mod+w layout tabbed
  106. bindsym $mod+e layout toggle split
  107.  
  108. # toggle tiling / floating
  109. bindsym $mod+Shift+space floating toggle
  110.  
  111. # change focus between tiling / floating windows
  112. bindsym $mod+space focus mode_toggle
  113.  
  114. # focus the parent container
  115. bindsym $mod+a focus parent
  116.  
  117. # focus the child container
  118. #bindsym $mod+d focus child
  119.  
  120. # Define names for default workspaces for which we configure key bindings later on.
  121. # We use variables to avoid repeating the names in multiple places.
  122. set $ws1 "1"
  123. set $ws2 "2"
  124. set $ws3 "3"
  125. set $ws4 "4"
  126. set $ws5 "5"
  127. set $ws6 "6"
  128. set $ws7 "7"
  129. set $ws8 "8"
  130. set $ws9 "9"
  131. set $ws10 "10"
  132.  
  133. # switch to workspace
  134. bindsym $mod+1 workspace number $ws1
  135. bindsym $mod+2 workspace number $ws2
  136. bindsym $mod+3 workspace number $ws3
  137. bindsym $mod+4 workspace number $ws4
  138. bindsym $mod+5 workspace number $ws5
  139. bindsym $mod+6 workspace number $ws6
  140. bindsym $mod+7 workspace number $ws7
  141. bindsym $mod+8 workspace number $ws8
  142. bindsym $mod+9 workspace number $ws9
  143. bindsym $mod+0 workspace number $ws10
  144.  
  145. # move focused container to workspace
  146. bindsym $sup+Shift+1 move container to workspace number $ws1
  147. bindsym $sup+Shift+2 move container to workspace number $ws2
  148. bindsym $sup+Shift+3 move container to workspace number $ws3
  149. bindsym $sup+Shift+4 move container to workspace number $ws4
  150. bindsym $sup+Shift+5 move container to workspace number $ws5
  151. bindsym $sup+Shift+6 move container to workspace number $ws6
  152. bindsym $sup+Shift+7 move container to workspace number $ws7
  153. bindsym $sup+Shift+8 move container to workspace number $ws8
  154. bindsym $sup+Shift+9 move container to workspace number $ws9
  155. bindsym $sup+Shift+0 move container to workspace number $ws10
  156.  
  157. # reload the configuration file
  158. bindsym $mod+Shift+c reload
  159. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  160. bindsym $mod+Shift+r restart
  161. # exit i3 (logs you out of your X session)
  162. 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'"
  163.  
  164. # resize window (you can also use the mouse for that)
  165. mode "resize" {
  166. # These bindings trigger as soon as you enter the resize mode
  167.  
  168. # Pressing left will shrink the window’s width.
  169. # Pressing right will grow the window’s width.
  170. # Pressing up will shrink the window’s height.
  171. # Pressing down will grow the window’s height.
  172. bindsym j resize shrink width 10 px or 10 ppt
  173. bindsym k resize grow height 10 px or 10 ppt
  174. bindsym l resize shrink height 10 px or 10 ppt
  175. bindsym semicolon resize grow width 10 px or 10 ppt
  176.  
  177. # same bindings, but for the arrow keys
  178. bindsym Left resize shrink width 10 px or 10 ppt
  179. bindsym Down resize grow height 10 px or 10 ppt
  180. bindsym Up resize shrink height 10 px or 10 ppt
  181. bindsym Right resize grow width 10 px or 10 ppt
  182.  
  183. # back to normal: Enter or Escape or $mod+r
  184. bindsym Return mode "default"
  185. bindsym Escape mode "default"
  186. bindsym $mod+r mode "default"
  187. }
  188.  
  189. bindsym $mod+r mode "resize"
  190.  
  191. # Start i3bar to display a workspace bar (plus the system information i3status
  192. # finds out, if available)
  193. bar {
  194. status_command i3status
  195. position top
  196.  
  197. colors {
  198. background #1f1c1c
  199. statusline #f2ff00
  200. focused_workspace #000000 $bg-color #000000
  201. active_workspace #000000 $bg-color #$bg-color
  202. inactive_workspace #000000 #666666 #ffffff
  203. urgent_workspace #d33682 #d33682 #fdf6e3
  204. }
  205. }
  206.  
  207. ####################### MY SHIT ################################
  208.  
  209. #For Background
  210. exec_always feh --bg-scale ~/Pictures/Backgrounds/Hydrometry.jpg
  211. #exec_always feh --bg-scale ~/Pictures/screenlock/W_2013_082.jpg
  212.  
  213. #Screen Brightness
  214. bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 20 # increase screen brightness
  215. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 20 # decrease screen brightness
  216.  
  217.  
  218. #Resizing By 1
  219. bindsym $sup+ctrl+Right resize shrink width 1 px or 1 ppt
  220. bindsym $sup+ctrl+Up resize grow height 1 px or 1 ppt
  221. bindsym $sup+ctrl+Down resize shrink height 1 px or 1 ppt
  222. bindsym $sup+ctrl+Left resize grow width 1 px or 1 ppt
  223.  
  224. #Resizing By 10
  225. bindsym $sup+ctrl+Mod1+Right resize shrink width 10 px or 10 ppt
  226. bindsym $sup+ctrl+Mod1+Up resize grow height 10 px or 10 ppt
  227. bindsym $sup+ctrl+Mod1+Down resize shrink height 10 px or 10 ppt
  228. bindsym $sup+ctrl+Mod1+Left resize grow width 10 px or 10 ppt
  229.  
  230.  
  231.  
  232. # Window borders
  233. #new_window 1pixel
  234. smart_borders on
  235. #hide_edge_borders both
  236. for_window [class="^.*"] border pixel 4
  237. gaps inner 10
  238. gaps outer 10
  239.  
  240. #Rounded corners
  241. #border_radius 5
  242.  
  243. # Color Settings
  244. client.focused #FE2644 #FE2644 #000088 #00C1FF
  245. client.focused_inactive #00C1FF #00C1FF #ffffff #2C2C2C
  246. client.unfocused #0310EA #0310EA #ffffff #2C2C2C
  247. client.urgent #00C1FF #00C1FF #000088 #00C1FF
  248.  
  249.  
  250. #Resizing Window Borders
  251. bindsym $mod+Shift+o gaps inner current plus 5
  252. bindsym $mod+Shift+p gaps inner current minus 5
  253.  
  254. #Screenshots
  255. bindsym Print exec scrot $HOME/Pictures/screenshots/`date +%Y-%m-%d_%H:%M:%S`.png
  256. bindsym Shift+Print exec scrot -u $HOME/Pictures/screenshots/`date +%Y-%m-%d_%H:%M:%S`.png
  257. bindsym ctrl+Print exec scrot -s $HOME/Pictures/screenshots/`date +%Y-%m-%d_%H:%M:%S`.png
  258.  
  259.  
  260. #Picon/Compton
  261. #if you want transparency on non-focused windows, ... USE -CGb --backend glx --vsync opengl to stop ghosting
  262. #exec_always --no-startup-id compton --config ~/.config/i3/compton.conf
  263. #exec_always --no-startup-id compton --config ~/.config/i3/compton.conf -CGb --backend glx --vsync opengl -z
  264. #exec --no-startup-id compton --config ~/.config/i3/compton.conf
  265. #exec --no-startup-id picom --config $HOME/.config/i3/picom.conf
  266. #exec --no-startup-id "picom --config $HOME/.config/i3/compton.conf"
  267.  
  268.  
  269.  
  270. #Conky
  271. exec_always --no-startup-id conky -c ~/.config/i3/my.conkyrc
  272.  
  273.  
  274.  
  275. #Open Thunar
  276. bindsym $mod+ctrl+a exec thunar
  277.  
  278. #Start Firefox
  279. bindsym $mod+ctrl+f exec firefox
  280.  
  281. #Start Vivaldi
  282. bindsym $mod+ctrl+v exec vivaldi-stable
  283.  
  284. #Start Brave
  285. bindsym $mod+ctrl+b exec brave
  286.  
  287. #Lock i3
  288. bindsym $mod+ctrl+l exec i3lock
  289.  
  290. #STOP/HIDE EVERYTHING
  291. 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
  292.  
  293. #Lockscreen
  294. #bindsym $mod+Shift+x exec betterlockscreen -l dim
  295.  
  296.  
  297.  
  298.  
  299. ######Shit to fix######
  300.  
  301. #Betterlock
  302. #COMMAND INCOMPLETE
  303. #bindsym $mod+ctrl+x exec betterlockscreen ~/packages/betterlockscreen
  304.  
  305. #for_window [instance="dropdown_dropdowncalc"] border pixel 2
  306. #bindsym $mod+Shift+m exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement