.dotfiles/.xprofile

123 lines
2.3 KiB
Text
Raw Normal View History

2021-04-07 10:39:01 +00:00
. $HOME/.config/environment
2020-02-28 17:13:33 +00:00
2020-08-18 09:41:18 +00:00
xcompmgr -n -f -D3 &
2020-07-15 13:50:56 +00:00
numlockx on
setxkbmap de
2020-03-02 10:13:29 +00:00
setxkbmap -option caps:none
2020-07-15 13:50:56 +00:00
if [ -x "$(command -v gpgconf)" ]
then
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
2020-12-23 15:44:13 +00:00
gpg2 --card-status > /dev/null
2020-07-15 13:50:56 +00:00
fi
2021-07-09 23:08:18 +00:00
network_wait_pid=1
audio_wait_pid=1
#_autostart_portalo()
#{
# #xrandr --output DVI-D-0 --left-of HDMI-A-0
# #xrandr --output HDMI-A-0 --mode 2560x1440 --refresh 144
#}
#
#_autostart_laptop()
#{
# #xrandr --output eDP-1 --auto
# #xrandr --output HDMI-2 --left-of eDP-1 --auto
#}
2021-07-09 22:52:56 +00:00
wait_for_service()
{
until systemctl is-active --quiet $1
do
sleep 0.5
done
2021-07-10 11:21:11 +00:00
sleep 1
2021-07-09 22:52:56 +00:00
}
_autostart_workspace_voip()
{
#/opt/teamspeak5/TeamSpeak &
#sleep 2
#alacritty --class "mail" --command sh -c "neomutt" &
teamspeak3 &
sleep 1
element-desktop &
sleep 1
discord &
}
_autostart_workspace_messenger()
{
signal-desktop &
sleep 1
thunderbird &
}
2021-07-09 23:08:18 +00:00
_autostart_apps()
2021-04-07 10:39:01 +00:00
{
2020-07-15 13:50:56 +00:00
dunst &
ckb-next --background &
2020-07-15 13:50:56 +00:00
parcellite &
solaar --window hide &
sxhkd &
conky --daemonize --config="$HOME/.config/conky/clock.conf"
2021-03-07 20:34:02 +00:00
conky --daemonize --config="$HOME/.config/conky/system.conf"
2020-12-23 15:44:13 +00:00
conky --daemonize --config="$HOME/.config/conky/archlinux-updates.conf"
2020-02-28 17:13:33 +00:00
feh --bg-fill $XDG_PICTURES_DIR/wallpaper/active_wallpaper
2020-12-23 15:44:13 +00:00
#actkbd --grab --config ~/.config/actkbd/actkbd.conf --device /dev/input/by-id/usb-Dell_Dell_USB_Keyboard-event-kbd &
2021-07-09 23:08:18 +00:00
wait $network_wait_pid
syncthing -no-browser &
/usr/lib/kdeconnectd &
#transmission-gtk --minimized &
qbittorrent &
wait $audio_wait_pid
#steam-runtime -silent -tcp &
flatpak run com.valvesoftware.Steam -silent &
qutebrowser &
mopidy &
2021-07-09 22:52:56 +00:00
}
2020-07-15 13:50:56 +00:00
2021-07-09 22:52:56 +00:00
_autostart()
{
### wait for internet
2021-07-09 23:08:18 +00:00
wait_for_service "network-online.target" &
network_wait_pid=$!
2021-02-13 22:02:27 +00:00
2021-07-09 22:52:56 +00:00
### wait for audio
2021-07-09 23:08:18 +00:00
start_jack &
audio_wait_pid=$!
echo $audio_wait_pid
echo $network_wait_pid
2021-02-13 22:02:27 +00:00
2021-07-09 23:08:18 +00:00
_autostart_apps &
wait $network_wait_pid
wait $audio_wait_pid
2020-07-15 13:50:56 +00:00
2021-07-09 22:52:56 +00:00
_autostart_workspace_voip &
_autostart_workspace_messenger &
}
2021-07-09 23:08:18 +00:00
#host_name=$(cat /proc/sys/kernel/hostname)
#if [[ $host_name == "portalo" ]]; then
# _autostart_portalo &
#elif [[ $host_name == *"laptop"* ]]; then
# _autostart_laptop &
#fi
2021-04-07 10:39:01 +00:00
2021-07-09 22:52:56 +00:00
_autostart &
2020-02-28 17:13:33 +00:00
# vim: ft=sh