Update Xinit

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

View File

@ -1,10 +1,10 @@
#+TITLE: Configuration Files #+TITLE: Configuration Files
* Xresources * Xresources
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.Xresources :header-args: :tangle ~/.Xresources
:header-args+: :comments none :mkdirp yes :header-args+: :comments none :mkdirp yes
:END: :END:
** Colors ** Colors
#+begin_src conf #+begin_src conf
@ -145,10 +145,10 @@
#+end_src #+end_src
* Font * Font
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/fontconfig/fonts.conf :header-args: :tangle ~/.config/fontconfig/fonts.conf
:header-args+: :comments none :mkdirp yes :header-args+: :comments none :mkdirp yes
:END: :END:
#+begin_src conf #+begin_src conf
<?xml version='1.0'?> <?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
@ -175,10 +175,10 @@
#+end_src #+end_src
* Redshift * Redshift
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/redshift.conf :header-args: :tangle ~/.config/redshift.conf
:header-args+: :comments none :mkdirp yes :header-args+: :comments none :mkdirp yes
:END: :END:
#+begin_src conf #+begin_src conf
[redshift] [redshift]
@ -229,10 +229,10 @@
#+end_src #+end_src
* dmenu * dmenu
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.dmenurc :header-args: :tangle ~/.dmenurc
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
# define the font for dmenu to be used # define the font for dmenu to be used
@ -259,10 +259,10 @@
* GTK * GTK
** GTK-2.0 ** GTK-2.0
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.gtkrc-2.0.mine :header-args: :tangle ~/.gtkrc-2.0.mine
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
gtk-theme-name="Arc-Dark" gtk-theme-name="Arc-Dark"
@ -283,10 +283,10 @@
#+END_SRC #+END_SRC
** GTK-3.0 ** GTK-3.0
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/gtk-3.0/settings.ini :header-args: :tangle ~/.config/gtk-3.0/settings.ini
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
[Settings] [Settings]
@ -308,10 +308,10 @@
#+END_SRC #+END_SRC
* Input * Input
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.inputrc :header-args: :tangle ~/.inputrc
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
# Single tab for autocompletion # Single tab for autocompletion
@ -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,12 +589,13 @@
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
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/bin/sh" :header-args+: :shebang "#!/bin/sh"
:END: :END:
Start =gnome-keyring-daemon= in order not to be asked for password to unlock GPG key. Start =gnome-keyring-daemon= in order not to be asked for password to unlock GPG key.
#+begin_src conf #+begin_src conf
@ -616,69 +630,72 @@ 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
* GnuPG * GnuPG
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.gnupg/gpg-agent.conf :header-args: :tangle ~/.gnupg/gpg-agent.conf
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
max-cache-ttl 60480000 max-cache-ttl 60480000
@ -686,10 +703,10 @@ Keyboard Options
#+END_SRC #+END_SRC
* Dunst * Dunst
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/dunst/dunstrc :header-args: :tangle ~/.config/dunst/dunstrc
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
** Global ** Global
#+begin_src conf #+begin_src conf
@ -936,10 +953,10 @@ Keyboard Options
timeout = 0 timeout = 0
#+END_SRC #+END_SRC
* feh * feh
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/feh/config :header-args: :tangle ~/.config/feh/config
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
next_img L space next_img L space
@ -955,11 +972,12 @@ Keyboard Options
#+END_SRC #+END_SRC
* SXIV * SXIV
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/sxiv/exec/key-handler :header-args: :tangle ~/.config/sxiv/exec/key-handler
: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
@ -980,10 +998,10 @@ Press =C-x= to activate to key handler.
* MPV * MPV
** Configuration ** Configuration
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/mpv/mpv.conf :header-args: :tangle ~/.config/mpv/mpv.conf
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
*** Video settings *** Video settings
#+begin_src conf #+begin_src conf
@ -1085,10 +1103,10 @@ sub-auto=fuzzy
#+end_src #+end_src
** Key bindings ** Key bindings
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/mpv/input.conf :header-args: :tangle ~/.config/mpv/input.conf
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
# ============================================================= # =============================================================
@ -1292,10 +1310,10 @@ sub-auto=fuzzy
# ============================================================= # =============================================================
#+END_SRC #+END_SRC
* Zathura * Zathura
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/zathura/zathurarc :header-args: :tangle ~/.config/zathura/zathurarc
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
# Use clipboard # Use clipboard
@ -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
@ -1367,10 +1387,10 @@ sub-auto=fuzzy
#+end_src #+end_src
* Compton * Compton
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/compton.conf :header-args: :tangle ~/.config/compton.conf
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
** Shadow ** Shadow
#+BEGIN_SRC conf #+BEGIN_SRC conf
@ -1479,10 +1499,10 @@ sub-auto=fuzzy
#+end_src #+end_src
* Locale * Locale
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/locale.conf :header-args: :tangle ~/.config/locale.conf
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
LANG=en_US.UTF-8 LANG=en_US.UTF-8
@ -1502,10 +1522,10 @@ sub-auto=fuzzy
#+END_SRC #+END_SRC
* Mime applications * Mime applications
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/mimeapps.list :header-args: :tangle ~/.config/mimeapps.list
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
[Default Applications] [Default Applications]
@ -1540,11 +1560,11 @@ sub-auto=fuzzy
#+END_SRC #+END_SRC
* Bukurun * Bukurun
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/buku_run/config :header-args: :tangle ~/.config/buku_run/config
: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:
#+BEGIN_SRC conf #+BEGIN_SRC conf
_rofi () { _rofi () {
@ -1573,10 +1593,10 @@ Colors
#+END_SRC #+END_SRC
* Clipit - Clipboard Manager * Clipit - Clipboard Manager
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/clipit/clipitrc :header-args: :tangle ~/.config/clipit/clipitrc
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
[rc] [rc]
@ -1607,20 +1627,20 @@ Colors
#+END_SRC #+END_SRC
* Scrot * Scrot
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/i3-scrot.conf :header-args: :tangle ~/.config/i3-scrot.conf
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
scrot_dir=$HOME/Pictures scrot_dir=$HOME/Pictures
#+END_SRC #+END_SRC
* TODO [#B] Nitrogen * TODO [#B] Nitrogen
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/nitrogen/nitrogen.cfg :header-args: :tangle ~/.config/nitrogen/nitrogen.cfg
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
[geometry] [geometry]
@ -1638,10 +1658,10 @@ Colors
#+END_SRC #+END_SRC
* Pass Git Helper * Pass Git Helper
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/pass-git-helper/git-pass-mapping.ini :header-args: :tangle ~/.config/pass-git-helper/git-pass-mapping.ini
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
[github.com*] [github.com*]
@ -1649,10 +1669,10 @@ Colors
#+END_SRC #+END_SRC
* Pavu Control * Pavu Control
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/pavucontrol.ini :header-args: :tangle ~/.config/pavucontrol.ini
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
[window] [window]
@ -1666,10 +1686,10 @@ Colors
#+END_SRC #+END_SRC
* PCmanfm * PCmanfm
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/pcmanfm/default/pcmanfm.conf :header-args: :tangle ~/.config/pcmanfm/default/pcmanfm.conf
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
[config] [config]
@ -1701,10 +1721,10 @@ Colors
#+END_SRC #+END_SRC
* Viewnior * Viewnior
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/viewnior/viewnior.conf :header-args: :tangle ~/.config/viewnior/viewnior.conf
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
[prefs] [prefs]
@ -1728,20 +1748,21 @@ Colors
desktop=9 desktop=9
#+END_SRC #+END_SRC
* Castnow * Castnow
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.castnowrc :header-args: :tangle ~/.castnowrc
:header-args+: :comments none :mkdirp yes :header-args+: :comments none :mkdirp yes
:END: :END:
#+begin_src conf #+begin_src conf
--address=192.168.1.51 --address=192.168.1.51
--volume-step=0.01 --volume-step=0.01
#+end_src #+end_src
* Alacritty * Alacritty
:PROPERTIES: :PROPERTIES:
: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