Update Xinit

This commit is contained in:
Thomas Dehaeze 2019-12-15 10:58:16 +01:00
parent 6df342a9c9
commit b620cf85bc

View File

@ -321,11 +321,24 @@
set completion-ignore-case on set completion-ignore-case on
#+END_SRC #+END_SRC
#+BEGIN_SRC conf
# VI mode (works in bash and zsh)
set editing-mode vi
# Show which mode (normal or insert)
set show-mode-in-prompt on
# Show the mode by changing the cursor
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2
#+END_SRC
* Xmodmap * Xmodmap
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.Xmodmap :header-args: :tangle ~/.Xmodmap
:header-args+: :comments no :mkdirp yes :header-args+: :comments no :mkdirp yes
:END: :END:
#+begin_src conf #+begin_src conf
keycode 8 = keycode 8 =
keycode 9 = Escape NoSymbol Escape keycode 9 = Escape NoSymbol Escape
@ -576,6 +589,7 @@
keycode 254 = XF86WWAN NoSymbol XF86WWAN keycode 254 = XF86WWAN NoSymbol XF86WWAN
keycode 255 = XF86RFKill NoSymbol XF86RFKill keycode 255 = XF86RFKill NoSymbol XF86RFKill
#+end_src #+end_src
* xinit * xinit
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.xinitrc :header-args: :tangle ~/.xinitrc
@ -616,61 +630,64 @@ Merge in defaults and keymaps
fi fi
#+END_SRC #+END_SRC
Start some nice programs Start the Simple X Hotkey Daemon
#+BEGIN_SRC conf #+begin_src conf
if [ -d /etc/X11/xinit/xinitrc.d ] ; then # sxhkd -m 1 &
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do #+end_src
[ -x "$f" ] && . "$f"
done
unset f
fi
#+END_SRC
hiDPI Run background applications
#+BEGIN_SRC conf #+begin_src conf
# export GDK_SCALE=1 # # Set custom wallpaper script
# export GDK_DPI_SCALE=0.95 # $HOME/scripts/wallpapers.sh &
# export QT_SCREEN_SCALE_FACTORS=0.9 # # Run Compton
# export QT_AUTO_SCREEN_SCALE_FACTOR=2 # compton -b &
# export QT_SCALE_FACTOR=2
#+END_SRC # # Start Network Management Framework
# nm-applet &
# # Hide mouse cursor after x seconds
# unclutter --timeout 5 &
# # Start Power Manager
# xfce4-power-manager &
# # Bluetooth Manager
# blueman-applet &
# # Autolock screen after x minutes
# xautolock -locker "~/scripts/lockscreen.sh" -detectsleep -time 30 -notify 60 -notifier "dunstify --replace=31846 -u critical -t 10000 -- 'Locking Screen' '60 seconds'" &
# # Screen options
# xrandr --output eDP1 --mode 1920x1080 --dpi 192 &
# # Redshift
# redshift-gtk &
# # Start mopidy
# mopidy &
# # Start polybar
# $HOME/.config/polybar/scripts/launch.sh &
# # Synology Cloud Station Drive
# synology-drive &
# # KDEconnect
# # udiskie /usr/lib/kdeconnectd &
# # Udiskie to automount usb keys
# udiskie --automount --notify --tray --use-udisks2 &
#+end_src
Keyboard Options Keyboard Options
#+begin_src conf #+begin_src conf
# Set repetition keyboard rate # Set repetition keyboard rate
xset r rate 200 40 # xset r rate 200 40 &
# Set International US keyboard layout # Set International US keyboard layout
setxkbmap -layout us -variant intl -option caps:escape setxkbmap -layout us -variant intl -option caps:escape &
#+end_src #+end_src
#+BEGIN_SRC conf #+BEGIN_SRC conf
get_session(){
local dbus_args=(--sh-syntax --exit-with-session)
case $1 in
awesome) dbus_args+=(awesome) ;;
bspwm) dbus_args+=(bspwm-session) ;;
budgie) dbus_args+=(budgie-desktop) ;;
cinnamon) dbus_args+=(cinnamon-session) ;;
deepin) dbus_args+=(startdde) ;;
enlightenment) dbus_args+=(enlightenment_start) ;;
fluxbox) dbus_args+=(startfluxbox) ;;
gnome) dbus_args+=(gnome-session) ;;
i3|i3wm) dbus_args+=(i3 --shmlog-size 0) ;;
jwm) dbus_args+=(jwm) ;;
kde) dbus_args+=(startkde) ;;
lxde) dbus_args+=(startlxde) ;;
lxqt) dbus_args+=(lxqt-session) ;;
mate) dbus_args+=(mate-session) ;;
xfce) dbus_args+=(xfce4-session) ;;
openbox) dbus_args+=(openbox-session) ;;
,*) dbus_args+=($DEFAULT_SESSION) ;;
esac
echo "dbus-launch ${dbus_args[*]}"
}
exec $(get_session)
exec i3 exec i3
#+END_SRC #+END_SRC
@ -960,6 +977,7 @@ Keyboard Options
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash" :header-args+: :shebang "#!/usr/bin/env bash"
:END: :END:
Press =C-x= to activate to key handler. Press =C-x= to activate to key handler.
#+begin_src conf #+begin_src conf
@ -1315,6 +1333,8 @@ sub-auto=fuzzy
map r reload map r reload
map R rotate map R rotate
map > rotate
map < rotate
map L zoom in map L zoom in
map H zoom out map H zoom out
@ -1742,6 +1762,7 @@ Colors
:header-args: :tangle ~/.config/alacritty/alacritty.yml :header-args: :tangle ~/.config/alacritty/alacritty.yml
:header-args+: :comments none :mkdirp yes :header-args+: :comments none :mkdirp yes
:END: :END:
#+begin_src conf #+begin_src conf
# Configuration for Alacritty, the GPU enhanced terminal emulator. # Configuration for Alacritty, the GPU enhanced terminal emulator.
@ -1825,15 +1846,6 @@ scrolling:
# scrollback is enabled (history > 0). # scrollback is enabled (history > 0).
multiplier: 3 multiplier: 3
# Faux Scrolling
#
# The `faux_multiplier` setting controls the number of lines the terminal
# should scroll when the alternate screen buffer is active. This is used
# to allow mouse scrolling for applications like `man`.
#
# Specifying `0` will disable faux scrolling.
faux_multiplier: 3
# Scroll to the bottom when new text is written to the terminal. # Scroll to the bottom when new text is written to the terminal.
auto_scroll: false auto_scroll: false