dotfiles/dot_config/i3/executable_autostart.sh

35 lines
1.2 KiB
Bash

#!/bin/bash
~/.config/polybar/run.sh || true;
"${HOME}/.local/bin/setupwallpaper" || hsetroot -solid '#1a1a1a';
xrdb -load "$XDG_CONFIG_HOME/X11/xresources"
# (nitrogen --restore || true) & disown;
xset r rate 250 25;
touchpad_dev_name=$(xinput | grep -oP '(SynPS/2 Synaptics TouchPad|Synaptics TM2722-001)');
xinput set-prop "${touchpad_dev_name}" 'libinput Natural Scrolling Enabled' 1;
xinput set-prop "${touchpad_dev_name}" 'libinput Tapping Enabled' 1;
xcompmgr & disown;
nm-applet & disown;
lxqt-policykit-agent & disown;
(xfce4-clipman || true) & disown;
xfce4-power-manager & disown;
syncthingtray & disown;
blueman-applet & disown;
killall oneko;
conky & disown;
#oneko -bg '#1a1a1a' -fg '#bfbfbf' -tofocus -sakura & disown;
##either one or another. never both at the same time.
#setxkbmap -model pc104 -layout us,ru -option grp:caps_toggle -option compose:ralt;
# ibus-daemon -drxR;
[ -f "${HOME}/.config/xkb.conf" ] \
&& xkbcomp "${HOME}/.config/xkb.conf" :0 2>/dev/null;
synclient HorizTwoFingerScroll=1 TapButton1=1 TapButton2=3 TapButton3=2;
pactl load-module module-null-sink sink_name=music rate=44100 channels=2;
pw-link 'music' 'alsa_output.pci-0000_00_1b.0.analog-stereo';