Skip to content

Commit e82dba1

Browse files
authored
Add support for xinitrc and xsession filenames (#7629)
1 parent bd25964 commit e82dba1

File tree

5 files changed

+71
-0
lines changed

5 files changed

+71
-0
lines changed

lib/linguist/languages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7100,6 +7100,8 @@ Shell:
71007100
- ".login"
71017101
- ".profile"
71027102
- ".tmux.conf"
7103+
- ".xinitrc"
7104+
- ".xsession"
71037105
- ".zlogin"
71047106
- ".zlogout"
71057107
- ".zprofile"
@@ -7119,6 +7121,8 @@ Shell:
71197121
- mvnw
71207122
- profile
71217123
- tmux.conf
7124+
- xinitrc
7125+
- xsession
71227126
- zlogin
71237127
- zlogout
71247128
- zprofile

samples/Shell/filenames/.xinitrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
dwmstatus &
2+
xfce4-screensaver &
3+
st -e irssi &
4+
st -e vim ~/TODO &
5+
chromium &
6+
mbsync -a &
7+
st -e neomutt &
8+
redshift -O3500; xset r rate 300 50; exec startdwm
9+
10+
11+
### startdwm
12+
while true; do
13+
# Log stderror to a file
14+
dwm 2> ~/.dwm.log
15+
# No error logging
16+
#dwm >/dev/null 2>&1
17+
done
18+

samples/Shell/filenames/.xsession

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# bcallah@ ~/.xsession
2+
3+
xset b off &
4+
mixerctl outputs.master=180,180 &
5+
ls ~/.startup/o*.wav | shuf -n 1 | xargs aucat -i &
6+
ls ~/.wallpaper/*.jpg | shuf -n 1 | xargs feh --bg-fill --no-fehbg &
7+
xcompmgr -Ff &
8+
xrdb ~/.Xresources &
9+
tint2 &
10+
exec cwm

samples/Shell/filenames/xinitrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
xbindkeys &
2+
dunst &
3+
synclient TouchPadOff=1
4+
#wmname LG3D
5+
xscreensaver -no-splash &
6+
(conky -c ~/.conky.conf |while read LINE; do xsetroot -name "$LINE"; done) &
7+
xset b 50 440 50
8+
xrdb -merge .Xdefaults
9+
#
10+
# dwm
11+
#
12+
dwm; exit
13+

samples/Shell/filenames/xsession

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# use UTF-8 everywhere
2+
export LANG=en_US.UTF-8
3+
4+
# specify location of kshrc
5+
export ENV=$HOME/.kshrc
6+
7+
export PATH HOME TERM
8+
export ENV=$HOME/.kshrc
9+
export PATH=$PATH:$HOME/.local/bin
10+
export PATH=$PATH:$HOME/.yarn/bin
11+
export PATH=$PATH:$HOME/.npm-packages
12+
13+
NPM_PACKAGES=$HOME/.npm-packages
14+
NODE_PATH="$NPM_PACKAGES/lib/modules:$NODE_PATH"
15+
export PATH=$NPM_PACKAGES/bin:$PATH
16+
17+
# load Xresources file
18+
xrdb -merge $HOME/.Xresources &
19+
20+
# disable system beep
21+
xset b off &
22+
23+
# set your background color
24+
xsetroot -solid gray40 &
25+
26+
exec ck-launch-session startxfce4

0 commit comments

Comments
 (0)