literate-dotfiles/dotfiles/i3.org

172 lines
4.7 KiB
Org Mode
Raw Normal View History

2019-01-31 09:41:03 +01:00
#+TITLE: I3 Configuration
2019-05-16 21:13:08 +02:00
:DRAWER:
2020-01-11 22:04:28 +01:00
#+STARTUP: overview
#+LANGUAGE: en
#+EMAIL: dehaeze.thomas@gmail.com
#+AUTHOR: Dehaeze Thomas
#+HTML_LINK_HOME: ./index.html
#+HTML_LINK_UP: ./index.html
2020-01-11 22:24:51 +01:00
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
2020-01-11 22:04:28 +01:00
#+PROPERTY: header-args:conf :comments none
2019-01-31 09:41:03 +01:00
#+PROPERTY: header-args:conf+ :mkdirp yes
#+PROPERTY: header-args:conf+ :tangle ~/.config/i3/config
2019-05-16 21:13:08 +02:00
:END:
#+begin_src conf
# i3 config file (v4)
#+end_src
* Mod Key
2019-04-05 09:28:34 +02:00
Set mod key (Mod1=<Alt>, Mod4=<Super>)
2019-01-31 09:41:03 +01:00
#+BEGIN_SRC conf
2019-04-05 09:28:34 +02:00
set $mod Mod4
2019-01-31 09:41:03 +01:00
#+end_src
* Border Style
2019-01-31 09:41:03 +01:00
#+begin_src conf
# Use custom colors for black
2019-05-16 21:13:08 +02:00
new_window pixel 1
2019-04-05 09:28:34 +02:00
new_float normal
#+end_src
2019-05-16 21:13:08 +02:00
Hide borders
#+begin_src conf
2019-05-16 21:13:08 +02:00
hide_edge_borders smart
2019-01-31 09:41:03 +01:00
#+end_src
* Font for window titles
2019-01-31 09:41:03 +01:00
#+begin_src conf
font Hack Nerd Font 11
2019-01-31 09:41:03 +01:00
#+end_src
* Colors Variables
#+begin_src conf
set_from_resource $bg color0 #000000
set_from_resource $darkred color1 #000000
set_from_resource $darkgreen color2 #000000
set_from_resource $darkyellow color3 #000000
set_from_resource $darkblue color4 #000000
set_from_resource $darkpurple color5 #000000
set_from_resource $darkaqua color6 #000000
set_from_resource $darkgray color7 #000000
set_from_resource $gray color8 #000000
set_from_resource $red color9 #000000
set_from_resource $green color10 #000000
set_from_resource $yellow color11 #000000
set_from_resource $blue color12 #000000
set_from_resource $purple color13 #000000
set_from_resource $aqua color14 #000000
set_from_resource $fg color15 #000000
#+end_src
2019-12-15 10:53:57 +01:00
* Theme colors
2019-04-04 12:33:09 +02:00
#+begin_src conf
# class border backgr. text indic. child_border
client.focused $darkaqua $darkaqua $fg $bg
client.focused_inactive $bg $bg $fg $bg
client.unfocused $bg $bg $fg $bg
client.urgent $bg $bg $fg $bg
2019-01-31 09:41:03 +01:00
client.background $bg
#+end_src
* Various Config
Layout mode for new containers
2019-05-16 21:13:08 +02:00
#+begin_src conf
workspace_layout default
#+end_src
2019-01-31 09:41:03 +01:00
#+begin_src conf
focus_follows_mouse yes
#+end_src
* Border
#+begin_src conf
default_border pixel 1
#+end_src
* Settings for i3-gaps
#+begin_src conf
# for_window [class=".*"] border pixel 0
2019-05-16 21:13:08 +02:00
#+end_src
2019-01-31 09:41:03 +01:00
2019-05-16 21:13:08 +02:00
#+begin_src conf
gaps inner 10
gaps outer 2
#+end_src
* Workspace names
To display names or symbols instead of plain workspace numbers you can use something like: =set $ws1 1:mail= and =set $ws2 2:=.
2019-12-15 10:53:57 +01:00
2019-05-16 21:13:08 +02:00
#+begin_src conf
set $ws1 1
set $ws2 2
set $ws3 3
set $ws4 4
set $ws5 5
set $ws6 6
set $ws7 7
set $ws8 8
2019-05-16 21:13:08 +02:00
#+end_src
* Use Mouse+$mod to drag floating windows
#+begin_src conf
floating_modifier $mod
#+end_src
2019-12-15 10:53:57 +01:00
* Back and Forth
2019-12-30 17:21:56 +01:00
#+begin_src conf
workspace_auto_back_and_forth yes
#+end_src
* Application Specific
** Open applications on specific workspaces
2019-05-16 21:13:08 +02:00
#+begin_src conf
assign[title="^Fig"] $ws6 # Matlab Figures
for_window [title="^Fig"] layout tabbed
assign[title="^HG_Peer"] $ws6 # Name of window when export figure with matlab
2019-01-31 09:41:03 +01:00
#+end_src
** Open specific applications in floating mode
2019-01-31 09:41:03 +01:00
#+begin_src conf
for_window [title="File Transfer*"] floating enable
for_window [class="GParted"] floating enable border normal
for_window [class="Lightdm-settings"] floating enable
for_window [class="Lxappearance"] floating enable sticky enable border normal
for_window [class="Pavucontrol"] floating enable
for_window [class="Simple-scan"] floating enable border normal
for_window [class="(?i)System-config-printer.py"] floating enable border normal
for_window [class="Xfburn"] floating enable
for_window [title="^Documentation -"] floating enable border normal
for_window [class="Yad"] floating enable
for_window [title="Bluetooth Devices"] floating enable
for_window [title="Simulink Library Browser"] floating enable
2019-01-31 09:41:03 +01:00
#+end_src
* Scratchpad
Move the currently focused window to the scratchpad
2019-01-31 09:41:03 +01:00
#+begin_src conf
2019-04-04 10:27:43 +02:00
bindsym $mod+Shift+BackSpace move scratchpad
#+end_src
2019-01-31 09:41:03 +01:00
Show the next scratchpad window or hide the focused scratchpad window.
If there are multiple scratchpad windows, this command cycles through them.
#+begin_src conf
2019-04-04 10:27:43 +02:00
bindsym $mod+BackSpace scratchpad show
2019-01-31 09:41:03 +01:00
#+end_src
2019-12-30 17:21:56 +01:00
* Run Polybar and SXHKD
2019-01-31 09:41:03 +01:00
#+begin_src conf
exec --no-startup-id sxhkd -m 1 -c ~/.config/sxhkd/sxhkdrc.i3
exec --no-startup-id $HOME/.config/polybar/scripts/launch.sh
2019-01-31 09:41:03 +01:00
#+end_src