dotfiles

Dash Eclipse's dotfiles
git clone git://ezup.dev/dotfiles.git
Log | Files | Refs | README | LICENSE

sxrc (1538B)


      1#!/bin/sh
      2
      3#start-pulseaudio-x11 &
      4#eval "$(dbus-launch --sh-syntax --exit-with-session)"
      5#XCURSOR_THEME=DMZBlackLH
      6#xinput set-button-map 9 3 2 1
      7#xinput set-prop 9 'libinput Accel Speed' -0.3
      8
      9run_dwm() {
     10	#xsetroot -solid "#333333"
     11	xrdb $HOME/.Xresources
     12	feh --randomize \
     13		--bg-scale $HOME/Pictures/Wallpapers/Landscape/*.jpg \
     14		--bg-scale $HOME/Pictures/Wallpapers/Portrait/*.jpg
     15	xsidle.sh slock &
     16	dwm_update_status.sh 2>&1 >/dev/null &
     17	#fcitx &
     18	exec dwm
     19}
     20
     21run_bspwm() {
     22	xrdb $HOME/.Xresources
     23	feh --randomize \
     24		--bg-scale $HOME/Pictures/Wallpapers/Landscape/*.jpg \
     25		--bg-scale $HOME/Pictures/Wallpapers/Portrait/*.jpg
     26	sxhkd &
     27	exec bspwm
     28}
     29
     30run_2bwm() {
     31	xrdb $HOME/.Xresources
     32	feh --randomize \
     33		--bg-scale $HOME/Pictures/Wallpapers/Landscape/*.jpg \
     34		--bg-scale $HOME/Pictures/Wallpapers/Portrait/*.jpg
     35	#setxkbmap us dvp
     36	#setxkbmap -layout us -variant dvp -option compose:102 -option numpad:shift3 -option kpdl:semi -option keypad:atm -option caps:shift
     37	~/.local/bin/lemon2bstatus.sh &
     38	exec 2bwm
     39
     40}
     41
     42run_sowm() {
     43	xrdb $HOME/.Xresources
     44	feh --randomize \
     45		--bg-scale $HOME/Pictures/Wallpapers/Landscape/*.jpg \
     46		--bg-scale $HOME/Pictures/Wallpapers/Portrait/*.jpg
     47	exec sowm
     48}
     49
     50
     51export SESSION=${1:-dwm}
     52
     53case $SESSION in
     54	dwm )		run_dwm;;
     55	bspwm )		run_bspwm;;
     56	openbox )	exec openbox-session;;
     57	lxqt )		exec startlxqt;;
     58	xmonad )	exec xmonad;;
     59	xfce )		exec startxfce4;;
     60	budgie )	exec budgie-desktop;;
     61	gnome )		exec gnome-session;;
     62	2bwm )		run_2bwm;;
     63	sowm )		run_sowm;;
     64	* )		exec $SESSION;;
     65esac
     66