-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.me
28 lines (24 loc) · 911 Bytes
/
install.me
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
#!/bin/bash
Install_dotfiles () {
D=~/.local/dotfiles
mkdir -p $D
git clone https://github.com/piping/dotfiles $D
ln -s $D/tmux.conf.me ~/.tmux.conf
ln -s $D/vimrc.me ~/.vimrc
ln -s $D/clang-format.me ~/.clang-format
ln -s $D/zshrc.me ~/.zshrc
}
Enable_login_display_manager_to_respect_HiDPI_setting () {
sudo xhost +SI:localuser:gdm
sudo su gdm -s /bin/bash -c 'gsettings set org.gnome.desktop.interface scaling-factor 2'
echo done setting hidpi for gdm
}
Change_Capslock_key_to_Escape () {
/usr/bin/setxkbmap -option "caps:swapescape"
dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:escape']"
}
Allow_root_login_to_gnome_gdm () {
grep -qxF 'AllowRoot=true' /etc/gdm3/custom.conf || \
( echo Editting the file on place && sudo sed -i '/security/a AllowRoot=true' /etc/gdm3/custom.conf )
sudo sed -i 's/^auth.*root quiet_success/#&/' /etc/pam.d/gdm-password
}