34 lines
701 B
Bash
Executable File
34 lines
701 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# ~/.xinitrc
|
|
#
|
|
# Executed by startx
|
|
|
|
userresources=$HOME/.Xresources
|
|
usermodmap=$HOME/.Xmodmap
|
|
|
|
# merge in defaults and keymaps
|
|
if [ -f "$userresources" ]; then
|
|
xrdb -merge "$userresources"
|
|
fi
|
|
|
|
if [ -f "$usermodmap" ]; then
|
|
xmodmap "$usermodmap"
|
|
fi
|
|
|
|
# start programs
|
|
fcitx5 -d &
|
|
nextcloud &
|
|
nm-applet &
|
|
dunst &
|
|
|
|
# desktop or laptop?
|
|
if [ `hostname` == "nazarick" ];then
|
|
xrandr --output DP-2 --mode 3440x1440 --rate 99.98 --primary
|
|
xrandr --output DP-1 --off
|
|
feh --bg-fill $HOME/data/nextcloud/wallpaper/wallpaper219.png
|
|
else
|
|
feh --bg-scale $HOME/data/nextcloud/wallpaper/wallpaper169.png
|
|
#asetroot $HOME/data/nextcloud/wallpaper/animated/current/ -t 100 &
|
|
fi
|