[fix] Auto start the gpg agent and setup the keybord lauots
This commit is contained in:
parent
0d39d11c52
commit
29d62e5242
1 changed files with 9 additions and 16 deletions
25
.xinitrc
25
.xinitrc
|
@ -1,22 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Make sure this is before the 'exec' command or it won't be sourced.
|
|
||||||
[ -f /etc/xprofile ] && . /etc/xprofile
|
|
||||||
[ -f ~/.xprofile ] && . ~/.xprofile
|
|
||||||
|
|
||||||
userresources=$HOME/.Xresources
|
userresources=$HOME/.Xresources
|
||||||
usermodmap=$HOME/.Xmodmap
|
usermodmap=$HOME/.Xmodmap
|
||||||
sysresources=/etc/X11/xinit/.Xresources
|
sysresources=/etc/X11/xinit/.Xresources
|
||||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||||
|
|
||||||
wmname LG3D
|
|
||||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
||||||
export AWT_TOOLKIT=MToolkit
|
|
||||||
|
|
||||||
# merge in defaults and keymaps
|
# merge in defaults and keymaps
|
||||||
|
|
||||||
if [ -f $sysresources ]; then
|
if [ -f $sysresources ]; then
|
||||||
xrdb -merge $sysresources
|
xrdb -merge $sysresources
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f $sysmodmap ]; then
|
if [ -f $sysmodmap ]; then
|
||||||
|
@ -24,9 +16,7 @@ if [ -f $sysmodmap ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$userresources" ]; then
|
if [ -f "$userresources" ]; then
|
||||||
|
|
||||||
xrdb -merge "$userresources"
|
xrdb -merge "$userresources"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$usermodmap" ]; then
|
if [ -f "$usermodmap" ]; then
|
||||||
|
@ -42,10 +32,13 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||||
unset f
|
unset f
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# picom &
|
# gnupg keyring agent
|
||||||
# slstatus &
|
# ensure it's started so SSH will work
|
||||||
# setxkbmap -model pc101 -layout us,ara -variant ,, -option grp:win_space_toggle &
|
# https://www.gnupg.org/faq/whats-new-in-2.1.html#autostart
|
||||||
|
dbus-update-activation-environment --systemd DISPLAY
|
||||||
|
gpgconf --launch gpg-agent
|
||||||
|
export "SSH_AUTH_SOCK=/run/user/$(id -u)/gnupg/S.gpg-agent.ssh"
|
||||||
|
# Keyboard layouts switch (requires setxkbmap)
|
||||||
|
setxkbmap -model pc104 -layout us,ar,jp,kr -variant dvorak-l,,, -option grp:win_space_toggle
|
||||||
|
|
||||||
exec dwm
|
exec dwm
|
||||||
# exec env KDEWM=/usr/local/bin/dwm /usr/bin/startplasma-x11
|
|
||||||
# exec sddm
|
|
||||||
# exec ly
|
|
||||||
|
|
Loading…
Reference in a new issue