Advertisement
Sveske_Juice

i3_config

Aug 15th, 2022
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.96 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. # Font for window titles. Will also be used by the bar unless a different font
  15. # is used in the bar {} block below.
  16. #font xft:Iosevka Nerd Font 12
  17. # font pango:monospace 9
  18.  
  19. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  20. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  21. font pango:DejaVu Sans Mono 11
  22.  
  23. # Start XDG autostart .desktop files using dex. See also
  24. # https://wiki.archlinux.org/index.php/XDG_Autostart
  25. exec --no-startup-id dex --autostart --environment i3
  26.  
  27. # The combination of xss-lock, nm-applet and pactl is a popular choice, so
  28. # they are included here as an example. Modify as you see fit.
  29.  
  30. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
  31. # screen before suspend. Use loginctl lock-session to lock your screen.
  32. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
  33.  
  34. # Use pactl to adjust volume in PulseAudio.
  35. # bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%
  36. # bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10%
  37.  
  38. # Use custom script to change volume
  39. bindsym XF86AudioRaiseVolume exec --no-startup-id $HOME/.local/bin/changevolume +5%
  40. bindsym XF86AudioLowerVolume exec --no-startup-id $HOME/.local/bin/changevolume -5%
  41.  
  42. #bindsym XF86AudioRaiseVolume+Shift exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK +5%
  43. #bindsym XF86AudioLowerVolume+Shift exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK -5%
  44.  
  45. bindsym XF86AudioMute exec --no-startup-id $HOME/.local/bin/changevolume mute
  46.  
  47. # Dont think the button works...
  48. # bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && pkill -SIGRTMIN+1 i3blocks
  49.  
  50. # Use Mouse+$mod to drag floating windows to their wanted position
  51. floating_modifier $mod
  52.  
  53. # start a terminal
  54. #bindsym $mod+Return exec i3-sensible-terminal
  55. bindsym $mod+Return exec --no-startup-id alacritty
  56.  
  57. # Kill focused window
  58. bindsym $mod+Shift+q kill
  59.  
  60. # Rofi Appp Launcher
  61. # bindcode $mod+40 exec --no-startup-id "$HOME/.config/rofi/launcher/launcher.sh"
  62.  
  63.  
  64.  
  65. # Change focus
  66. bindsym $mod+j focus left
  67. bindsym $mod+k focus down
  68. bindsym $mod+semicolon focus right
  69.  
  70. # Alternatively, you can use the cursor keys:
  71. bindsym $mod+Left focus left
  72. bindsym $mod+Tab focus right
  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+j move left
  79. bindsym $mod+Shift+k move down
  80. bindsym $mod+Shift+l move up
  81. bindsym $mod+Shift+semicolon 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+h 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. # Define names for default workspaces for which we configure key bindings later on.
  113. # We use variables to avoid repeating the names in multiple places.
  114. set $ws1 "1"
  115. set $ws2 "2"
  116. set $ws3 "3"
  117. set $ws4 "4"
  118. set $ws5 "5"
  119. set $ws6 "6"
  120. set $ws7 "7"
  121. set $ws8 "8"
  122. set $ws9 "9"
  123. set $ws10 "10"
  124.  
  125. # Switch to workspace
  126. bindsym $mod+1 workspace number $ws1
  127. bindsym $mod+2 workspace number $ws2
  128. bindsym $mod+3 workspace number $ws3
  129. bindsym $mod+4 workspace number $ws4
  130. bindsym $mod+5 workspace number $ws5
  131. bindsym $mod+6 workspace number $ws6
  132. bindsym $mod+7 workspace number $ws7
  133. bindsym $mod+8 workspace number $ws8
  134. bindsym $mod+9 workspace number $ws9
  135. bindsym $mod+0 workspace number $ws10
  136.  
  137. # Move focused container to workspace
  138. bindsym $mod+Shift+1 move container to workspace number $ws1
  139. bindsym $mod+Shift+2 move container to workspace number $ws2
  140. bindsym $mod+Shift+3 move container to workspace number $ws3
  141. bindsym $mod+Shift+4 move container to workspace number $ws4
  142. bindsym $mod+Shift+5 move container to workspace number $ws5
  143. bindsym $mod+Shift+6 move container to workspace number $ws6
  144. bindsym $mod+Shift+7 move container to workspace number $ws7
  145. bindsym $mod+Shift+8 move container to workspace number $ws8
  146. bindsym $mod+Shift+9 move container to workspace number $ws9
  147. bindsym $mod+Shift+0 move container to workspace number $ws10
  148.  
  149. # Reload the configuration file
  150. bindsym $mod+Shift+c reload
  151. # Restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  152. bindsym $mod+Shift+r restart
  153.  
  154. # Exit i3 (logs you out of your X session)
  155. bindsym $mod+Shift+e exec "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. smart_borders on
  185.  
  186. # Window colors, read from Xresources
  187. # set_from_resource $fg foreground
  188. # set_from_resource $bg background
  189. # set_from_resource $fbg color8
  190.  
  191. # client.focused $fbg $fbg $fg $fbg
  192. # client.focused_inactive $bg $bg $bg $bg
  193. # client.unfocused $bg $bg $fg $bg
  194. # client.urgent $bg $bg $bg $bg
  195.  
  196. # MANUAL COLOR SPECIFICATION
  197. set $bgcolor #282828
  198. set $ibgcolor #202020
  199. set $textcolor #ffffff
  200. set $itextcolor #969696
  201. set $ubgcolor #ff0000
  202.  
  203.  
  204. # border background text indicator
  205. client.focused $bgcolor $bgcolor $textcolor $bgcolor
  206. client.unfocused $ibgcolor $ibgcolor $itextcolor $ibgcolor
  207. client.focused_inactive $ibgcolor $ibgcolor $itextcolor $ibgcolor
  208. client.urgent $ubgcolor $ubgcolor $textcolor $ubgcolor
  209.  
  210. # Keyboard layout
  211. exec_always --no-startup-id setxkbmap dk
  212.  
  213. # Display wallpaper
  214. # exec_always --no-startup-id feh --bg-fill /home/amonk/Media/Pictures/Wallpapers/burning_tree.jpg
  215. # exec_always --no-startup-id feh --bg-scale /usr/share/backgrounds/autumn_forrest.jpg
  216.  
  217.  
  218. # Custom keybindings
  219. # lock screen
  220. bindsym $mod+x exec --no-startup-id i3lock
  221. # start filemanager
  222. bindsym $mod+q exec --no-startup-id thunar
  223.  
  224. # screen brightness
  225. bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -ctrl amdgpu_bl0 -inc 5
  226. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -ctrl amdgpu_bl0 -dec 5
  227.  
  228. # keyboard brightness
  229. bindsym XF86KbdBrightnessUp exec --no-startup-id xbacklight -ctrl asus::kbd_backlight -inc 33.3333
  230. bindsym XF86KbdBrightnessDown exec --no-startup-id xbacklight -ctrl asus::kbd_backlight -dec 33.3333
  231.  
  232. bindsym $mod+p exec --no-startup-id $HOME/.local/bin/extendmonitor
  233. bindsym $mod+c exec --no-startup-id flameshot gui
  234. bindsym $mod+o exec --no-startup-id flameshot screen
  235. # Assign Programns to workspaces
  236. #for_window [class="firefox"] move to workspace $ws2
  237. #for_window [class="Spotify"] move to workspace $ws3
  238.  
  239. # scratchpad
  240. # Make the currently focused window a scratchpad
  241. bindsym $mod+Shift+minus move scratchpad
  242.  
  243. # Show the first scratchpad window
  244. bindsym $mod+minus scratchpad show
  245.  
  246. # Show the sup-mail scratchpad window, if any.
  247. # bindsym mod4+s [title="^Sup ::"] scratchpad show
  248.  
  249. # Set the border size for windows within search reequirement
  250. for_window [class=".*"] border pixel 1.8
  251.  
  252. # gaps
  253. gaps inner 10
  254. gaps outer 4
  255.  
  256. # Applications that floats on default
  257. for_window [class="File-roller" window_type="normal"] floating enable resize set 640 480
  258. for_window [class="Qalculate-gtk"] floating enable
  259. for_window [class="Tint2"] floating enable
  260. # polkit agent, runs as a service
  261. # exec_always /usr/lib/xfce-polkit/xfce-polkit
  262.  
  263. # Polybar launch script,
  264. # Reason for sleep: https://www.reddit.com/r/Polybar/comments/w19jql/i3_black_spots_on_system_tray_sometimes_occur/
  265. # exec_always --no-startup-id $HOME/.config/polybar/launch.sh
  266.  
  267.  
  268. # All systray applets are started by xdg autostart (dex):
  269. # Audio systray icon
  270. # exec --no-startup-id volctl
  271.  
  272. # NetworkManager systray icon
  273. # exec --no-startup-id nm-applet
  274.  
  275. # Bluetooth systray icon
  276. # exec --no-startup-id blueman-applet
  277.  
  278. # Removable media/Auto mounter
  279. # exec --no-startup-id udiskie -n -t
  280.  
  281. # Clipboard manager
  282. # exec --no-startup-id parcellite
  283.  
  284. # Volume change notifier (using custom scripts)
  285. # exec --no-startup-id pa-notify -t 2
  286.  
  287. # Screenshot tool sys tray icon
  288. # exec --no-startup-id flameshot
  289.  
  290. # Main bar
  291. exec_always --no-startup-id eww open --toggle panel
  292.  
  293. exec --no-startup-id picom --experimental-backends
  294.  
  295. # Albert launcher
  296. # exec --no-startup-id albert
  297.  
  298. # Wallpaper setter
  299. exec --no-startup-id nitrogen --restore
  300.  
  301. exec xrdb -merge ~/.Xresources
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement