From 32850e31f78206024dd7349e9ae039055932081e Mon Sep 17 00:00:00 2001 From: natemaia Date: Sat, 19 May 2018 14:30:52 -0700 Subject: [PATCH] Move polkit and ksuperkey launch to .xinitrc --- home/.config/bspwm/bspwmrc | 6 ------ home/.config/i3/config | 1 - home/.config/openbox/autostart | 3 --- home/.xinitrc | 10 ++++++++++ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/home/.config/bspwm/bspwmrc b/home/.config/bspwm/bspwmrc index 6d53d8eb..0d29fcbe 100755 --- a/home/.config/bspwm/bspwmrc +++ b/home/.config/bspwm/bspwmrc @@ -6,15 +6,9 @@ sxhkd & # wallpaper nitrogen --restore & -# set super key to launch rofi -ksuperkey -e 'Super_L=Alt_L|F1' & - # launch compton al-compositor --start & -# gnome polkit -/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & - # panel sleep 1; al-polybar-session & diff --git a/home/.config/i3/config b/home/.config/i3/config index 6edfbc6e..aa1793f0 100644 --- a/home/.config/i3/config +++ b/home/.config/i3/config @@ -68,7 +68,6 @@ exec_always --no-startup-id xrdb -load ~/.Xresources # run once exec --no-startup-id xfsettingsd 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 ########################################################### diff --git a/home/.config/openbox/autostart b/home/.config/openbox/autostart index 635e74e9..b4915df9 100644 --- a/home/.config/openbox/autostart +++ b/home/.config/openbox/autostart @@ -14,9 +14,6 @@ sleep 1; polybar --config=/home/liveuser/.config/polybar/config openbox-bar & # Openbox autostart ob-autostart -d & -# PolicyKit authentication -/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & - # Required for xfce settings to work xfsettingsd & diff --git a/home/.xinitrc b/home/.xinitrc index 484087f1..953c7a95 100755 --- a/home/.xinitrc +++ b/home/.xinitrc @@ -29,6 +29,10 @@ fi if hash gnome-keyring &>/dev/null; then gnome-keyring-daemon --start --components=pkcs11 & 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 xset s 3600 3600 @@ -38,6 +42,12 @@ xset dpms 3600 3700 4000 xset r rate 400 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 xset m 1/1