Commits

Alain Leufroy committed 07829d2

[i3] separate startup script + keybindings

  • Participants
  • Parent commits 651a24f

Comments (0)

Files changed (2)

File config/i3/config

 # and xmodmap(1). Usually, Mod1 is Alt (Alt_L) and Mod3 is Windows (Super_L)
 
 # ISO 10646 = Unicode
-font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
+font -misc-fixed-medium-r-normal-*-9-90-75-75-c-60-iso10646-1
 
 # Use Mouse+Mod1 to drag floating windows to their wanted position
 floating_modifier Mod1
 
 # Fullscreen (Mod1+Print)
-bind Mod1+107 f
+bindsym Mod1+Shift+Home f
 
 # Stacking (Mod1+h)
 #bind Mod1+43 s
 
 # Tabbed (Mod1+Shift+Print)
-bind Mod1+Shit+107 T
+bindsym Mod1+Home T
 
 # Default (Mod1+Next)
 #bind Mod1+107 d
 
-# Toggle tiling/floating of the current window (Mod1+Shift+Escape)
-bind Mod1+Shift+9 t
+# Toggle tiling/floating of the current window (Mod1+Shift+space)
+#bind Mod1+Shift+65 t
 
 # Go into the tiling layer / floating layer, depending on whether
 # the current window is tiling / floating (Mod1+t)
 #bind Mod1+28 focus ft
 
 # Focus (Mod1+Down/Up/Prio/Next;)
-bind Mod1+43 Down
-bind Mod1+44 Up
-bind Mod1+45 112
-bind Mod1+46 117
+bindsym Mod1+Prior h
+bindsym Mod1+Down j
+bindsym Mod1+Up k
+bindsym Mod1+Next l
 # (alternatively, you can use the cursor keys:)
 #bindsym Mod1+Left h
 #bindsym Mod1+Down j
 #bindsym Mod1+Control+Right sl
 
 # Move (Mod1+Shift+Down/Up/Prior/Next;)
-bind Mod1+Shift+Down mh
-bind Mod1+Shift+Up mj
-bind Mod1+Shift+112 mk
-bind Mod1+Shift+117 ml
+bindsym Mod1+Shift+Prior mh
+bindsym Mod1+Shift+Down mj
+bindsym Mod1+Shift+Up mk
+bindsym Mod1+Shift+Next ml
 ## (alternatively, you can use the cursor keys:)
 #bindsym Mod1+Shift+Left mh
 #bindsym Mod1+Shift+Down mj
 bind Mod1+Shift+76 m10
 
 # Mod1+Enter starts a new terminal (Mod+Enter)
-bind Mod1+36 exec /usr/bin/gnome-terminal
+bind Mod1+36 exec /usr/bin/urxvtc
 
 # Mod1+Del kills the current client (Mod+Del)
 bind Mod1+119 kill
 # Mod1+v starts dmenu and launches the selected application
 # for now, we don’t have a launcher of our own.
 # Mod+Esc
-bindsym Mod+( exec /usr/bin/dmenu_run
+bind Mod1+9 exec /usr/bin/dmenu_run
 
 # Mod1+Shift+End exits i3
 bind Mod1+Shift+115 exit
 #############################################################
 # DELETE THE FOLLOWING LINES TO DISABLE THE WELCOME MESSAGE #
 #############################################################
-exec xmessage -file /etc/i3/welcome
-exec setxkbmap us,fr
-exec setxkbmap -option ctrl:nocaps
-exec setxkbmap -option compose:menu
+# exec xmessage -file /etc/i3/welcome
+exec /bin/sh ~/.i3/init

File config/i3/init

+# set background
+eval $(cat ~/.fehbg) &
+# start urxvt server
+urxvtd -q -o -f &
+# start emacs server
+emacsc -daemon &
+# change keyboard layout
+setxkbmap -option ctrl:nocaps && \
+setxkbmap -option compose:menu && \
+setxkbmap us &