config 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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 http://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 9
  14. font pango:Iosevka Nerd Font 9
  15. #font pango: M+ 1m, FontAwesome, Ionicons, 10
  16. #font FiraCode Nerd Font 9
  17. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  18. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  19. #font pango:DejaVu Sans Mono 7
  20. # Before i3 v4.8, we used to recommend this one as the default:
  21. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  22. # The font above is very space-efficient, that is, it looks good, sharp and
  23. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  24. # X core fonts rendering does not support right-to-left and this being a bitmap
  25. # font, it doesn’t scale on retina/hidpi displays.
  26. # Use Mouse+$mod to drag floating windows to their wanted position
  27. floating_modifier $mod
  28. # start a terminal
  29. bindsym $mod+Ctrl+t exec i3-sensible-terminal
  30. # kill focused window
  31. bindsym $mod+Shift+q kill
  32. # start rofi as demenu
  33. #bindsym $mod+d exec --no-startup-id "rofi -show run -theme solarized -font \\"DejaVu 9\\" -run-shell-command '{terminal} -e \\" {cmd}; read -n 1 -s\\"'"
  34. # change focus
  35. bindsym $mod+j focus left
  36. bindsym $mod+k focus down
  37. bindsym $mod+l focus up
  38. bindsym $mod+semicolon focus right
  39. # alternatively, you can use the cursor keys:
  40. bindsym $mod+Left focus left
  41. bindsym $mod+Down focus down
  42. bindsym $mod+Up focus up
  43. bindsym $mod+Right focus right
  44. # move focused window
  45. bindsym $mod+Shift+j move left
  46. bindsym $mod+Shift+k move down
  47. bindsym $mod+Shift+l move up
  48. bindsym $mod+Shift+semicolon move right
  49. # alternatively, you can use the cursor keys:
  50. bindsym $mod+Shift+Left move left
  51. bindsym $mod+Shift+Down move down
  52. bindsym $mod+Shift+Up move up
  53. bindsym $mod+Shift+Right move right
  54. # split in horizontal orientation
  55. bindsym $mod+h split h
  56. # split in vertical orientation
  57. bindsym $mod+v split v
  58. # enter fullscreen mode for the focused container
  59. bindsym $mod+f fullscreen toggle
  60. # change container layout (stacked, tabbed, toggle split)
  61. bindsym $mod+s layout stacking
  62. bindsym $mod+w layout tabbed
  63. bindsym $mod+e layout toggle split
  64. # toggle tiling / floating
  65. bindsym $mod+Shift+space floating toggle
  66. # change focus between tiling / floating windows
  67. bindsym $mod+space focus mode_toggle
  68. # focus the parent container
  69. bindsym $mod+a focus parent
  70. # focus the child container
  71. #bindsym $mod+d focus child
  72. # Define names for default workspaces for which we configure key bindings later on.
  73. # We use variables to avoid repeating the names in multiple places.
  74. set $ws1 "1"
  75. set $ws2 "2"
  76. set $ws3 "3"
  77. set $ws4 "4"
  78. set $ws5 "5"
  79. set $ws6 "6"
  80. set $ws7 "7"
  81. set $ws8 "8"
  82. set $ws9 "9"
  83. set $ws10 "10"
  84. # switch to workspace
  85. bindsym $mod+1 workspace number $ws1
  86. bindsym $mod+2 workspace number $ws2
  87. bindsym $mod+3 workspace number $ws3
  88. bindsym $mod+4 workspace number $ws4
  89. bindsym $mod+5 workspace number $ws5
  90. bindsym $mod+6 workspace number $ws6
  91. bindsym $mod+7 workspace number $ws7
  92. bindsym $mod+8 workspace number $ws8
  93. bindsym $mod+9 workspace number $ws9
  94. bindsym $mod+0 workspace number $ws10
  95. # move focused container to workspace
  96. bindsym $mod+Shift+1 move container to workspace number $ws1
  97. bindsym $mod+Shift+2 move container to workspace number $ws2
  98. bindsym $mod+Shift+3 move container to workspace number $ws3
  99. bindsym $mod+Shift+4 move container to workspace number $ws4
  100. bindsym $mod+Shift+5 move container to workspace number $ws5
  101. bindsym $mod+Shift+6 move container to workspace number $ws6
  102. bindsym $mod+Shift+7 move container to workspace number $ws7
  103. bindsym $mod+Shift+8 move container to workspace number $ws8
  104. bindsym $mod+Shift+9 move container to workspace number $ws9
  105. bindsym $mod+Shift+0 move container to workspace number $ws10
  106. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  107. bindsym $mod+Shift+r restart
  108. set $Locker i3lock -c 000000 && sleep 1
  109. set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (p) power off
  110. mode "$mode_system" {
  111. bindsym $mod+l exec --no-startup-id $Locker, mode "default"
  112. bindsym $mod+e exec --no-startup-id i3-msg exit, mode "default"
  113. bindsym $mod+s exec --no-startup-id $Locker && systemctl hybrid-sleep, mode "default"
  114. bindsym $mod+h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
  115. bindsym $mod+r exec --no-startup-id systemctl reboot, mode "default"
  116. bindsym $mod+p exec --no-startup-id systemctl poweroff -i, mode "default"
  117. # back to normal: Enter or Escape
  118. bindsym Return mode "default"
  119. bindsym Escape mode "default"
  120. }
  121. bindsym $mod+Shift+e mode "$mode_system"
  122. bindcode 124 mode "$mode_system"
  123. # resize window (you can also use the mouse for that)
  124. mode "resize" {
  125. # These bindings trigger as soon as you enter the resize mode
  126. # Pressing left will shrink the window’s width.
  127. # Pressing right will grow the window’s width.
  128. # Pressing up will shrink the window’s height.
  129. # Pressing down will grow the window’s height.
  130. bindsym j resize shrink width 10 px or 10 ppt
  131. bindsym k resize grow height 10 px or 10 ppt
  132. bindsym l resize shrink height 10 px or 10 ppt
  133. bindsym semicolon resize grow width 10 px or 10 ppt
  134. # same bindings, but for the arrow keys
  135. bindsym Left resize shrink width 10 px or 10 ppt
  136. bindsym Down resize grow height 10 px or 10 ppt
  137. bindsym Up resize shrink height 10 px or 10 ppt
  138. bindsym Right resize grow width 10 px or 10 ppt
  139. # back to normal: Enter or Escape
  140. bindsym Return mode "default"
  141. bindsym Escape mode "default"
  142. }
  143. bindsym $mod+r mode "resize"
  144. # Start i3bar to display a workspace bar (plus the system information i3status
  145. # finds out, if available)
  146. # bar {
  147. # workspace_buttons yes
  148. # position bottom
  149. # status_command i3status
  150. # #font pango:Source Code Pro Regular 10
  151. # font pango:Source Sans Pro Regular, IconicIcons 9
  152. # height 23
  153. # #tray_output none
  154. # colors {
  155. # background #002b36
  156. # statusline #ffffff
  157. # separator #666666
  158. # active_workspace #2c3e50 #2c3e50 #1abc9c
  159. # inactive_workspace #2c3e50 #2c3e50 #1abc9c
  160. # focused_workspace #2c3e50 #2c3e50 #ecf0f1
  161. # urgent_workspace #e74c3c #e74c3c #ecf0f1
  162. # }
  163. # }
  164. exec --no-startup-id /home/lildurden/.config/i3/bin/bspbar
  165. #bindsym $mod+d exec --no-startup-id "rofi -show run -theme solarized -font \\"DejaVu 9\\" -run-shell-command '{terminal} -e \\" {cmd}; read -n 1 -s\\"'"
  166. bindsym $mod+d exec --no-startup-id ~/.config/i3/rofi/bin/launcher
  167. bindsym $mod+Mod1+w exec --no-startup-id sh ~/.config/i3/rofi/bin/windows
  168. bindsym $mod+Mod1+m exec --no-startup-id sh ~/.config/i3/rofi/bin/mpd
  169. bindsym $mod+Mod1+x exec --no-startup-id sh ~/.config/i3/rofi/bin/powermenu
  170. bindsym $mod+Mod1+r exec --no-startup-id sh ~/.config/i3/rofi/bin/asroot
  171. bindsym Mod1+ctrl+s exec --no-startup-id sh ~/.config/i3/rofi/bin/screenshot
  172. bindsym Mod1+ctrl+n exec --no-startup-id sh ~/.config/i3/rofi/bin/network
  173. #bindsym ctrl alt+t exec --no-startup-id sh ~/.config/i3/rofi/bin/themes
  174. bindsym $mod+n exec --no-startup-id networkmanager_dmenu
  175. bindsym $mod+g exec --no-startup-id "rofi -combi-modi window,ssh,drun -theme solarized -font \\"hack 9\\" -show combi -run-shell-command '{terminal} -e \\" {cmd}; read -n 1 -s\\"'"
  176. bindsym $mod+Ctrl+m exec --no-startup-id thunderbird
  177. bindsym $mod+Ctrl+w exec --no-startup-id firefox
  178. bindsym $mod+Ctrl+f exec --no-startup-id pcmanfm
  179. bindsym $mod+Shift+p exec --no-startup-id arandr
  180. bindsym Mod1+Shift+l exec --no-startup-id $locker
  181. set $print_path ~/Pictures/PrintScreen
  182. bindsym Mod1+Shift+2 exec --no-startup-id escrotum -s '$print_path/%Y-%m-%d-%H%M%S_$wx$h_printscreen.png'
  183. bindsym Mod1+Shift+3 exec --no-startup-id escrotum '$print_path/%Y-%m-%d-%H%M%S_$wx$h_printscreen.png'
  184. # bindsym $mod+Shift+s exec --no-startup-id xfce4-power-manager --customize
  185. set $unmute pactl set-sink-mute 0 0
  186. set $refresh_i3status killall -SIGUSR1 i3status
  187. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $unmute && $refresh_i3status
  188. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $unmute && $refresh_i3status
  189. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
  190. bindsym XF86MonBrightnessUp exec "xbacklight +5 && xbacklight > /var/log/scripts/screen_brightness.log && $refresh_i3status"
  191. bindsym XF86MonBrightnessDown exec "xbacklight -5 && xbacklight > /var/log/scripts/screen_brightness.log && $refresh_i3status"
  192. # ; notify-send 'Brightness (Up)' $(light)'%'
  193. # ; notify-send 'Brightness (Down)' $(light)'%'
  194. exec --no-startup-id /usr/bin/feh --bg-scale /home/lildurden/Pictures/splash/x230_5.png
  195. exec --no-startup-id /usr/lib/xfce-polkit/xfce-polkit
  196. #exec --no-startup-id /usr/bin/redshift-gtk
  197. exec --no-startup-id dbus-launch blueberry-tray # /usr/bin/blueman-applet
  198. exec_always --no-startup-id /usr/bin/dunst \
  199. -geom "280x50-10+38" -frame_width "1" -font "Iosevka Custom 9" \
  200. -lb "$BACKGROUND" -lf "$FOREGROUND" -lfr "$BLUE" \
  201. -nb "$BACKGROUND" -nf "$FOREGROUND" -nfr "$BLUE" \
  202. -cb "$BACKGROUND" -cf "$RED" -cfr "$RED" &
  203. exec --no-startup-id systemctl --user start low_battery.service
  204. exec --no-startup-id dockd --daemon
  205. # exec_always --no-startup-id ~/.config/bin/i3bar
  206. for_window [window_role="pop-up"] floating enable
  207. for_window [window_role="task_dialog"] floating enablee
  208. for_window [title="win7"] floating enable; border none
  209. for_window [class="(?i)*nextcloud*"] floating disable
  210. for_window [window_type="notification"] floating enable, no_focus, border none, move right 700px, move down 450px
  211. for_window [class="Blueman-manager"] floating enable
  212. for_window [class="alacritty-float,alacritty-float"] floating enable