-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitialize.zsh
More file actions
43 lines (32 loc) · 790 Bytes
/
initialize.zsh
File metadata and controls
43 lines (32 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
echo "this is initialize.zsh"
# xmodmap is ancient
# xmodmap ~/.xmodmap
# On HP, see X11 config
## ------------------------ X11, xset
## xset tools to manage X11
## xset q # display current X11 settings
## REF: https://askubuntu.com/questions/763994/screen-times-out-in-i3-wm
## set screen saver to 1200 sec (20 minutes)
xset s 1200
## ------------------------ X11, xset
## print OS
echo $OSTYPE
echo $hostname
export HOST=$(hostname)
## test if MACHINE_NAME was set
if [[ -n $HOST ]] ; then
echo $(hostname)
else
echo "X never set "
fi
if [[ $(hostname) == "jim-debian" ]]
then
echo "You are working on HP"
else
echo "Are you working on ???"
fi
echo "any large files?"
# -A reads password ??
# -h human
# -d depth 1
sudo -A du -hd 1 /home/jim | sort -h