literate-dotfiles/dotfiles/i3.org

644 lines
20 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:
2019-01-31 09:41:03 +01:00
#+PROPERTY: header-args:conf+ :comments both
#+PROPERTY: header-args:conf+ :mkdirp yes
#+PROPERTY: header-args:conf+ :tangle ~/.config/i3/config
2019-05-16 21:13:08 +02:00
:END:
* Colors
#+begin_src conf
set $bg #32302f
set $bg1 #3c3836
set $bg2 #504945
set $bg3 #665c54
set $bg4 #7c6f64
set $fg #ebdbb2
set $fg1 #ebdbb2
set $fg2 #d5c4a1
set $fg3 #bdae93
set $fg4 #a89984
set $gray #a89984
set $red #cc241d
set $green #98971a
set $yellow #d79921
set $blue #458588
set $purple #b16286
set $aqua #689d6a
set $orange #d65d0e
#+end_src
2019-01-31 09:41:03 +01:00
* 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
#+begin_src conf
2019-04-05 09:28:34 +02:00
# Configure border style <normal|1pixel|pixel xx|none|pixel>
2019-05-16 21:13:08 +02:00
new_window pixel 1
2019-04-05 09:28:34 +02:00
new_float normal
2019-05-16 21:13:08 +02:00
2019-04-05 09:28:34 +02:00
# Hide borders
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
#+begin_src conf
font Hack Nerd Font 11
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
* Multimedia keys
2019-12-15 10:53:57 +01:00
:PROPERTIES:
:header-args:conf+: :tangle no
:END:
2019-05-16 21:13:08 +02:00
** Sound
2019-04-04 12:33:09 +02:00
#+begin_src conf
2019-04-05 09:28:34 +02:00
# Sound
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse sset Master toggle
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 2%+
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 2%-
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
2019-04-05 09:28:34 +02:00
# Backlight
2019-05-16 21:13:08 +02:00
# bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10
# bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10
#+end_src
2019-01-31 09:41:03 +01:00
2019-05-16 21:13:08 +02:00
** Change Tracks
#+begin_src conf
bindsym $mod+period exec --no-startup-id mpc toggle
bindsym $mod+Shift+period exec --no-startup-id mpc next
bindsym $mod+Shift+comma exec --no-startup-id mpc prev
#+end_src
2019-05-16 21:13:08 +02:00
#+begin_src conf
2019-04-05 09:28:34 +02:00
bindsym XF86AudioPlay exec --no-startup-id mpc toggle
bindsym XF86AudioNext exec --no-startup-id mpc next
bindsym XF86AudioPrev exec --no-startup-id mpc prev
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
** Print Screen
#+begin_src conf
bindsym Print exec --no-startup-id ~/bin/screenshot
2019-05-16 21:13:08 +02:00
bindsym XF86Display exec --no-startup-id rofi -show window
#+end_src
2019-01-31 09:41:03 +01:00
2019-05-16 21:13:08 +02:00
** Other
#+begin_src conf
bindsym XF86Search exec --no-startup-id rofi -show run
bindsym XF86PowerOff exec --no-startup-id $HOME/scripts/quit.sh
2019-01-31 09:41:03 +01:00
#+end_src
* Start Applications
2019-12-15 10:53:57 +01:00
:PROPERTIES:
:header-args:conf+: :tangle no
:END:
2019-01-31 09:41:03 +01:00
#+begin_src conf
# Start program launcher
bindsym $mod+d exec --no-startup-id rofi -show run
# Start Sound Manager
bindsym $mod+s exec --no-startup-id pavucontrol
2019-12-15 10:53:57 +01:00
# Start Bluetooth Manager
bindsym $mod+shift+b exec --no-startup-id blueman-manager
# Windows Switch
bindsym $mod+w exec --no-startup-id rofi -show window
# Launch categorized menu
2019-05-16 21:13:08 +02:00
bindsym $mod+z exec --no-startup-id rofi -show drun
# Bookmarks
2019-05-16 21:13:08 +02:00
bindsym $mod+Shift+F exec --no-startup-id $HOME/bin/bukurun
# Passwords
2019-05-16 21:13:08 +02:00
bindsym $mod+Shift+P exec --no-startup-id rofi-pass
# Start Terminal
2019-05-16 21:13:08 +02:00
bindsym $mod+Return exec termite
# Tmux Terminal
2019-05-16 21:13:08 +02:00
bindsym $mod+Shift+Return exec termite -e 'tmux'
# Start Command line Calendar
bindsym $mod+c exec termite -e "khal interactive"
# File Manager
2019-05-30 16:24:13 +02:00
bindsym $mod+o exec alacritty -e "ranger"
# Browser
bindsym $mod+i exec qutebrowser
2019-05-16 21:13:08 +02:00
#+end_src
* Set shut down, restart and locking features
2019-12-15 10:53:57 +01:00
:PROPERTIES:
:header-args:conf+: :tangle no
:END:
2019-05-16 21:13:08 +02:00
#+begin_src conf
bindsym $mod+0 exec --no-startup-id $HOME/scripts/quit.sh
#+end_src
* Command Mode
2019-12-15 10:53:57 +01:00
:PROPERTIES:
:header-args:conf+: :tangle no
:END:
2019-05-16 21:13:08 +02:00
#+begin_src conf
bindsym $mod+space mode "command"
mode "command" {
# Command line Calendar Client (khal)
bindsym c exec termite -e "khal interactive"; mode "default"
# GUI Calendar (Google Calendar)
bindsym Shift+c exec qutebrowser https://calendar.google.com/; mode "default"
# Ranger
2019-05-30 16:24:13 +02:00
bindsym r exec alacritty -e "ranger"; mode "default"
2019-05-16 21:13:08 +02:00
# pcmanfm: GUI file manager
bindsym Shift+r exec pcmanfm; mode "default"
# Mails with neomutt
bindsym m exec termite -e "tmux -L neomutt attach"; mode "default"
2019-05-30 16:24:13 +02:00
bindsym shift+m exec termite -e "neomutt -R"; mode "default"
2019-05-16 21:13:08 +02:00
# Weechat
bindsym w exec termite -e "tmux -L weechat attach"; mode "default"
# News with newsboat
bindsym n exec termite -e "tmux -L newsboat attach"; mode "default"
# Music with ncmpcpp
bindsym p exec termite -e "tmux -L ncmpcpp attach"; mode "default"
# Print Screen
bindsym Shift+p exec --no-startup-id ~/bin/screenshot
2019-05-16 21:13:08 +02:00
# Browser with qutebrowser
bindsym i exec qutebrowser; mode "default"
# Browser with firefox
bindsym Shift+i exec firefox; mode "default"
# Emacs Client
bindsym e exec emacsclient -create-frame --alternate-editor=""; mode "default"
# Full Emacs - Usefull when installing packages
bindsym Shift+e exec emacs; mode "default"
# exit command mode: Enter or Escape
bindsym Escape mode "default"
}
#+end_src
* Autostart Background Applications
#+begin_src conf
# Set custom wallpaper script
exec --no-startup-id $HOME/scripts/wallpapers.sh
# Run Compton
exec --no-startup-id compton -b
# Start Network Management Framework
exec --no-startup-id nm-applet
# Hide mouse cursor after x seconds
exec --no-startup-id unclutter --timeout 5
# Start Power Manager
exec --no-startup-id xfce4-power-manager
# Bluetooth Manager
exec --no-startup-id blueman-applet
# Autolock screen after x minutes
exec --no-startup-id xautolock -locker "~/scripts/lockscreen.sh" -detectsleep -time 30 -notify 60 -notifier "dunstify --replace=31846 -u critical -t 10000 -- 'Locking Screen' '60 seconds'"
# Screen options
exec --no-startup-id xrandr --output eDP1 --mode 1920x1080 --dpi 192
# Redshift
exec --no-startup-id redshift
2019-05-16 21:13:08 +02:00
# Start mopidy
exec --no-startup-id mopidy
# Emacs Daemon
# exec --no-startup-id /usr/bin/emacs --fg-daemon
# Start polybar
2019-05-16 21:13:08 +02:00
exec_always --no-startup-id $HOME/.config/polybar/scripts/launch.sh
2019-12-15 10:53:57 +01:00
# Synology Cloud Station Drive
exec --no-startup-id synology-drive
# KDEconnect
exec --no-startup-id udiskie /usr/lib/kdeconnectd
# Udiskie to automount usb keys
exec --no-startup-id udiskie --automount --notify --tray --use-udisks2
2019-12-15 10:53:57 +01:00
# Start sxhkd
exec --no-startup-id sxhkd -m 1 &
2019-05-16 21:13:08 +02:00
#+end_src
* Kill one application
2019-12-15 10:53:57 +01:00
:PROPERTIES:
:header-args:conf+: :tangle no
:END:
2019-05-16 21:13:08 +02:00
#+begin_src conf
bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
2019-05-16 21:13:08 +02:00
#+end_src
2019-05-16 21:13:08 +02:00
* Change Keyboard Layout
2019-12-15 10:53:57 +01:00
:PROPERTIES:
:header-args:conf+: :tangle no
:END:
2019-05-16 21:13:08 +02:00
#+begin_src conf
bindsym $mod+Ctrl+d exec --no-startup-id setxkbmap -layout us -variant intl -option caps:escape
bindsym $mod+Shift+d exec --no-startup-id setxkbmap -layout us -option caps:escape
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
* TODO [#B] Vim Anywhere
2019-01-31 09:41:03 +01:00
#+begin_src conf
# bindsym $mod+t exec vim-anywhere nvim termite
#+end_src
2019-05-16 21:13:08 +02:00
* TODO Windows Manager
** Change focus
2019-01-31 09:41:03 +01:00
#+begin_src conf
2019-05-16 21:13:08 +02:00
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
2019-01-31 09:41:03 +01:00
2019-05-16 21:13:08 +02:00
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
** Move focused window
2019-01-31 09:41:03 +01:00
#+begin_src conf
2019-05-16 21:13:08 +02:00
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
2019-01-31 09:41:03 +01:00
2019-05-16 21:13:08 +02:00
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
** TODO [#A] Split orientation - Use just one key bindings that alternates?
2019-01-31 09:41:03 +01:00
#+begin_src conf
2019-12-15 10:53:57 +01:00
bindsym $mod+q split h
2019-05-16 21:13:08 +02:00
bindsym $mod+v split v
2019-01-31 09:41:03 +01:00
#+end_src
** Kill focused window
#+begin_src conf
2019-05-16 21:13:08 +02:00
bindsym $mod+Shift+q kill
2019-01-31 09:41:03 +01:00
#+end_src
** Use Mouse+$mod to drag floating windows
#+begin_src conf
2019-05-16 21:13:08 +02:00
floating_modifier $mod
2019-01-31 09:41:03 +01:00
#+end_src
** Toggle fullscreen mode for the focused container
#+begin_src conf
2019-05-16 21:13:08 +02:00
bindsym $mod+f fullscreen toggle
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
** TODO [#A] Change container layout (stacked, tabbed, toggle split)
2019-01-31 09:41:03 +01:00
#+begin_src conf
2019-05-16 21:13:08 +02:00
# bindsym $mod+s layout stacking
2019-12-15 10:53:57 +01:00
# bindsym $mod+l layout toggle split
2019-05-16 21:13:08 +02:00
# bindsym $mod+w layout tabbed
2019-12-15 10:53:57 +01:00
# Toggle between stacking/tabbed/split:
bindsym $mod+x layout toggle tabbed split
# bindsym $mod+Shift+s layout stacking
# bindsym $mod+t layout tabbed
2019-05-16 21:13:08 +02:00
# bindsym $mod+e layout toggle split
2019-01-31 09:41:03 +01:00
#+end_src
** TODO Toggle tiling / floating
#+begin_src conf
2019-04-04 10:27:43 +02:00
bindsym $mod+Shift+space floating toggle
2019-01-31 09:41:03 +01:00
#+end_src
** TODO Change focus between tiling / floating windows
#+begin_src conf
bindsym $mod+a focus mode_toggle
2019-01-31 09:41:03 +01:00
#+end_src
** TODO Toggle sticky
2019-12-15 10:53:57 +01:00
If you want a window to stick to the glass, i.e., have it stay on screen even if you switch to another workspace, you can use the sticky command.
2019-01-31 09:41:03 +01:00
#+begin_src conf
2019-12-15 10:53:57 +01:00
# bindsym $mod+Shift+s sticky toggle
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
** Resize Floating Window
2019-01-31 09:41:03 +01:00
#+begin_src conf
2019-05-16 21:13:08 +02:00
bindsym $mod+Shift+y resize shrink width 10 px or 10 ppt
bindsym $mod+Shift+u resize grow height 10 px or 10 ppt
bindsym $mod+Shift+i resize shrink height 10 px or 10 ppt
bindsym $mod+Shift+o resize grow width 10 px or 10 ppt
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
* TODO [#B] Scratchpad
** Move to Scratchpad
2019-01-31 09:41:03 +01:00
#+begin_src conf
2019-04-04 10:27:43 +02:00
# move the currently focused window to the scratchpad
bindsym $mod+Shift+BackSpace move scratchpad
2019-01-31 09:41:03 +01:00
2019-04-04 10:27:43 +02:00
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+BackSpace scratchpad show
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
** TODO Custom Cratchpad for Quick Access
2019-05-30 16:24:13 +02:00
:PROPERTIES:
:header-args:conf+: :tangle no
:END:
2019-05-16 21:13:08 +02:00
*** Music with ncmpcpp
2019-01-31 09:41:03 +01:00
#+begin_src conf
for_window [instance="scratch-ncmpcpp"] scratchpad show;
2019-05-16 21:13:08 +02:00
exec termite --name="scratch-ncmpcpp" --exec="tmux -L ncmpcpp attach"
for_window [instance="scratch-ncmpcpp"] floating enable;
for_window [instance="scratch-ncmpcpp"] move position 440 px 225 px;
for_window [instance="scratch-ncmpcpp"] resize set 800 px 600 px;
for_window [instance="scratch-ncmpcpp"] move scratchpad;
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
*** Calculator with insect
2019-01-31 09:41:03 +01:00
#+begin_src conf
for_window [instance="scratch-insect"] scratchpad show;
exec termite --name="scratch-insect" --exec="insect"
for_window [instance="scratch-insect"] floating enable;
for_window [instance="scratch-insect"] move position 440 px 225 px;
for_window [instance="scratch-insect"] resize set 800 px 600 px;
for_window [instance="scratch-insect"] move scratchpad;
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
*** Ranger
2019-01-31 09:41:03 +01:00
#+begin_src conf
for_window [instance="scratch-ranger"] scratchpad show;
2019-05-30 16:24:13 +02:00
exec alacritty -name scratch-ranger -e ranger
for_window [instance="scratch-ranger"] floating enable;
for_window [instance="scratch-ranger"] move position 240 px 125 px;
for_window [instance="scratch-ranger"] resize set 1200 px 800 px;
for_window [instance="scratch-ranger"] move scratchpad;
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
*** Terminal
2019-01-31 09:41:03 +01:00
#+begin_src conf
for_window [instance="scratch-termite"] scratchpad show;
exec termite --name="scratch-termite"
for_window [instance="scratch-termite"] floating enable;
for_window [instance="scratch-termite"] move position 440 px 225 px;
for_window [instance="scratch-termite"] resize set 800 px 600 px;
for_window [instance="scratch-termite"] move scratchpad;
2019-01-31 09:41:03 +01:00
#+end_src
** TODO Stratchpad Mode - Add scripts that is there is no windows with that name runs the windows and then displays it
2019-05-30 16:24:13 +02:00
:PROPERTIES:
:header-args:conf+: :tangle no
:END:
2019-01-31 09:41:03 +01:00
#+begin_src conf
bindsym $mod+s mode "$mode_stratchpad"
2019-05-30 16:24:13 +02:00
set $mode_stratchpad (c)alc (s)hell (n)ews (r)anger
2019-01-31 09:41:03 +01:00
mode "$mode_stratchpad" {
bindsym p [instance="scratch-ncmpcpp"] scratchpad show; mode "default"
bindsym s [instance="scratch-termite"] scratchpad show; mode "default"
bindsym c [instance="scratch-insect"] scratchpad show; mode "default"
bindsym r [instance="scratch-ranger"] scratchpad show; mode "default"
# exit system mode: "Enter" or "Escape"
bindsym Return mode "default"
bindsym Escape mode "default"
}
#+end_src
2019-05-16 21:13:08 +02:00
* Workspaces
** Workspace names
2019-01-31 09:41:03 +01:00
To display names or symbols instead of plain workspace numbers you can use something like: =set $ws1 1:mail= and =set $ws2 2:=.
#+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-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
** Switch to workspace
2019-01-31 09:41:03 +01:00
#+begin_src conf
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
** Navigate Workspace
2019-01-31 09:41:03 +01:00
** Workspace back and forth (with/without active container)
#+begin_src conf
workspace_auto_back_and_forth yes
bindsym $mod+b workspace back_and_forth
2019-12-15 10:53:57 +01:00
# bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
2019-01-31 09:41:03 +01:00
#+end_src
** Move to prev/next workspace
#+begin_src conf
bindsym $mod+n workspace next
bindsym $mod+p workspace prev
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
** Move focused container to workspace
2019-01-31 09:41:03 +01:00
#+begin_src conf
bindsym $mod+Ctrl+1 move container to workspace $ws1
bindsym $mod+Ctrl+2 move container to workspace $ws2
bindsym $mod+Ctrl+3 move container to workspace $ws3
bindsym $mod+Ctrl+4 move container to workspace $ws4
bindsym $mod+Ctrl+5 move container to workspace $ws5
bindsym $mod+Ctrl+6 move container to workspace $ws6
bindsym $mod+Ctrl+7 move container to workspace $ws7
bindsym $mod+Ctrl+8 move container to workspace $ws8
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
** Move to workspace with focused container
2019-01-31 09:41:03 +01:00
#+begin_src conf
bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
2019-01-31 09:41:03 +01:00
#+end_src
2019-05-16 21:13:08 +02:00
** Open applications on specific workspaces
2019-01-31 09:41:03 +01:00
#+begin_src conf
# Matlab Figures
assign[title="^Fig"] $ws6
for_window [title="^Fig"] layout tabbed
assign[title="^HG_Peer"] $ws6 # Name of window when export figure with matlab
#+end_src
* Open specific applications in floating mode
#+begin_src conf
for_window [title="File Transfer*"] floating enable
for_window [class="GParted"] floating enable border normal
for_window [title="i3_help"] floating enable sticky enable border normal
for_window [class="Lightdm-settings"] floating enable
for_window [class="Lxappearance"] floating enable sticky enable border normal
for_window [class="Manjaro Settings Manager"] floating enable border normal
for_window [class="Pamac-manager"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="qt5ct"] floating enable sticky enable border normal
for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal
for_window [class="Simple-scan"] floating enable border normal
for_window [class="(?i)System-config-printer.py"] floating enable border normal
for_window [class="Timeset-gui"] floating enable border normal
for_window [class="(?i)virtualbox"] floating enable border normal
for_window [class="Xfburn"] floating enable
for_window [title="^Documentation -"] floating enable border normal
for_window [class="Yad"] floating enable
2019-08-23 10:02:20 +02:00
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
* Restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
2019-01-31 09:41:03 +01:00
#+begin_src conf
2019-03-26 12:10:43 +01:00
bindsym $mod+Shift+r restart
2019-05-16 21:13:08 +02:00
bindsym $mod+r exec $HOME/.config/polybar/scripts/launch.sh
2019-01-31 09:41:03 +01:00
#+end_src
* Color palette used for the terminal ( ~/.Xresources file )
Colors are gathered based on the documentation https://i3wm.org/docs/userguide.html#xresources.
#+begin_src conf
2019-03-26 12:10:43 +01:00
set_from_resource $darkred color1 #000000
set_from_resource $red color9 #000000
set_from_resource $darkgreen color2 #000000
set_from_resource $green color10 #000000
set_from_resource $darkyellow color3 #000000
set_from_resource $yellow color11 #000000
set_from_resource $darkblue color4 #000000
set_from_resource $blue color12 #000000
set_from_resource $darkmagenta color5 #000000
set_from_resource $magenta color13 #000000
set_from_resource $darkcyan color6 #000000
set_from_resource $cyan color14 #000000
set_from_resource $darkwhite color7 #000000
set_from_resource $white color15 #000000
# Use custom colors for black
set $black #282828
set $darkblack #1d2021
set $transparent #00000000
# set_from_resource $term_background background
# set_from_resource $term_foreground foreground
# set_from_resource $term_color0 color0
# set_from_resource $term_color1 color1
# set_from_resource $term_color2 color2
# set_from_resource $term_color3 color3
# set_from_resource $term_color4 color4
# set_from_resource $term_color5 color5
# set_from_resource $term_color6 color6
# set_from_resource $term_color7 color7
# set_from_resource $term_color8 color8
# set_from_resource $term_color9 color9
# set_from_resource $term_color10 color10
# set_from_resource $term_color11 color11
# set_from_resource $term_color12 color12
# set_from_resource $term_color13 color13
# set_from_resource $term_color14 color14
# set_from_resource $term_color15 color15
2019-01-31 09:41:03 +01:00
#+end_src
* TODO Theme colors
#+begin_src conf
2019-03-26 12:10:43 +01:00
# class border backgr. text indic. child_border
2019-05-16 21:13:08 +02:00
client.focused $blue $blue $fg $blue
client.focused_inactive $bg $bg $fg $bg
client.urgent $bg $bg $fg $bg
client.unfocused $bg $bg $fg $bg
client.placeholder $bg $bg $fg $bg
2019-01-31 09:41:03 +01:00
2019-05-16 21:13:08 +02:00
client.background #32302F
2019-01-31 09:41:03 +01:00
#+end_src
* Settings for i3-gaps
#+begin_src conf
2019-03-26 12:10:43 +01:00
# Set inner/outer gaps
gaps inner 10
gaps outer -2
2019-01-31 09:41:03 +01:00
2019-03-26 12:10:43 +01:00
# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
# gaps inner|outer current|all set|plus|minus <px>
# gaps inner all set 10
# gaps outer all plus 5
2019-01-31 09:41:03 +01:00
2019-03-26 12:10:43 +01:00
# Smart gaps (gaps used if only more than one container on the workspace)
# smart_gaps on
2019-01-31 09:41:03 +01:00
2019-03-26 12:10:43 +01:00
# Smart borders (draw borders around container only if it is not the only container on this workspace)
# on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
2019-05-16 21:13:08 +02:00
# smart_borders on
2019-01-31 09:41:03 +01:00
2019-03-26 12:10:43 +01:00
# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
set $mode_gaps Gaps: (o) outer, (i) inner
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $mod+Shift+g mode "$mode_gaps"
2019-01-31 09:41:03 +01:00
2019-03-26 12:10:43 +01:00
mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_inner" {
bindsym plus gaps inner current plus 5
bindsym minus gaps inner current minus 5
bindsym 0 gaps inner current set 0
bindsym Shift+plus gaps inner all plus 5
bindsym Shift+minus gaps inner all minus 5
bindsym Shift+0 gaps inner all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_outer" {
bindsym plus gaps outer current plus 5
bindsym minus gaps outer current minus 5
bindsym 0 gaps outer current set 0
bindsym Shift+plus gaps outer all plus 5
bindsym Shift+minus gaps outer all minus 5
bindsym Shift+0 gaps outer all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
2019-01-31 09:41:03 +01:00
#+end_src
* Keyboard Configuration
#+begin_src conf
2019-03-26 12:10:43 +01:00
# Set repetition keyboard rate
exec --no-startup-id xset r rate 200 40
2019-03-26 12:10:43 +01:00
# Set International US keyboard layout
2019-04-05 09:28:34 +02:00
# exec --no-startup-id setxkbmap -layout us -variant intl -option caps:escape
2019-03-26 12:10:43 +01:00
# Default numpad on
# exec --no-startup-id numlockx &
2019-01-31 09:41:03 +01:00
#+END_SRC