Move polkit and ksuperkey launch to .xinitrc

This commit is contained in:
natemaia 2018-05-19 14:30:52 -07:00
parent 61a48c66f7
commit 32850e31f7
4 changed files with 10 additions and 10 deletions

View File

@ -6,15 +6,9 @@ sxhkd &
# wallpaper # wallpaper
nitrogen --restore & nitrogen --restore &
# set super key to launch rofi
ksuperkey -e 'Super_L=Alt_L|F1' &
# launch compton # launch compton
al-compositor --start & al-compositor --start &
# gnome polkit
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
# panel # panel
sleep 1; al-polybar-session & sleep 1; al-polybar-session &

View File

@ -68,7 +68,6 @@ exec_always --no-startup-id xrdb -load ~/.Xresources
# run once # run once
exec --no-startup-id xfsettingsd exec --no-startup-id xfsettingsd
exec --no-startup-id al-compositor --start exec --no-startup-id al-compositor --start
exec --no-startup-id ksuperkey -e 'Super_L=Alt_L|F1'
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
########################################################### ###########################################################

View File

@ -14,9 +14,6 @@ sleep 1; polybar --config=/home/liveuser/.config/polybar/config openbox-bar &
# Openbox autostart # Openbox autostart
ob-autostart -d & ob-autostart -d &
# PolicyKit authentication
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
# Required for xfce settings to work # Required for xfce settings to work
xfsettingsd & xfsettingsd &

View File

@ -29,6 +29,10 @@ fi
if hash gnome-keyring &>/dev/null; then if hash gnome-keyring &>/dev/null; then
gnome-keyring-daemon --start --components=pkcs11 & gnome-keyring-daemon --start --components=pkcs11 &
fi fi
# gnome polkit
if [[ -x /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 ]]; then
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
fi
# display timeout and sleep # display timeout and sleep
xset s 3600 3600 xset s 3600 3600
@ -38,6 +42,12 @@ xset dpms 3600 3700 4000
xset r rate 400 50 xset r rate 400 50
kbdrate -d 400 -r 50 kbdrate -d 400 -r 50
# simulate Alt+F1 with just pressing Super
if hash ksuperkey &>/dev/null; then
ksuperkey -e 'Super_L=Alt_L|F1' &
ksuperkey -e 'Super_R=Alt_L|F1' &
fi
# 1/1 mouse acceleration # 1/1 mouse acceleration
xset m 1/1 xset m 1/1