A collection of scripts and configurations for Bash (and others)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

272 lines
8.8KB

  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. set $mod Mod4
  11. # Font for window titles. Will also be used by the bar unless a different font
  12. # is used in the bar {} block below.
  13. font pango:monospace 8
  14. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  15. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  16. #font pango:DejaVu Sans Mono 8
  17. # Before i3 v4.8, we used to recommend this one as the default:
  18. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  19. # The font above is very space-efficient, that is, it looks good, sharp and
  20. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  21. # X core fonts rendering does not support right-to-left and this being a bitmap
  22. # font, it doesn’t scale on retina/hidpi displays.
  23. # Use Mouse+$mod to drag floating windows to their wanted position
  24. floating_modifier $mod
  25. # start a terminal
  26. bindsym $mod+Return exec i3-sensible-terminal
  27. # kill focused window
  28. bindsym $mod+Shift+q kill
  29. # start dmenu (a program launcher)
  30. #bindsym $mod+d exec dmenu_run
  31. # There also is the (new) i3-dmenu-desktop which only displays applications
  32. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  33. # installed.
  34. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  35. # change focus
  36. bindsym $mod+j focus left
  37. bindsym $mod+k focus down
  38. bindsym $mod+l focus up
  39. bindsym $mod+semicolon focus right
  40. # alternatively, you can use the cursor keys:
  41. bindsym $mod+Left focus left
  42. bindsym $mod+Down focus down
  43. bindsym $mod+Up focus up
  44. bindsym $mod+Right focus right
  45. # move focused window
  46. bindsym $mod+Shift+j move left
  47. bindsym $mod+Shift+k move down
  48. bindsym $mod+Shift+l move up
  49. bindsym $mod+Shift+semicolon move right
  50. # alternatively, you can use the cursor keys:
  51. bindsym $mod+Shift+Left move left
  52. bindsym $mod+Shift+Down move down
  53. bindsym $mod+Shift+Up move up
  54. bindsym $mod+Shift+Right move right
  55. # split in horizontal orientation
  56. bindsym $mod+h split h
  57. # split in vertical orientation
  58. bindsym $mod+v split v
  59. # enter fullscreen mode for the focused container
  60. bindsym $mod+f fullscreen toggle
  61. # change container layout (stacked, tabbed, toggle split)
  62. bindsym $mod+s layout stacking
  63. bindsym $mod+w layout tabbed
  64. bindsym $mod+e layout toggle split
  65. # toggle tiling / floating
  66. bindsym $mod+Shift+space floating toggle
  67. # change focus between tiling / floating windows
  68. bindsym $mod+space focus mode_toggle
  69. # focus the parent container
  70. bindsym $mod+a focus parent
  71. # focus the child container
  72. #bindsym $mod+d focus child
  73. # Define names for default workspaces for which we configure key bindings later on.
  74. # We use variables to avoid repeating the names in multiple places.
  75. set $ws1 "1: Terminals"
  76. set $ws2 "2: Development"
  77. set $ws3 "3: File Manager"
  78. set $ws4 "4: Misc A"
  79. set $ws5 "5 HTTP A"
  80. set $ws6 "6 HTTP B"
  81. set $ws7 "7: Misc B"
  82. set $ws8 "8: Steam"
  83. set $ws9 "9: Discord"
  84. set $ws10 "10 Gaming"
  85. # switch to workspace
  86. bindsym $mod+1 workspace $ws1
  87. bindsym $mod+2 workspace $ws2
  88. bindsym $mod+3 workspace $ws3
  89. bindsym $mod+4 workspace $ws4
  90. bindsym $mod+5 workspace $ws5
  91. bindsym $mod+6 workspace $ws6
  92. bindsym $mod+7 workspace $ws7
  93. bindsym $mod+8 workspace $ws8
  94. bindsym $mod+9 workspace $ws9
  95. bindsym $mod+0 workspace $ws10
  96. # move focused container to workspace
  97. bindsym $mod+Shift+1 move container to workspace $ws1
  98. bindsym $mod+Shift+2 move container to workspace $ws2
  99. bindsym $mod+Shift+3 move container to workspace $ws3
  100. bindsym $mod+Shift+4 move container to workspace $ws4
  101. bindsym $mod+Shift+5 move container to workspace $ws5
  102. bindsym $mod+Shift+6 move container to workspace $ws6
  103. bindsym $mod+Shift+7 move container to workspace $ws7
  104. bindsym $mod+Shift+8 move container to workspace $ws8
  105. bindsym $mod+Shift+9 move container to workspace $ws9
  106. bindsym $mod+Shift+0 move container to workspace $ws10
  107. # Defining names for monitors
  108. set $monl "HDMI-0"
  109. set $monr "DVI-D-0"
  110. # Assigning workspaces to specific displays!
  111. workspace $ws1 output $monl
  112. workspace $ws2 output $monl
  113. workspace $ws3 output $monl
  114. workspace $ws4 output $monl
  115. workspace $ws5 output $monl
  116. workspace $ws6 output $monr
  117. workspace $ws7 output $monr
  118. workspace $ws8 output $monr
  119. workspace $ws9 output $monr
  120. workspace $ws10 output $monr
  121. # Assigning applications to workspaces!
  122. assign [class="Emacs|Godot"] $ws2
  123. assign [class="discord"] $ws9
  124. assign [class="Steam"] $ws8
  125. assign [class="Firefox"] $ws6
  126. assign [class="Lutris"] $ws10
  127. for_window [class="feh|mpv|Pavucontrol|Steam"] floating enable
  128. for_window [title="Steam - Update News"] kill
  129. for_window [window_role="^conversation$"] floating enable
  130. for_window [window_role="messages"] floating enable
  131. for_window [window_role="pop-up"] floating enable
  132. for_window [window_role="task_dialog"] floating enable
  133. # Remove the titlebar.
  134. for_window [class="Chromium|Firefox|Steam|discord|Lutris"] border pixel 1
  135. for_window [class="mpv|URxvt"] border pixel 1
  136. # reload the configuration file
  137. bindsym $mod+Shift+c reload
  138. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  139. bindsym $mod+Shift+r restart
  140. # exit i3 (logs you out of your X session)
  141. 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'"
  142. # resize window (you can also use the mouse for that)
  143. mode "resize" {
  144. # These bindings trigger as soon as you enter the resize mode
  145. # Pressing left will shrink the window’s width.
  146. # Pressing right will grow the window’s width.
  147. # Pressing up will shrink the window’s height.
  148. # Pressing down will grow the window’s height.
  149. bindsym j resize shrink width 10 px or 10 ppt
  150. bindsym k resize grow height 10 px or 10 ppt
  151. bindsym l resize shrink height 10 px or 10 ppt
  152. bindsym semicolon resize grow width 10 px or 10 ppt
  153. # same bindings, but for the arrow keys
  154. bindsym Left resize shrink width 10 px or 10 ppt
  155. bindsym Down resize grow height 10 px or 10 ppt
  156. bindsym Up resize shrink height 10 px or 10 ppt
  157. bindsym Right resize grow width 10 px or 10 ppt
  158. # back to normal: Enter or Escape or $mod+r
  159. bindsym Return mode "default"
  160. bindsym Escape mode "default"
  161. bindsym $mod+r mode "default"
  162. }
  163. bindsym $mod+r mode "resize"
  164. # Start i3bar to display a workspace bar (plus the system information i3status
  165. # finds out, if available)
  166. #bar {
  167. # status_command i3status
  168. #}
  169. # Set colors from Xresources
  170. # Change 'color7' and 'color2' to whatever colors you want i3 to use
  171. # from the generated scheme.
  172. # NOTE: The '#f0f0f0' in the lines below is the color i3 will use if
  173. # it fails to get colors from Xresources.
  174. set_from_resource $fg i3wm.color7 #f0f0f0
  175. set_from_resource $bg i3wm.color2 #f0f0f0
  176. # class border backgr. text indicator child_border
  177. client.focused $bg $bg $fg $bg $bg
  178. client.focused_inactive $bg $bg $fg $bg $bg
  179. client.unfocused $bg $bg $fg $bg $bg
  180. client.urgent $bg $bg $fg $bg $bg
  181. client.placeholder $bg $bg $fg $bg $bg
  182. client.background $bg
  183. bindsym $mod+d exec dmenu_run -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg"
  184. bindsym $mod+shift+x exec i3lock
  185. bindsym $mod+ctrl+r exec "wal --backend colorthief -a 180 -i ~/Media/Images/Wallpaper/TFTL/"
  186. # -------------------------------------------------
  187. # Custom Keybindings
  188. # -------------------------------------------------
  189. bindsym $mod+ctrl+e exec emacs
  190. bindsym $mod+alt+e exec gedit
  191. bindsym $mod+ctrl+w exec firefox
  192. bindsym $mod+ctrl+s exec steam
  193. bindsym $mod+ctrl+d exec ~/Applications/discord/Discord
  194. bindsym $mod+ctrl+f exec thunar
  195. # Screenshot...
  196. bindsym $mod+ctrl+shift+s exec ~/.local/sbin/screenshot
  197. # -------------------------------------------------
  198. # Autostart items!
  199. # -------------------------------------------------
  200. # Run udiskie auto mounter
  201. exec --no-startup-id udiskie -t
  202. # Launch the notification daemon.
  203. exec --no-startup-id dunst &
  204. # Daemonize the rxvt-unicode terminal emulator.
  205. exec --no-startup-id urxvtd -q -f -o &
  206. # set composition manager
  207. exec --no-startup-id picom -b --config /dev/null &
  208. # set wallpaper
  209. exec --no-startup-id wal -R &
  210. # # exec_always nitrogen --restore
  211. exec --no-startup-id ~/.dropbox-dist/dropboxd &
  212. # Restore screen layout
  213. exec --no-startup-id ~/.screenlayout/layout.sh &
  214. #Polybar
  215. exec_always --no-startup-id $HOME/.config/polybar/launch.sh
  216. # Start SC-Controller (Gamepad / Steam Controller GUI)
  217. exec --no-startup-id scc gui &
  218. # Start pCloud!
  219. exec pcloud &
  220. # Programs to start automatically!
  221. exec steam &
  222. exec ~/.local/sbin/discord &
  223. exec firefox &
  224. #exec lutris &