from .i3 to .config/i3 / Add megasync / debug binaries in path

This commit is contained in:
Thomas Dehaeze 2019-03-05 22:08:13 +01:00
parent a30a32a57b
commit c5b2e3fb3b

View File

@ -1,7 +1,7 @@
#+TITLE: I3 Configuration #+TITLE: I3 Configuration
#+PROPERTY: header-args:conf+ :comments both #+PROPERTY: header-args:conf+ :comments both
#+PROPERTY: header-args:conf+ :mkdirp yes #+PROPERTY: header-args:conf+ :mkdirp yes
#+PROPERTY: header-args:conf+ :tangle ~/.i3/config #+PROPERTY: header-args:conf+ :tangle ~/.config/i3/config
* Mod Key * Mod Key
#+BEGIN_SRC conf #+BEGIN_SRC conf
@ -49,7 +49,6 @@ bindsym XF86LaunchB fullscreen toggle
* Start Applications * Start Applications
#+begin_src conf #+begin_src conf
# TODO
# Start program launcher # Start program launcher
bindsym $mod+d exec --no-startup-id rofi -show run bindsym $mod+d exec --no-startup-id rofi -show run
# Windows Switch # Windows Switch
@ -61,15 +60,15 @@ bindsym $mod+Shift+c exec --no-startup-id rofi -show CheatSheets -modi CheatShee
# Launch categorized menu # Launch categorized menu
bindsym $mod+z exec --no-startup-id rofimenu bindsym $mod+z exec --no-startup-id rofimenu
# Bookmarks # Bookmarks
bindsym $mod+Shift+f exec --no-startup-id buku_run bindsym $mod+Shift+F exec --no-startup-id $HOME/bin/buku_run
# Passwords # Passwords
bindsym $mod+Shift+p exec --no-startup-id rofi-pass bindsym $mod+Shift+P exec --no-startup-id pass clip
# Start Terminal # Start Terminal
bindsym $mod+Return exec termite bindsym $mod+Return exec termite
# Tmux Terminal # Tmux Terminal
bindsym $mod+Shift+Return exec termite -e 'tmux' bindsym $mod+Shift+Return exec termite -e 'tmux'
# Configuration application # Configuration application
bindsym $mod+Ctrl+b exec termite -e 'bmenu' bindsym $mod+Ctrl+B exec termite -e 'bmenu'
# Start Command line Calendar # Start Command line Calendar
bindsym $mod+c exec termite -e "khal interactive" bindsym $mod+c exec termite -e "khal interactive"
# Start GUI Calendar (Google calendar) # Start GUI Calendar (Google calendar)
@ -112,7 +111,7 @@ bindsym $mod+Print --release exec --no-startup-id i3-scrot -w
bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s
#+end_src #+end_src
* change focus * Change focus
#+begin_src conf #+begin_src conf
bindsym $mod+h focus left bindsym $mod+h focus left
bindsym $mod+j focus down bindsym $mod+j focus down
@ -201,6 +200,16 @@ bindsym $mod+BackSpace scratchpad show
#+end_src #+end_src
* Custom Cratchpad for Quick Access * Custom Cratchpad for Quick Access
** Weechat
#+begin_src conf
for_window [instance="scratch-weechat"] scratchpad show;
exec termite --name="scratch-weechat" --exec="weechat"
for_window [instance="scratch-weechat"] floating enable;
for_window [instance="scratch-weechat"] move position 240 px 125 px;
for_window [instance="scratch-weechat"] resize set 1200 px 800 px;
for_window [instance="scratch-weechat"] move scratchpad;
#+end_src
** Music with ncmpcpp ** Music with ncmpcpp
#+begin_src conf #+begin_src conf
for_window [instance="scratch-ncmpcpp"] scratchpad show; for_window [instance="scratch-ncmpcpp"] scratchpad show;
@ -264,8 +273,9 @@ for_window [instance="scratch-termite"] move scratchpad;
** TODO Stratchpad Mode - Add scripts that is there is no windows with that name runs the windows and then displays it ** TODO Stratchpad Mode - Add scripts that is there is no windows with that name runs the windows and then displays it
#+begin_src conf #+begin_src conf
bindsym $mod+s mode "$mode_stratchpad" bindsym $mod+s mode "$mode_stratchpad"
set $mode_stratchpad (m)ails (p)layer (c)alc (s)hell (n)ews (r)anger set $mode_stratchpad (w)eechat (m)ails (p)layer (c)alc (s)hell (n)ews (r)anger
mode "$mode_stratchpad" { mode "$mode_stratchpad" {
bindsym w [instance="scratch-weechat"] scratchpad show; mode "default"
bindsym p [instance="scratch-ncmpcpp"] scratchpad show; mode "default" bindsym p [instance="scratch-ncmpcpp"] scratchpad show; mode "default"
bindsym n [instance="scratch-newsboat"] scratchpad show; mode "default" bindsym n [instance="scratch-newsboat"] scratchpad show; mode "default"
bindsym s [instance="scratch-termite"] scratchpad show; mode "default" bindsym s [instance="scratch-termite"] scratchpad show; mode "default"
@ -345,9 +355,6 @@ bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
* Open applications on specific workspaces * Open applications on specific workspaces
#+begin_src conf #+begin_src conf
# assign [class="qutebrowser"] $ws1
# assign [class="Pcmanfm"] $ws2
# Matlab Figures # Matlab Figures
assign[title="^Fig"] $ws6 assign[title="^Fig"] $ws6
for_window [title="^Fig"] layout tabbed for_window [title="^Fig"] layout tabbed
@ -384,21 +391,11 @@ bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
for_window [class="Yad"] floating enable for_window [class="Yad"] floating enable
#+end_src #+end_src
* reload the configuration file * Restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
#+begin_src conf
# bindsym $mod+Shift+c reload
#+end_src
* restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
#+begin_src conf #+begin_src conf
bindsym $mod+Shift+r restart bindsym $mod+Shift+r restart
#+end_src #+end_src
* exit i3 (logs you out of your X session)
#+begin_src conf
# bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
#+end_src
* Set shut down, restart and locking features * Set shut down, restart and locking features
#+begin_src conf #+begin_src conf
bindsym $mod+0 mode "$mode_system" bindsym $mod+0 mode "$mode_system"
@ -436,35 +433,16 @@ mode "command" {
bindsym Shift+r exec pcmanfm; mode "default" bindsym Shift+r exec pcmanfm; mode "default"
# Mails with neomutt # Mails with neomutt
bindsym m exec termite -e "tmuxinator start neomutt"; mode "default" bindsym m exec termite -e "tmuxinator start neomutt"; mode "default"
# Mails with GUI
bindsym Shift+m exec qutebrowser https://mail.google.com/ https://mail.ulg.ac.be/ https://ssl.esrf.fr/+CSCO+0h75676763663A2F2F6A6A6A662E726665732E7365++/rc/?_task=mail&_mbox=INBOX; mode "default"
# Music with ncmpcpp # Music with ncmpcpp
bindsym p exec termite --exec="ncmpcpp"; mode "default" bindsym p exec termite --exec="ncmpcpp"; mode "default"
# Browser with qutebrowser # Browser with qutebrowser
bindsym i exec qutebrowser; mode "default" bindsym i exec qutebrowser; mode "default"
# Browser with firefox # Browser with firefox
bindsym Shift+i exec firefox; mode "default" bindsym Shift+i exec firefox; mode "default"
# exit resize mode: Enter or Escape
bindsym Escape mode "default"
}
#+end_src
* Emacs Mode
#+begin_src conf
bindsym $mod+e mode "emacs"
mode "emacs" {
# Emacs Client # Emacs Client
bindsym e exec emacsclient -create-frame --alternate-editor=""; mode "default" bindsym e exec emacsclient -create-frame --alternate-editor=""; mode "default"
# Full Emacs - Usefull when installing packages # Full Emacs - Usefull when installing packages
bindsym Shift+e exec emacs; mode "default" bindsym Shift+e exec emacs; mode "default"
# Bibliography Managmenet with Emacs and Helm-Bibtex
bindsym b exec emacsclient -create-frame --alternate-editor="" --eval '(helm-bibtex)'; mode "default"
# Capture
bindsym c exec emacsclient -create-frame --alternate-editor="" --eval '(org-capture)'; mode "default"
# TODO Mails with Emacs
# bindsym m exec emacsclient -create-frame --alternate-editor="" --eval '(mu4e)'; mode "default"
# exit resize mode: Enter or Escape # exit resize mode: Enter or Escape
bindsym Escape mode "default" bindsym Escape mode "default"
@ -515,9 +493,11 @@ exec --no-startup-id redshift
# Emacs Daemon # Emacs Daemon
exec --no-startup-id /usr/bin/emacs --fg-daemon exec --no-startup-id /usr/bin/emacs --fg-daemon
# Megasync
exec --no-startup-id megasync
# TODO - Start polybar # TODO - Start polybar
exec_always --no-startup-id $HOME/.config/polybar/bin/launch.sh exec_always --no-startup-id $HOME/.config/polybar/bin/launch.sh
# exec_always --no-startup-id $HOME/.i3/scripts/polybar_wrapper.sh launch
#+end_src #+end_src
* Old autostart Applications * Old autostart Applications