From 6c614150fadd5a41e456f6df1334647fd795589f Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Wed, 30 Sep 2020 23:04:51 +0800 Subject: [PATCH] [misc] cleanup .xinitrc --- suckless/install.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/suckless/install.sh b/suckless/install.sh index 733d29c..359b75b 100755 --- a/suckless/install.sh +++ b/suckless/install.sh @@ -55,6 +55,8 @@ cd ~/Projects/suckless/dwm && sudo rm -f config.h && sudo make clean install # config xinit to start for dwm rm ~/.xinitrc cat < ~/.xinitrc +#!/bin/sh + export QT_QPA_PLATFORMTHEME="qt5ct" export GTK2_RC_FILES="$HOME/.gtkrc-2.0" @@ -62,24 +64,19 @@ export XMODIFIERS="@im=ibus" export QT_IM_MODULE=ibus export GTK_IM_MODULE=xim - -# xrandr --setprovideroutputsource modesetting NVIDIA-0 -# xrandr --auto - - -xrdb ~/.Xresources - # auto lock after 300 seconds xset s 300 systemd-lock-handler /usr/local/bin/slock -#xsetroot -cursor_name left_ptr - +# setup gnome keyring dbus-update-activation-environment --systemd DISPLAY eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) export SSH_AUTH_SOCK +# load monitors profile autorandr --change --force + +# restart dwm if it existed without error while :; do ssh-agent dwm 2>/tmp/dwm.log || break done