commit before push.
This commit is contained in:
parent
0439f15994
commit
cdb4538751
|
|
@ -1,13 +1,73 @@
|
|||
#!/usr/bin/env bash
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
DEST=${1:-/etc/skel}
|
||||
# xmodmap
|
||||
cat > ~/.Xmodmap << 'EOF'
|
||||
! Swap caps lock and escape
|
||||
remove Lock = Caps_Lock
|
||||
keysym Escape = Caps_Lock
|
||||
keysym Caps_Lock = Escape
|
||||
add Lock = Caps_Lock
|
||||
#cat > ~/.Xmodmap << 'EOF'
|
||||
#! Swap caps lock and escape
|
||||
#remove Lock = Caps_Lock
|
||||
#keysym Escape = Caps_Lock
|
||||
#keysym Caps_Lock = Escape
|
||||
#add Lock = Caps_Lock
|
||||
#EOF
|
||||
#
|
||||
#xmodmap ~/.Xmodmap
|
||||
|
||||
#cat <<EOF | sudo tee ${HOME}/.config/autostart/xmodmap.desktop >/dev/null
|
||||
#[Desktop Entry]
|
||||
#Name=Xmodmap
|
||||
#Exec=/usr/bin/xmodmap ${HOME}/.Xmodmap
|
||||
#Terminal=false
|
||||
#Type=Application
|
||||
#X-GNOME-Autostart-enabled=true
|
||||
#EOF
|
||||
#
|
||||
#chmod +x ~/.config/autostart/xmodmap.desktop
|
||||
|
||||
# Console tty
|
||||
#cat <<EOF | sudo loadkeys
|
||||
#keycode 1 = Caps_Lock
|
||||
#keycode 58 = Escape
|
||||
#EOF
|
||||
|
||||
#setxkbmap -model pc104 -layout gb,us -variant ,dvorak -option caps:swapecape
|
||||
mkdir -p ${DEST}/.xinitrc.d
|
||||
cat <<EOF | sudo tee ${DEST}/.xinitrc.d/setxkbmap.sh >/dev/null
|
||||
#!/usr/bin/env bash
|
||||
|
||||
setxkbmap -model pc104 -layout gb,us -option caps:swapecape
|
||||
EOF
|
||||
|
||||
xmodmap ~/.Xmodmap
|
||||
chmod +x ${DEST}/.xinitrc.d/setxkbmap.sh
|
||||
|
||||
# default keyboard layout is described in /etc/default/keyboard and it is shared between X and the console.
|
||||
config_file="/etc/default/keyboard"
|
||||
|
||||
typeset -A rules
|
||||
rules=(
|
||||
"XKBMODEL" "pc104"
|
||||
"XKBLAYOUT" "gb"
|
||||
"XKBVARIANT" ""
|
||||
"XKBOPTIONS" "caps:swapescape"
|
||||
"BACKSPACE" "guess"
|
||||
)
|
||||
|
||||
for rule in "${(@k)rules}"; do
|
||||
regex="s/^#\?\(${rule}\s*\).*$/\1 ${rules[${rule}]}/"
|
||||
sudo sed -i "${regex}" ${config_file};
|
||||
done
|
||||
|
||||
sudo udevadm trigger --subsystem-match=input --action=change
|
||||
|
||||
#cat <<EOF | sudo tee /etc/X11/xorg.conf.d/00-keyboard.conf > /dev/null
|
||||
#Section "InputClass"
|
||||
# Identifier "system-keyboard"
|
||||
# MatchIsKeyboard "on"
|
||||
# Option "XkbLayout" "gb,us"
|
||||
# Option "XkbModel" "pc104"
|
||||
# Option "XkbVariant" ""
|
||||
# Option "XkbOptions" "caps:swapescape"
|
||||
#EndSection
|
||||
#EOF
|
||||
|
||||
|
||||
#echo "enlightenment desktop settings-input-keyboard allowd swapping esc with caps."
|
||||
|
|
|
|||
|
|
@ -58,9 +58,13 @@ cp ./fonts/* ${DEST}/.conky/fonts
|
|||
# Run conky + theme on x startup. Points at the symlink in dotconky changed by theme
|
||||
mkdir -p ${DEST}/.xinitrc.d/
|
||||
cat > ${DEST}/.xinitrc.d/start_conky.sh << 'EOF'
|
||||
#!/usr/bin/env bash
|
||||
|
||||
exec /bin/sh ${HOME}/.conky/conky-startup.sh
|
||||
EOF
|
||||
|
||||
chmod +x ${DEST}/.xinitrc.d/start_conky.sh
|
||||
|
||||
# download example conky theme.
|
||||
mkdir -p ${DEST}/.conky
|
||||
if [ ! -d ${DEST}/.conky/conky-xanimos ]; then
|
||||
|
|
|
|||
|
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env bash
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
#RELEASE_NAME=Debian_Unstable
|
||||
#RELEASE_NAME=Debian_Testing
|
||||
#RELEASE_NAME=Debian_9.0 # stretch
|
||||
#RELEASE_NAME=Debian_10 # buster
|
||||
RELEASE_NAME=Debian_11 # bullseye
|
||||
|
||||
SUSE_USER="ra3xdh"
|
||||
|
||||
mkdir -p /etc/apt//sources.list-available || exit
|
||||
cat <<EOF | sudo tee /etc/apt/sources.list-available/qucs-s.list >/dev/null
|
||||
# wget -nv https://download.opensuse.org/repositories/home:/${SUSE_USER}/${RELEASE_NAME}/Release.key -O Release.key
|
||||
# apt-key add - < Release.key
|
||||
deb http://download.opensuse.org/repositories/home:/${SUSE_USER}/${RELEASE_NAME}/ /
|
||||
EOF
|
||||
|
||||
# The dl-bintray repo doesn't play nice with apt-proxy
|
||||
#echo "Acquire::http::Proxy { dl.bintray.com DIRECT; };" >> /etc/apt/apt.conf.d/02proxy
|
||||
|
||||
sudo ln -sf /etc/apt/sources.list-available/qucs-s.list /etc/apt/sources.list.d/qucs-s.list
|
||||
|
||||
wget -nv https://download.opensuse.org/repositories/home:/${SUSE_USER}/${RELEASE_NAME}/Release.key -O /tmp/Release.key
|
||||
sudo apt-key add - < /tmp/Release.key
|
||||
|
||||
sudo apt update
|
||||
|
||||
sudo apt install -y qucs-s
|
||||
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ sudo apt update
|
|||
# waterfox-current-kpe - Free, open and private browser with better integration with KDE
|
||||
# waterfox-current-i18n-en-gb - English (British) language pack for Waterfox Current
|
||||
|
||||
sudo apt install -y waterfox-current-kpe waterfox-current-i18n-en-gb
|
||||
sudo apt install -y waterfox-g4-kpe waterfox-g4-i18n-en-gb
|
||||
|
||||
sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/waterfox-current 201
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue