...
This commit is contained in:
parent
244ae8bbb7
commit
a470e9812b
|
@ -1,8 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# install dependencies
|
||||
sudo apt install build-essential xorg libx11-dev libxft-dev libxinerama-dev trayer
|
||||
sudo apt install \
|
||||
build-essential \
|
||||
xorg \
|
||||
libx11-dev \
|
||||
libxft-dev \
|
||||
libxinerama-dev \
|
||||
libxrandr-dev \
|
||||
arandr \
|
||||
autorandr \
|
||||
libxrandr-dev \
|
||||
ibus ibus-table ibus-table-wubi \
|
||||
gnome-keyring \
|
||||
trayer
|
||||
|
||||
|
||||
# clone / compile utilities and dwm itself
|
||||
|
||||
mkdir -p ~/Projects/suckless
|
||||
|
||||
|
@ -17,3 +33,36 @@ cd ~/Projects/suckless/slock && sudo rm -f config.h && sudo make clean install
|
|||
|
||||
git clone https://gitee.com/klesh/dwm.git ~/Projects/suckless/dwm
|
||||
cd ~/Projects/suckless/dwm && sudo rm -f config.h && sudo make clean install
|
||||
|
||||
# config xinit to start for dwm
|
||||
|
||||
cat <<EOT > ~/.xinitrc
|
||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
|
||||
|
||||
export XMODIFIERS="@im=ibus"
|
||||
export QT_IM_MODULE=ibus
|
||||
export GTK_IM_MODULE=ibus
|
||||
|
||||
|
||||
# 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
|
||||
|
||||
dbus-update-activation-environment --systemd DISPLAY
|
||||
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
|
||||
export SSH_AUTH_SOCK
|
||||
|
||||
autorandr --change --force
|
||||
while :; do
|
||||
ssh-agent dwm 2>/tmp/dwm.log || break
|
||||
done
|
||||
EOT
|
||||
|
|
Loading…
Reference in New Issue
Block a user