Guest User

Untitled

a guest
Sep 23rd, 2019
826
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 17.15 KB | None | 0 0
  1. # i3 config file (v4) for Regolith Desktop Environment
  2. #
  3. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  4.  
  5. # This defines which key super maps to on your keyboard.  
  6. # Alt key is Mod1, and Windows key is Mod4
  7. set $mod Mod4
  8. set $alt Mod1
  9.  
  10. # i3xrocks config file
  11. set $i3xrocks_config /etc/regolith/i3xrocks/config
  12.  
  13. # compton config file
  14. set $compton_config /etc/regolith/compton/config
  15.  
  16. # path to terminal. Override this to specify a custom terminal.
  17. set $terminal_path /usr/bin/terminator
  18.  
  19. # Color values are defined in ~/.Xresources-regolith
  20. # These are the labels which define each i3 workspace.
  21. # set_from_resource $ws1  i3-wm.workspace.01.name "1"
  22. # set_from_resource $ws2  i3-wm.workspace.02.name "2"
  23. # set_from_resource $ws3  i3-wm.workspace.03.name "3"
  24. # set_from_resource $ws4  i3-wm.workspace.04.name "4"
  25. # set_from_resource $ws5  i3-wm.workspace.05.name "5"
  26. # set_from_resource $ws6  i3-wm.workspace.06.name "6"
  27. # set_from_resource $ws7  i3-wm.workspace.07.name "7"
  28. # set_from_resource $ws8  i3-wm.workspace.08.name "8"
  29. # set_from_resource $ws9  i3-wm.workspace.09.name "9"
  30. # set_from_resource $ws10 i3-wm.workspace.10.name "10"
  31. # set_from_resource $ws11 i3-wm.workspace.11.name "11"
  32. # set_from_resource $ws12 i3-wm.workspace.12.name "12"
  33. # set_from_resource $ws13 i3-wm.workspace.13.name "13"
  34. # set_from_resource $ws14 i3-wm.workspace.14.name "14"
  35. # set_from_resource $ws15 i3-wm.workspace.15.name "15"
  36. # set_from_resource $ws16 i3-wm.workspace.16.name "16"
  37. # set_from_resource $ws17 i3-wm.workspace.17.name "17"
  38. # set_from_resource $ws18 i3-wm.workspace.18.name "18"
  39. # set_from_resource $ws19 i3-wm.workspace.19.name "19"
  40.  
  41. set $ws1  1:Files
  42. set $ws2  2:Browse
  43. set $ws3  3:Text
  44. set $ws4  4:4
  45. set $ws5  5:5
  46. set $ws6  6:6
  47. set $ws7  7:7
  48. set $ws8  8:8
  49. set $ws9  9:9
  50. set $ws10 10:10
  51. set $ws11 11:11
  52. set $ws12 12:12
  53. set $ws13 13:13
  54. set $ws14 14:14
  55. set $ws15 15:15
  56. set $ws16 16:16
  57. set $ws17 17:17
  58. set $ws18 18:18
  59. set $ws19 19:19
  60.  
  61. # Use Mouse+$mod to drag floating windows to their wanted position
  62. floating_modifier $mod
  63.  
  64. hide_edge_borders smart
  65.  
  66. # start a terminal
  67. bindsym $mod+Return exec $terminal_path
  68.  
  69. # start a web browserx
  70. bindsym $mod+Shift+Return exec /usr/bin/firefox
  71.  
  72. # start xkill
  73. bindsym $mod+Shift+x exec /usr/bin/xkill
  74.  
  75. # kill focused window
  76. bindsym $mod+q kill
  77.  
  78. set_from_resource $rofiTheme rofi.theme "regolith-theme"
  79.  
  80. # rofi app and window launchers
  81. bindsym $mod+space exec rofi -show window -theme $rofiTheme
  82. # bindsym $mod+space exec synapse
  83. bindsym $mod+Shift+space exec rofi -show run -theme $rofiTheme
  84. bindsym $mod+Ctrl+space exec rofi -show drun -theme $rofiTheme
  85.  
  86. # change focus
  87. bindsym $mod+Left focus left
  88. bindsym $mod+Down focus down
  89. bindsym $mod+Up focus up
  90. bindsym $mod+Right focus right
  91.  
  92. bindsym $mod+h focus left
  93. bindsym $mod+j focus down
  94. bindsym $mod+k focus up
  95. bindsym $mod+l focus right
  96.  
  97. # move windows in workspaces
  98. bindsym $mod+Shift+Left move left
  99. bindsym $mod+Shift+Down move down
  100. bindsym $mod+Shift+Up move up
  101. bindsym $mod+Shift+Right move right
  102.  
  103. bindsym $mod+Shift+h move left
  104. bindsym $mod+Shift+j move down
  105. bindsym $mod+Shift+k move up
  106. bindsym $mod+Shift+l move right
  107.  
  108. # toggle split orientation
  109. bindsym $mod+BackSpace split toggle
  110.  
  111. # enter fullscreen mode for the focused container
  112. bindsym $mod+f fullscreen toggle
  113.  
  114. # change gaps interactively
  115. bindsym $mod+minus gaps inner current minus 2
  116. bindsym $mod+plus gaps inner current plus 2
  117.  
  118. # show/hide keybindings
  119. bindsym $mod+Shift+question exec --no-startup-id /usr/bin/conky-toggle
  120.  
  121. # toggle tiling / floating
  122. bindsym $mod+Shift+f floating toggle
  123.  
  124. # change focus between tiling / floating windows
  125. bindsym $mod+Shift+t focus mode_toggle
  126.  
  127. # toggle tabbed mode
  128. bindsym $mod+t layout toggle tabbed splith splitv
  129.  
  130. # move to workspace
  131. bindsym $mod+1 workspace $ws1
  132. bindsym $mod+2 workspace $ws2
  133. bindsym $mod+3 workspace $ws3
  134. bindsym $mod+4 workspace $ws4
  135. bindsym $mod+5 workspace $ws5
  136. bindsym $mod+6 workspace $ws6
  137. bindsym $mod+7 workspace $ws7
  138. bindsym $mod+8 workspace $ws8
  139. bindsym $mod+9 workspace $ws9
  140. bindsym $mod+0 workspace $ws10
  141. bindsym $mod+Ctrl+1 workspace $ws11
  142. bindsym $mod+Ctrl+2 workspace $ws12
  143. bindsym $mod+Ctrl+3 workspace $ws13
  144. bindsym $mod+Ctrl+4 workspace $ws14
  145. bindsym $mod+Ctrl+5 workspace $ws15
  146. bindsym $mod+Ctrl+6 workspace $ws16
  147. bindsym $mod+Ctrl+7 workspace $ws17
  148. bindsym $mod+Ctrl+8 workspace $ws18
  149. bindsym $mod+Ctrl+9 workspace $ws19
  150.  
  151. # cycle across workspaces
  152. bindsym $mod+Tab workspace next
  153. bindsym $mod+Shift+Tab workspace prev
  154.  
  155. # move focused container to workspace
  156. bindsym $mod+Shift+1 move container to workspace $ws1
  157. bindsym $mod+Shift+2 move container to workspace $ws2
  158. bindsym $mod+Shift+3 move container to workspace $ws3
  159. bindsym $mod+Shift+4 move container to workspace $ws4
  160. bindsym $mod+Shift+5 move container to workspace $ws5
  161. bindsym $mod+Shift+6 move container to workspace $ws6
  162. bindsym $mod+Shift+7 move container to workspace $ws7
  163. bindsym $mod+Shift+8 move container to workspace $ws8
  164. bindsym $mod+Shift+9 move container to workspace $ws9
  165. bindsym $mod+Shift+0 move container to workspace $ws10
  166. bindsym $mod+Shift+Ctrl+1 move container to workspace $ws11
  167. bindsym $mod+Shift+Ctrl+2 move container to workspace $ws12
  168. bindsym $mod+Shift+Ctrl+3 move container to workspace $ws13
  169. bindsym $mod+Shift+Ctrl+4 move container to workspace $ws14
  170. bindsym $mod+Shift+Ctrl+5 move container to workspace $ws15
  171. bindsym $mod+Shift+Ctrl+6 move container to workspace $ws16
  172. bindsym $mod+Shift+Ctrl+7 move container to workspace $ws17
  173. bindsym $mod+Shift+Ctrl+8 move container to workspace $ws18
  174. bindsym $mod+Shift+Ctrl+9 move container to workspace $ws19
  175.  
  176. # move focused container to workspace, move to workspace
  177. bindsym $mod+$alt+1 move container to workspace $ws1; workspace $ws1  
  178. bindsym $mod+$alt+2 move container to workspace $ws2; workspace $ws2
  179. bindsym $mod+$alt+3 move container to workspace $ws3; workspace $ws3
  180. bindsym $mod+$alt+4 move container to workspace $ws4; workspace $ws4
  181. bindsym $mod+$alt+5 move container to workspace $ws5; workspace $ws5
  182. bindsym $mod+$alt+6 move container to workspace $ws6; workspace $ws6
  183. bindsym $mod+$alt+7 move container to workspace $ws7; workspace $ws7
  184. bindsym $mod+$alt+8 move container to workspace $ws8; workspace $ws8
  185. bindsym $mod+$alt+9 move container to workspace $ws9; workspace $ws9
  186. bindsym $mod+$alt+0 move container to workspace $ws10; workspace $ws1
  187. bindsym $mod+$alt+Ctrl+1 move container to workspace $ws11; workspace $ws11
  188. bindsym $mod+$alt+Ctrl+2 move container to workspace $ws12; workspace $ws12
  189. bindsym $mod+$alt+Ctrl+3 move container to workspace $ws13; workspace $ws13
  190. bindsym $mod+$alt+Ctrl+4 move container to workspace $ws14; workspace $ws14
  191. bindsym $mod+$alt+Ctrl+5 move container to workspace $ws15; workspace $ws15
  192. bindsym $mod+$alt+Ctrl+6 move container to workspace $ws16; workspace $ws16
  193. bindsym $mod+$alt+Ctrl+7 move container to workspace $ws17; workspace $ws17
  194. bindsym $mod+$alt+Ctrl+8 move container to workspace $ws18; workspace $ws18
  195. bindsym $mod+$alt+Ctrl+9 move container to workspace $ws19; workspace $ws19
  196.  
  197. # reload the configuration file
  198. bindsym $mod+Shift+c reload
  199.  
  200. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  201. bindsym $mod+Shift+r restart
  202.  
  203. # Logout of session
  204. bindsym $mod+Shift+e exec /usr/bin/gnome-session-quit --logout
  205.  
  206. # Reboot computer
  207. bindsym $mod+Shift+b exec /usr/bin/gnome-session-quit --reboot
  208.  
  209. # Power off computer
  210. bindsym $mod+Shift+p exec /usr/bin/gnome-session-quit --power-off
  211.  
  212. # lock the screen
  213. bindsym $mod+Escape exec gnome-screensaver-command --lock
  214.  
  215. # put the system to sleep
  216. bindsym $mod+Shift+s exec systemctl suspend
  217.  
  218. # shortcuts for common system configuration tasks
  219. bindsym $mod+c exec gnome-control-center
  220. bindsym $mod+w exec gnome-control-center wifi
  221. bindsym $mod+b exec gnome-control-center bluetooth
  222. bindsym $mod+d exec gnome-control-center display
  223. bindsym $mod+n exec gnome-control-center network
  224. bindsym $mod+p exec gnome-control-center power
  225. bindsym $mod+s exec gnome-control-center sound
  226.  
  227. # resize window (you can also use the mouse for that)
  228. mode "Resize Mode" {
  229.         # These bindings trigger as soon as you enter the resize mode
  230.         bindsym Left resize shrink width 6 px or 6 ppt
  231.         bindsym Down resize grow height 6 px or 6 ppt
  232.         bindsym Up resize shrink height 6 px or 6 ppt
  233.         bindsym Right resize grow width 6 px or 6 ppt
  234.  
  235.         bindsym Shift+Left resize shrink width 12 px or 12 ppt
  236.         bindsym Shift+Down resize grow height 12 px or 12 ppt
  237.         bindsym Shift+Up resize shrink height 12 px or 12 ppt
  238.         bindsym Shift+Right resize grow width 12 px or 12 ppt
  239.  
  240.         bindsym h resize shrink width 6 px or 6 ppt
  241.         bindsym k resize grow height 6 px or 6 ppt
  242.         bindsym j resize shrink height 6 px or 6 ppt
  243.         bindsym l resize grow width 6 px or 6 ppt
  244.  
  245.         bindsym Shift+h resize shrink width 12 px or 12 ppt
  246.         bindsym Shift+k resize grow height 12 px or 12 ppt
  247.         bindsym Shift+j resize shrink height 12 px or 12 ppt
  248.         bindsym Shift+l resize grow width 12 px or 12 ppt
  249.  
  250.         # back to normal: Enter or Escape
  251.         bindsym Return mode "default"
  252.         bindsym Escape mode "default"
  253.         bindsym $mod+r mode "default"
  254. }
  255. bindsym $mod+r mode "Resize Mode"
  256.  
  257. # Disable titlebar
  258.  
  259. # new_window pixel 1
  260. # new_float pixel 1
  261.  
  262. # Gaps (i3-gaps)
  263. gaps inner 5
  264. gaps outer 0
  265.  
  266. # Only enable gaps on a workspace when there is at least one container
  267. smart_gaps on
  268.  
  269. set_from_resource $focused.color.border i3-wm.client.focused.color.border "#FF0000"
  270. set_from_resource $focused.color.background i3-wm.client.focused.color.background "#586e75"
  271. set_from_resource $focused.color.text i3-wm.client.focused.color.text "#fdf6e3"
  272. set_from_resource $focused.color.indicator i3-wm.client.focused.color.indicator "#268bd2"
  273. set_from_resource $focused.color.child_border i3-wm.client.focused.color.child_border
  274.  
  275. set_from_resource $focused_inactive.color.border i3-wm.client.focused_inactive.color.border "#002b36"
  276. set_from_resource $focused_inactive.color.background i3-wm.client.focused_inactive.color.background "#073642"
  277. set_from_resource $focused_inactive.color.text i3-wm.client.focused_inactive.color.text "#839496"
  278. set_from_resource $focused_inactive.color.indicator i3-wm.client.focused_inactive.color.indicator "#073642"
  279. set_from_resource $focused_inactive.color.child_border i3-wm.client.focused_inactive.color.child_border
  280.  
  281. set_from_resource $unfocused.color.border i3-wm.client.unfocused.color.border "#002b36"
  282. set_from_resource $unfocused.color.background i3-wm.client.unfocused.color.background "#073642"
  283. set_from_resource $unfocused.color.text i3-wm.client.unfocused.color.text "#839496"
  284. set_from_resource $unfocused.color.indicator i3-wm.client.unfocused.color.indicator "#073642"
  285. set_from_resource $unfocused.color.child_border i3-wm.client.unfocused.color.child_border
  286.  
  287. set_from_resource $urgent.color.border i3-wm.client.urgent.color.border "#002b36"
  288. set_from_resource $urgent.color.background i3-wm.client.urgent.color.background "#dc322f"
  289. set_from_resource $urgent.color.text i3-wm.client.urgent.color.text "#fdf6e3"
  290. set_from_resource $urgent.color.indicator i3-wm.client.urgent.color.indicator "#002b36"
  291. set_from_resource $urgent.color.child_border i3-wm.client.urgent.color.child_border
  292.  
  293.  
  294. # Window Border color
  295. # class                 border                             background                         text                               indicator                          child_border
  296. client.focused          $focused.color.border              $focused.color.background          $focused.color.text                $focused.color.indicator           $focused.color.child_border
  297. client.focused_inactive $focused_inactive.color.border     $focused_inactive.color.background $focused_inactive.color.text       $focused_inactive.color.indicator  $focused_inactive.color.child_border
  298. client.unfocused        $unfocused.color.border            $unfocused.color.background        $unfocused.color.text              $unfocused.color.indicator         $unfocused.color.child_border
  299. client.urgent           $urgent.color.border               $urgent.color.background           $urgent.color.text                 $urgent.color.indicator            $urgent.color.child_border
  300.  
  301. # Enable popup during fullscreen
  302. popup_during_fullscreen smart
  303.  
  304. # window focus follows your mouse movements as the mouse crosses window borders
  305. focus_follows_mouse no
  306.  
  307. set_from_resource $i3-wm.bar.background.color i3-wm.bar.background.color "#002b36"
  308. set_from_resource $i3-wm.bar.statusline.color i3-wm.bar.statusline.color "#93a1a1"
  309. set_from_resource $i3-wm.bar.separator.color i3-wm.bar.separator.color "#268bd2"
  310.  
  311. set_from_resource $i3-wm.bar.workspace.focused.border.color i3-wm.bar.workspace.focused.border.color "#073642"
  312. set_from_resource $i3-wm.bar.workspace.focused.background.color i3-wm.bar.workspace.focused.background.color "#073642"
  313. set_from_resource $i3-wm.bar.workspace.focused.text.color i3-wm.bar.workspace.focused.text.color "#eee8d5"
  314.  
  315. set_from_resource $i3-wm.bar.workspace.active.border.color i3-wm.bar.workspace.active.border.color "#073642"
  316. set_from_resource $i3-wm.bar.workspace.active.background.color i3-wm.bar.workspace.active.background.color "#073642"
  317. set_from_resource $i3-wm.bar.workspace.active.text.color i3-wm.bar.workspace.active.text.color "#586e75"
  318.  
  319. set_from_resource $i3-wm.bar.workspace.inactive.border.color i3-wm.bar.workspace.inactive.border.color "#002b36"
  320. set_from_resource $i3-wm.bar.workspace.inactive.background.color i3-wm.bar.workspace.inactive.background.color "#002b36"
  321. set_from_resource $i3-wm.bar.workspace.inactive.text.color i3-wm.bar.workspace.inactive.text.color "#586e75"
  322.  
  323. set_from_resource $i3-wm.bar.workspace.urgent.border.color i3-wm.bar.workspace.urgent.border.color "#dc322f"
  324. set_from_resource $i3-wm.bar.workspace.urgent.background.color i3-wm.bar.workspace.urgent.background.color "#dc322f"
  325. set_from_resource $i3-wm.bar.workspace.urgent.text.color i3-wm.bar.workspace.urgent.text.color "#fdf6e3"
  326.  
  327. set_from_resource $i3-wm.bar.font i3-wm.bar.font "pango:Source Code Pro Medium 13, FontAwesome 13"
  328.  
  329. # Configure the bar
  330. bar {
  331.   font $i3-wm.bar.font
  332.   separator_symbol " "
  333.   status_command i3xrocks -c $i3xrocks_config
  334.   tray_output primary
  335.   strip_workspace_numbers no
  336.  
  337.   colors {
  338.       background $i3-wm.bar.background.color
  339.       statusline $i3-wm.bar.statusline.color
  340.       separator  $i3-wm.bar.separator.color
  341.  
  342. #                        BORDER  BACKGROUND TEXT
  343.       focused_workspace  $i3-wm.bar.workspace.focused.border.color      $i3-wm.bar.workspace.focused.background.color   $i3-wm.bar.workspace.focused.text.color
  344.       active_workspace   $i3-wm.bar.workspace.active.border.color       $i3-wm.bar.workspace.active.background.color    $i3-wm.bar.workspace.active.text.color
  345.       inactive_workspace $i3-wm.bar.workspace.inactive.border.color     $i3-wm.bar.workspace.inactive.background.color  $i3-wm.bar.workspace.inactive.text.color
  346.       urgent_workspace   $i3-wm.bar.workspace.urgent.border.color       $i3-wm.bar.workspace.urgent.background.color    $i3-wm.bar.workspace.urgent.text.color
  347.   }
  348. }
  349.  
  350. # Run programs when i3 starts
  351.  
  352. # Start the composite manager
  353. exec --no-startup-id compton -f --config $compton_config
  354.  
  355. # Launch the shortcut Conky window on first login
  356. exec --no-startup-id /usr/bin/regolith-ftue
  357.  
  358. # Hide the mouse pointer if unused for a duration
  359. exec --no-startup-id /usr/bin/unclutter -b --timeout 10
  360.  
  361. # Refresh wallpaper on screen resolution change
  362. exec --no-startup-id /usr/bin/xeventbind resolution /usr/bin/wallpaper-refresh
  363.  
  364. # CUSTOM
  365. focus_wrapping no
  366.  
  367. exec --no-startup-id i3-msg "workspace $ws1; exec nautilus /home/esm/Dropbox/Media-projects"
  368. exec --no-startup-id i3-msg "workspace $ws1; exec nautilus /home/esm/Dropbox/politik/artikler"
  369. exec --no-startup-id i3-msg "workspace $ws1; exec nautilus /bigtmp"
  370. exec --no-startup-id i3-msg "workspace $ws2; exec firefox"
  371. exec --no-startup-id i3-msg "workspace $ws3; exec subl"
  372. exec --no-startup-id i3-msg "workspace $ws10; exec qjackctl"
  373.  
  374. # Set Gnome-theme
  375. exec gsettings set org.gnome.desktop.interface gtk-theme "Yaru-dark"
  376. exec gsettings set org.gnome.desktop.interface icon-theme "Yaru"
  377.  
  378. title_align center
  379.  
  380. # assign [class="Firefox"] $ws2
  381. assign  [title="DaVinci Resolve|resolve"] $ws8
  382. assign  [title="Secondary Screen"] $ws7
  383. assign  [class="qjackctl"] $ws10
  384.  
  385. for_window[class="Qjackctl|Gnome-calculator|resolve"] floating enable
  386. for_window[class="resolve"] floating disable
  387.  
  388. # https://i3wm.org/docs/userguide.html#_tree
  389. workspace_auto_back_and_forth yes
  390.  
  391. # Screens:indbygget: DP-1-1 ekstra: eDP-1-1
  392. workspace 1 output eDP-1-1
  393. workspace 2 output DP-1-1
  394. workspace 3 output eDP-1-1
  395. workspace 4 output DP-1-1
  396. workspace 5 output eDP-1-1  
  397. workspace 6 output DP-1-1
  398. workspace 7 output eDP-1-1
  399. workspace 8 output DP-1-1
  400. workspace 9 output eDP-1-1
  401. workspace 10 output DP-1-1
  402. workspace 11 output eDP-1-1
  403. workspace 12 output DP-1-1
  404. workspace 13 output eDP-1-1
  405. workspace 14 output DP-1-1
  406. workspace 15   output eDP-1-1  
  407. workspace 16 output DP-1-1
  408. workspace 17 output eDP-1-1
  409. workspace 18 output DP-1-1
  410. workspace 19 output eDP-1-1
  411.  
  412. focus_on_window_activation focus
Advertisement
Add Comment
Please, Sign In to add comment