C_malware

i3 config file

May 4th, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.91 KB | None | 0 0
  1. # i3 config file (v4)
  2. #
  3. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  4. #
  5. # This config file uses keycodes (bindsym) and was written for the QWERTY
  6. # layout.
  7. #
  8. # To get a config file with the same key positions, but for your current
  9. # layout, use the i3-config-wizard
  10. #
  11.  
  12. # Font for window titles. Will also be used by the bar unless a different font
  13. # is used in the bar {} block below.
  14. font pango:monospace 8
  15.  
  16. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  17. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  18. #font pango:DejaVu Sans Mono 8
  19.  
  20. # Start XDG autostart .desktop files using dex. See also
  21. # https://wiki.archlinux.org/index.php/XDG_Autostart
  22. exec --no-startup-id dex --autostart --environment i3
  23.  
  24. # The combination of xss-lock, nm-applet and pactl is a popular choice, so
  25. # they are included here as an example. Modify as you see fit.
  26.  
  27. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
  28. # screen before suspend. Use loginctl lock-session to lock your screen.
  29. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
  30.  
  31. # NetworkManager is the most popular way to manage wireless networks on Linux,
  32. # and nm-applet is a desktop environment-independent system tray GUI for it.
  33. exec --no-startup-id nm-applet
  34.  
  35. # Use pactl to adjust volume in PulseAudio.
  36. set $refresh_i3status killall -SIGUSR1 i3status
  37. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
  38. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
  39. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
  40. bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
  41.  
  42. # use these keys for focus, movement, and resize directions when reaching for
  43. # the arrows is not convenient
  44. set $up l
  45. set $down k
  46. set $left j
  47. set $right semicolon
  48.  
  49. # use Mouse+Mod1 to drag floating windows to their wanted position
  50. floating_modifier Mod1
  51.  
  52. # move tiling windows via drag & drop by left-clicking into the title bar,
  53. # or left-clicking anywhere into the window while holding the floating modifier.
  54. tiling_drag modifier titlebar
  55.  
  56. # start a terminal
  57. bindsym Mod1+Return exec i3-sensible-terminal
  58.  
  59. # kill focused window
  60. bindsym Mod1+Shift+q kill
  61.  
  62. # start dmenu (a program launcher)
  63. bindsym Mod1+d exec --no-startup-id dmenu_run
  64. # A more modern dmenu replacement is rofi:
  65. # There also is i3-dmenu-desktop which only displays applications shipping a
  66. # .desktop file. It is a wrapper around dmenu, so you need that installed.
  67. # bindsym Mod1+d exec --no-startup-id i3-dmenu-desktop
  68.  
  69. # change focus
  70. bindsym Mod1+$left focus left
  71. bindsym Mod1+$down focus down
  72. bindsym Mod1+$up focus up
  73. bindsym Mod1+$right focus right
  74.  
  75. # alternatively, you can use the cursor keys:
  76. bindsym Mod1+Left focus left
  77. bindsym Mod1+Down focus down
  78. bindsym Mod1+Up focus up
  79. bindsym Mod1+Right focus right
  80.  
  81. # move focused window
  82. bindsym Mod1+Shift+$left move left
  83. bindsym Mod1+Shift+$down move down
  84. bindsym Mod1+Shift+$up move up
  85. bindsym Mod1+Shift+$right move right
  86.  
  87. # alternatively, you can use the cursor keys:
  88. bindsym Mod1+Shift+Left move left
  89. bindsym Mod1+Shift+Down move down
  90. bindsym Mod1+Shift+Up move up
  91. bindsym Mod1+Shift+Right move right
  92.  
  93. # split in horizontal orientation
  94. bindsym Mod1+h split h
  95.  
  96. # split in vertical orientation
  97. bindsym Mod1+v split v
  98.  
  99. # enter fullscreen mode for the focused container
  100. bindsym Mod1+f fullscreen toggle
  101.  
  102. # change container layout (stacked, tabbed, toggle split)
  103. bindsym Mod1+s layout stacking
  104. bindsym Mod1+w layout tabbed
  105. bindsym Mod1+e layout toggle split
  106.  
  107. # toggle tiling / floating
  108. bindsym Mod1+Shift+space floating toggle
  109.  
  110. # change focus between tiling / floating windows
  111. bindsym Mod1+space focus mode_toggle
  112.  
  113. # focus the parent container
  114. bindsym Mod1+a focus parent
  115.  
  116. # focus the child container
  117. #bindsym Mod1+d focus child
  118.  
  119. # move the currently focused window to the scratchpad
  120. bindsym Mod1+Shift+minus move scratchpad
  121.  
  122. # Show the next scratchpad window or hide the focused scratchpad window.
  123. # If there are multiple scratchpad windows, this command cycles through them.
  124. bindsym Mod1+minus scratchpad show
  125.  
  126. # Define names for default workspaces for which we configure key bindings later on.
  127. # We use variables to avoid repeating the names in multiple places.
  128. set $ws1 "1"
  129. set $ws2 "2"
  130. set $ws3 "3"
  131. set $ws4 "4"
  132. set $ws5 "5"
  133. set $ws6 "6"
  134. set $ws7 "7"
  135. set $ws8 "8"
  136. set $ws9 "9"
  137. set $ws10 "10"
  138.  
  139. # switch to workspace
  140. bindsym Mod1+1 workspace number $ws1
  141. bindsym Mod1+2 workspace number $ws2
  142. bindsym Mod1+3 workspace number $ws3
  143. bindsym Mod1+4 workspace number $ws4
  144. bindsym Mod1+5 workspace number $ws5
  145. bindsym Mod1+6 workspace number $ws6
  146. bindsym Mod1+7 workspace number $ws7
  147. bindsym Mod1+8 workspace number $ws8
  148. bindsym Mod1+9 workspace number $ws9
  149. bindsym Mod1+0 workspace number $ws10
  150.  
  151. # move focused container to workspace
  152. bindsym Mod1+Shift+1 move container to workspace number $ws1
  153. bindsym Mod1+Shift+2 move container to workspace number $ws2
  154. bindsym Mod1+Shift+3 move container to workspace number $ws3
  155. bindsym Mod1+Shift+4 move container to workspace number $ws4
  156. bindsym Mod1+Shift+5 move container to workspace number $ws5
  157. bindsym Mod1+Shift+6 move container to workspace number $ws6
  158. bindsym Mod1+Shift+7 move container to workspace number $ws7
  159. bindsym Mod1+Shift+8 move container to workspace number $ws8
  160. bindsym Mod1+Shift+9 move container to workspace number $ws9
  161. bindsym Mod1+Shift+0 move container to workspace number $ws10
  162.  
  163. # reload the configuration file
  164. bindsym Mod1+Shift+c reload
  165. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  166. bindsym Mod1+Shift+r restart
  167. # exit i3 (logs you out of your X session)
  168. bindsym Mod1+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'"
  169.  
  170. # resize window (you can also use the mouse for that)
  171. mode "resize" {
  172. # These bindings trigger as soon as you enter the resize mode
  173.  
  174. # Pressing left will shrink the window’s width.
  175. # Pressing right will grow the window’s width.
  176. # Pressing up will shrink the window’s height.
  177. # Pressing down will grow the window’s height.
  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. # same bindings, but for the arrow keys
  184. bindsym Left resize shrink width 10 px or 10 ppt
  185. bindsym Down resize grow height 10 px or 10 ppt
  186. bindsym Up resize shrink height 10 px or 10 ppt
  187. bindsym Right resize grow width 10 px or 10 ppt
  188.  
  189. # back to normal: Enter or Escape or Mod1+r
  190. bindsym Return mode "default"
  191. bindsym Escape mode "default"
  192. bindsym Mod1+r mode "default"
  193. }
  194.  
  195. bindsym Mod1+r mode "resize"
  196.  
  197. # Start i3bar to display a workspace bar (plus the system information i3status
  198.  
  199. # finds out, if available)
  200. bar {
  201. status_command i3status
  202. }
  203.  
  204. bar {
  205. separator_symbol ":/:"
  206. }
  207. # Google
  208. bindsym $mod+q exec google-chrome-stable
  209.  
  210. #######################################################################
  211. # automatically start i3-config-wizard to offer the user to create a
  212. # keysym-based config which used their favorite modifier (alt or windows)
  213. #
  214. # i3-config-wizard will not launch if there already is a config file
  215. # in ~/.config/i3/config (or $XDG_CONFIG_HOME/i3/config if set) or
  216. # ~/.i3/config.
  217. #
  218. # Please remove the following exec line:
  219. ######################################################################
Advertisement
Add Comment
Please, Sign In to add comment