Update Xinit
This commit is contained in:
parent
6df342a9c9
commit
b620cf85bc
@ -321,11 +321,24 @@
|
||||
set completion-ignore-case on
|
||||
#+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
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.Xmodmap
|
||||
:header-args+: :comments no :mkdirp yes
|
||||
:END:
|
||||
|
||||
#+begin_src conf
|
||||
keycode 8 =
|
||||
keycode 9 = Escape NoSymbol Escape
|
||||
@ -576,6 +589,7 @@
|
||||
keycode 254 = XF86WWAN NoSymbol XF86WWAN
|
||||
keycode 255 = XF86RFKill NoSymbol XF86RFKill
|
||||
#+end_src
|
||||
|
||||
* xinit
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.xinitrc
|
||||
@ -616,61 +630,64 @@ Merge in defaults and keymaps
|
||||
fi
|
||||
#+END_SRC
|
||||
|
||||
Start some nice programs
|
||||
#+BEGIN_SRC conf
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done
|
||||
unset f
|
||||
fi
|
||||
#+END_SRC
|
||||
Start the Simple X Hotkey Daemon
|
||||
#+begin_src conf
|
||||
# sxhkd -m 1 &
|
||||
#+end_src
|
||||
|
||||
hiDPI
|
||||
#+BEGIN_SRC conf
|
||||
# export GDK_SCALE=1
|
||||
# export GDK_DPI_SCALE=0.95
|
||||
Run background applications
|
||||
#+begin_src conf
|
||||
# # Set custom wallpaper script
|
||||
# $HOME/scripts/wallpapers.sh &
|
||||
|
||||
# export QT_SCREEN_SCALE_FACTORS=0.9
|
||||
# export QT_AUTO_SCREEN_SCALE_FACTOR=2
|
||||
# export QT_SCALE_FACTOR=2
|
||||
#+END_SRC
|
||||
# # Run Compton
|
||||
# compton -b &
|
||||
|
||||
# # 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
|
||||
#+begin_src conf
|
||||
# Set repetition keyboard rate
|
||||
xset r rate 200 40
|
||||
# xset r rate 200 40 &
|
||||
# Set International US keyboard layout
|
||||
setxkbmap -layout us -variant intl -option caps:escape
|
||||
setxkbmap -layout us -variant intl -option caps:escape &
|
||||
#+end_src
|
||||
|
||||
#+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
|
||||
#+END_SRC
|
||||
|
||||
@ -960,6 +977,7 @@ Keyboard Options
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
|
||||
Press =C-x= to activate to key handler.
|
||||
|
||||
#+begin_src conf
|
||||
@ -1315,6 +1333,8 @@ sub-auto=fuzzy
|
||||
|
||||
map r reload
|
||||
map R rotate
|
||||
map > rotate
|
||||
map < rotate
|
||||
|
||||
map L zoom in
|
||||
map H zoom out
|
||||
@ -1742,6 +1762,7 @@ Colors
|
||||
:header-args: :tangle ~/.config/alacritty/alacritty.yml
|
||||
:header-args+: :comments none :mkdirp yes
|
||||
:END:
|
||||
|
||||
#+begin_src conf
|
||||
# Configuration for Alacritty, the GPU enhanced terminal emulator.
|
||||
|
||||
@ -1825,15 +1846,6 @@ scrolling:
|
||||
# scrollback is enabled (history > 0).
|
||||
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.
|
||||
auto_scroll: false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user