Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2020
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.52 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 pango:monospace 8
  17. font pango:Ubuntu Mono Bold 12
  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 8
  22.  
  23. # Before i3 v4.8, we used to recommend this one as the default:
  24. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  25. # The font above is very space-efficient, that is, it looks good, sharp and
  26. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  27. # X core fonts rendering does not support right-to-left and this being a bitmap
  28. # font, it doesn’t scale on retina/hidpi displays.
  29.  
  30. # Use Mouse+$mod to drag floating windows to their wanted position
  31. floating_modifier $mod
  32.  
  33. # start a terminal #i3-sensible-terminal
  34. bindsym $mod+Return exec urxvt
  35.  
  36. # kill focused window
  37. bindsym $mod+Shift+q kill
  38.  
  39. # start dmenu (a program launcher)
  40. #bindsym $mod+d exec dmenu_run
  41. # There also is the (new) i3-dmenu-desktop which only displays applications
  42. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  43. # installed.
  44. #bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  45. bindsym $mod+d exec rofi -show run -lines 15 -eh 2 -width 40 -padding 800 -bw 0 -font "Manjari 14"
  46.  
  47. # change focus
  48. #bindsym $mod+j focus left
  49. #bindsym $mod+k focus down
  50. #bindsym $mod+l focus up
  51. #bindsym $mod+odiaeresis focus right
  52.  
  53. # alternatively, you can use the cursor keys:
  54. bindsym $mod+Left focus left
  55. bindsym $mod+Down focus down
  56. bindsym $mod+Up focus up
  57. bindsym $mod+Right focus right
  58.  
  59. # move focused window
  60. #bindsym $mod+Shift+j move left
  61. #bindsym $mod+Shift+k move down
  62. #bindsym $mod+Shift+l move up
  63. #bindsym $mod+Shift+odiaeresis move right
  64.  
  65. # alternatively, you can use the cursor keys:
  66. bindsym $mod+Shift+Left move left
  67. bindsym $mod+Shift+Down move down
  68. bindsym $mod+Shift+Up move up
  69. bindsym $mod+Shift+Right move right
  70.  
  71. # split in horizontal orientation
  72. bindsym $mod+Shift+v split h
  73.  
  74. # split in vertical orientation
  75. bindsym $mod+Shift+h split v
  76.  
  77. # enter fullscreen mode for the focused container
  78. bindsym $mod+f fullscreen toggle
  79.  
  80. # change container layout (stacked, tabbed, toggle split)
  81. #bindsym $mod+s layout stacking
  82. #bindsym $mod+w layout tabbed
  83. #bindsym $mod+e layout toggle split
  84.  
  85. # toggle tiling / floating
  86. bindsym $mod+Shift+space floating toggle
  87.  
  88. # change focus between tiling / floating windows
  89. bindsym $mod+space focus mode_toggle
  90.  
  91. # focus the parent container
  92. bindsym $mod+a focus parent
  93.  
  94. # focus the child container
  95. #bindsym $mod+d focus child
  96.  
  97. #
  98. set $ws1 "1 "
  99. set $ws2 "2 "
  100. set $ws3 "3 "
  101. set $ws4 "4 "
  102. set $ws5 "5 "
  103. set $ws6 "6 "
  104. #set $ws7 "7 "
  105. set $ws7 "7 "
  106. set $ws8 "8 "
  107. set $ws9 "9 "
  108. set $ws10 "10"
  109.  
  110. # switch to workspace
  111. bindsym $mod+1 workspace $ws1
  112. bindsym $mod+2 workspace $ws2
  113. bindsym $mod+3 workspace $ws3
  114. bindsym $mod+4 workspace $ws4
  115. bindsym $mod+5 workspace $ws5
  116. bindsym $mod+6 workspace $ws6
  117. bindsym $mod+7 workspace $ws7
  118. bindsym $mod+8 workspace $ws8
  119. bindsym $mod+9 workspace $ws9
  120. bindsym $mod+0 workspace $ws10
  121.  
  122. # move focused container to workspace
  123. bindsym $mod+Shift+1 move container to workspace $ws1
  124. bindsym $mod+Shift+2 move container to workspace $ws2
  125. bindsym $mod+Shift+3 move container to workspace $ws3
  126. bindsym $mod+Shift+4 move container to workspace $ws4
  127. bindsym $mod+Shift+5 move container to workspace $ws5
  128. bindsym $mod+Shift+6 move container to workspace $ws6
  129. bindsym $mod+Shift+7 move container to workspace $ws7
  130. bindsym $mod+Shift+8 move container to workspace $ws8
  131. bindsym $mod+Shift+9 move container to workspace $ws9
  132. bindsym $mod+Shift+0 move container to workspace $ws10
  133.  
  134. # reload the configuration file
  135. bindsym $mod+Shift+c reload
  136. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  137. bindsym $mod+Shift+r restart
  138.  
  139. set $mode_system ' (L)ogout, (R)eboot, (Shift+S) shutdown'
  140. mode "$mode_system" {
  141.     bindsym l exec --no-startup-id i3-msg exit, mode "default"
  142.     bindsym r exec --no-startup-id systemctl reboot, mode "default"
  143.     bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"  
  144.  
  145.     # back to normal: Enter or Escape
  146.     bindsym Return mode "default"
  147.     bindsym Escape mode "default"
  148. }
  149.  
  150. bindsym $mod+Pause mode "$mode_system"
  151.  
  152.  
  153. # Press $mod+o followed by the bindsym's Escape or Return to launch applications,
  154. # or return to the default mode, respectively.
  155. bindsym $mod+o mode "exec"
  156.  
  157. mode "exec" {
  158.     bindsym f exec ~/bin/waterfox; mode "default"
  159.     bindsym t exec teamspeak3; mode "default"
  160.     bindsym x exec urxvt -e 'ranger'; mode "default"
  161.     bindsym d exec discord; mode "default"
  162.     bindsym g exec geany; mode "default"
  163.     bindsym m exec urxvt -e mocp -T transparent-background; mode "default"
  164.     bindsym q exec qbittorrent; mode "default"
  165.     bindsym s exec steam; mode "default"
  166.  
  167.     bindsym Escape mode "default"
  168.     bindsym Return mode "default"
  169. }
  170.  
  171. bindsym $mod+v exec urxvt -e /home/andre/bin/randomvpn_nmcli
  172. # Press $mod+v followed by the bindsym's Escape or Return to establish a vpn connection,
  173. # or return to the default mode, respectively.
  174. #set $mode_launcher ' [N] ormal, [T] orrent'
  175. #bindsym $mod+v mode "$mode_launcher"
  176.  
  177. #mode "$mode_launcher" {
  178. #    bindsym n exec urxvt -e /home/andre/bin/randomvpn_cyberghost
  179. #    bindsym t exec urxvt -e /home/andre/bin/randomvpn_cyberghost t
  180.  
  181. #    bindsym Escape mode "default"
  182. #    bindsym Return mode "default"
  183. #}
  184.  
  185. #Sofortige Größenänderung
  186. bindsym $mod+Ctrl+Right resize shrink width 5 px or 1 ppt
  187. bindsym $mod+Ctrl+Up resize grow height 5 px or 1 ppt
  188. bindsym $mod+Ctrl+Down resize shrink height 5 px or 1 ppt
  189. bindsym $mod+Ctrl+Left resize grow width 5 px or 1 ppt
  190.  
  191. # Set colors from Xresources
  192. # NOTE: The '#f0f0f0' in the lines below is the color i3 will use if
  193. # it fails to get colors from Xresources.
  194. set_from_resource $fg i3wm.color7 #f0f0f0
  195. set_from_resource $bg i3wm.color0 #f0f0f0
  196. set_from_resource $focus i3wm.color3 #f0f0f0
  197. set_from_resource $urgent i3wm.color5 #f0f0f0
  198. set_from_resource $inactive i3wm.color4 #f0f0f0
  199. set_from_resource $indicator i3wm.color15 #f0f0f0
  200. set_from_resource $highlight i3wm.color3 #f0f0f0
  201. set_from_resource $border-unfocused i3wm.color14 #f0f0f0
  202.  
  203. # class                 border          backgr.     text    indicator       child_border
  204. client.focused          $border-unfocused     $bg        $fg     $indicator     $highlight
  205. client.focused_inactive $border-unfocused     $bg        $fg     $indicator     $bg
  206. client.unfocused        $border-unfocused     $inactive  $fg     $indicator     $bg
  207. client.urgent           $border-unfocused     $bg        $fg     $indicator     $bg
  208. client.placeholder      $border-unfocused     $bg        $fg     $indicator     $bg
  209.  
  210. client.background       $bg
  211.  
  212. #hide_edge_borders both
  213. # No window titles
  214. #new_window none
  215. # Do not focus pop up windows
  216. no_focus [window_role="pop-up"]
  217. #Fenster werden horizontal geteilt
  218. default_orientation vertical
  219.  
  220. ## i3-gaps ##
  221. for_window [class="^.*"] border pixel 3
  222. #smart_gaps on
  223. smart_borders on
  224. gaps outer 4
  225. gaps inner 6
  226.  
  227. # KEYBINDINGS #
  228.  
  229. # Take Screenshots
  230. bindsym Print exec "scrot '%y-%m-%d-%s_scrot.png' -e 'mv $f ~/Bilder/SCROT/.'"
  231. # Audio Media Keys
  232. #bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1 +5%
  233. #bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1 -5%
  234. #bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle
  235. # Media player controls
  236. #bindsym XF86AudioPlay exec mocp -G
  237. #bindsym XF86AudioStop exec mocp -P
  238. #bindsym XF86AudioNext exec mocp -f
  239. #bindsym XF86AudioPrev exec mocp -r
  240. # Start calculator on calculator key
  241. # bindsym XF86Calculator exec gnome-calculator
  242. # Lock Computer
  243. bindsym $mod+Alt+l exec blurlock
  244. # Let PyWal use a new wallpaper
  245. bindsym $mod+Ctrl+w exec wal -i "/home/andre/Bilder/."
  246.  
  247. # AUTOSTART PROGRAMS #
  248.  
  249. exec urxvt -e mocp -T transparent-background
  250. exec urxvt
  251. exec ~/bin/waterfox
  252. exec protonmail-bridge --no-window > /dev/null 2>&1 &
  253. exec sleep 5;thunderbird
  254.  
  255. # Preserve Wallpaper & Colorscheme
  256. #exec wal -R
  257. # Set new wallpaper at every user login
  258. exec wal -i "/home/andre/Bilder/."
  259. # Only set wallpaper
  260. #exec feh --bg-fill ~/Bilder/896574.png
  261. # Network Manager
  262. exec --no-startup-id nm-applet
  263. # Bluetooth (Blueman) Tray Icon
  264. exec blueman-applet
  265. # PulseEffects as Background-Service
  266. exec_always pulseeffects --gapplication-service
  267. # Compton for floating windows
  268. exec_always --no-startup-id ~/.config/i3/picom.sh
  269. # RedShift as Night Light with geoinfo
  270. exec redshift -l 52.5:13.4 -b 1.0:0.8 -t 6200:3000
  271. # Numlock on
  272. exec_always --no-startup-id numlockx on
  273. # Polybar Start Script
  274. exec_always --no-startup-id ~/.config/i3/polybar.sh &
  275. # Pamac Package Manager System Tray
  276. exec --no-startup-id pamac-tray
  277. # Start Polkit for GUI Authentification
  278. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
  279. # xautolock
  280. exec --no-startup-id xautolock -time 15 -locker blurlock
  281. # Some fixes already embedded in Manjaro i3
  282. exec_always --no-startup-id ff-theme-util
  283. exec_always --no-startup-id fix-xcursor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement