dotfiles

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

sxrc (1956B)


      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
     50run_exwm() {
     51	#xhost +SI:localuser:$USER
     52	xsetroot -cursor_name left_ptr
     53	xset r rate 200 60
     54	exec emacs -q --load $HOME/Downloads/init.el
     55}
     56
     57run_tinywm() {
     58	xrdb $HOME/.Xresources
     59	feh --randomize \
     60		--bg-scale $HOME/Pictures/Wallpapers/Landscape/*.jpg \
     61		--bg-scale $HOME/Pictures/Wallpapers/Portrait/*.jpg
     62	st &
     63	exec tinywm
     64}
     65
     66run_i3() {
     67	exec i3
     68}
     69
     70export SESSION=${1:-dwm}
     71
     72case $SESSION in
     73	dwm )		run_dwm;;
     74	bspwm )		run_bspwm;;
     75	openbox )	exec openbox-session;;
     76	lxqt )		exec startlxqt;;
     77	xmonad )	exec xmonad;;
     78	xfce )		exec startxfce4;;
     79	budgie )	exec budgie-desktop;;
     80	gnome )		exec gnome-session;;
     81	i3 )		exec run_i3;;
     82	2bwm )		run_2bwm;;
     83	sowm )		run_sowm;;
     84	exwm )		run_exwm;;
     85	tinywm )	run_tinywm;;
     86	* )		exec $SESSION;;
     87esac