Verified Commit 8e0b11f4 authored by Karel Kremel's avatar Karel Kremel Committed by Karel Kremel
Browse files

cleanup/update

parent dba168a6
......@@ -13,7 +13,7 @@ if [ -f /usr/bin/htop ]; then alias top='htop'; fi
if [ -f /usr/bin/neomutt ]; then alias mutt="neomutt"; fi
alias sudo-git="sudo SSH_AUTH_SOCK=$SSH_AUTH_SOCK git "
alias ll='ls -alF'
alias mutt='$HOME/.config/env ; neomutt'
alias mutt='cd ~/Downloads && $HOME/.config/env && neomutt'
alias df='df -h --exclude-type=tmpfs --exclude-type=devtmpfs | grep -v /snap/'
alias free='free -h'
alias diff='diff --color=always'
......@@ -23,7 +23,6 @@ alias ping='ping -D'
alias disableIPv6='sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1'
alias scratchpad-mutt='$HOME/.config/env && konsole -p tabtitle='neomuttScratchpad' --workdir $HOME/Downloads -e neomutt &'
alias scratchpad-konsole='konsole -p tabtitle='konsoleScratchpad' &'
alias update-ttrss='ssh eir "(cd /srv/net.alembiq.reader/tt-rss/ ; git pull)"'
alias mutt-local='sudo mutt -f /var/mail/mail'
alias ..="cd .."
alias ...="cd ../.."
......@@ -39,4 +38,5 @@ fi
alias kde-menu="kquitapp5 plasmashell && kstart5 plasmashell"
alias mbsync='mbsync -c $XDG_CONFIG_HOME/mbsyncrc'
alias wget='wget --hsts-file=$XDG_CACHE_HOME/wget-hsts'
alias wwan-online='cd $HOME/.local/lib/xmm7360-pci; make; make load; sudo python3 rpc/open_xdatachannel.py -r --apn internet'
alias wwan-online='cd $HOME/.local/lib/xmm7360-pci; make; make load; sudo python3 rpc/open_xdatachannel.py -r --apn internet; echo "nameserver 1.1.1.1" | sudo tee -a /etc/resolv.conf'
alias myip='dig +short myip.opendns.com @resolver1.opendns.com'
......@@ -29,7 +29,7 @@ export LC_TIME=en_US.UTF-8
#Change to metric system
export LC_MEASUREMENT=en_US.UTF-8
export GPG_TTY=$(tty)
export GIT_AUTHOR_NAME="Karel Křemel"
export GIT_AUTHOR_NAME=""
export SSH_ASKPASS="/usr/bin/ssh-askpass"
width=$(tput cols)
......@@ -58,7 +58,7 @@ else if [ -f "/usr/bin/pandoc" ] ; then pandoc -s -f markdown /etc/motd -t plain
fi
hashLine $width
if [[ $(pgrep -V | grep 3.3.15 | wc -l) == 0 ]] ; then
if [[ $(pgrep -V | grep "3.3.15\|pgrep from procps-ng 3.3.12" | wc -l) == 0 ]] ; then
PGREP_PARAM=" -r DSR"
fi
if ! pgrep -u "$USER" $PGREP_PARAM ssh-agent > /dev/null; then
......
......@@ -4,7 +4,7 @@ export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CONFIG_HOME="$HOME/.config"
#export GNUPGHOME="$XDG_DATA_HOME/gnupg"
#export PASSWORD_STORE_DIR="$XDG_DATA+HOME/password-store"
export NOTMUCH_CONFIG="$HOME/.config/notmuch-config"
#export NOTMUCH_CONFIG="$HOME/.config/notmuch-config"
export ELINKS_CONFDIR="$XDG_CONFIG_HOME"/elinks
export ANDROID_SDK_HOME="$XDG_CONFIG_HOME"/android
export ANDROID_AVD_HOME="$XDG_DATA_HOME"/android/
......
......@@ -144,7 +144,6 @@ assign [class="Element"] $ws8
exec --no-startup-id "sh -c 'kquitapp5 plasmashell && kstart5 plasmashell'"
#transparency
#exec --no-startup-id xcompmgr -c
exec --no-startup-id picom -cC
#networkmanager-applet
......@@ -304,14 +303,6 @@ bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
# App shortcuts
#bindsym $mod+w exec "/usr/bin/firefox"
#bindsym $mod+n exec "/usr/bin/thunar"
#bindsym Print exec "scrot ~/%Y-%m-%d-%T-screenshot.png"
# Redirect sound to headphones
#bindsym $mod+m exec "/usr/local/bin/switch-audio-port"
# Lock the system
#bindsym $mod+l exec i3lock -i ~/.config/i3/i3-lock-screen.png -t -f
......@@ -325,4 +316,3 @@ for_window [title="neomuttScratchpad"] move scratchpad
for_window [title="neomuttScratchpad"] floating enable, border pixel 5, resize set 1250 730
bindsym $Mod+m [title="neomuttScratchpad"] scratchpad show; [title="neomuttScratchpad"] move position center
exec --no-startup-id "konsole --profile Nordic -p tabtitle='neomuttScratchpad' --workdir $HOME/Downloads -e neomutt"
#$HOME/.config/env && konsole -p tabtitle=neomuttScratchpad --workdir $HOME/Downloads -e neomutt &
......@@ -9,7 +9,7 @@ if [ ! -f $touchfile ] || [ $(< $touchfile) != "$today" ] || [ "$1" == "-f" ]; t
sudo apt-get update 2>/dev/null | grep Err
sudo apt-get full-upgrade
# sudo apt-get autoremove -y >/dev/null | grep Err
# sudo apt-get autoclean -y >/dev/null | grep Del
sudo apt-get autoclean -y >/dev/null | grep Del
printf "$today" | tee $touchfile
echo
fi
......@@ -68,6 +68,8 @@ read -p "activate LTE modem (Fibocom L850-GL) y/n " -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo
# TODO git@github.com:xmm7360/xmm7360-pci.git apt install pip, pip install pyroute2 configureparse, alias
# https://github.com/juhovh/xmm7360_usb
git clone https://github.com/juhovh/xmm7360_usb.git /tmp/xmm7360_usb
cd /tmp/xmm7360_usb
......
......@@ -9,8 +9,8 @@ su -c "ssh-keygen -o -a 100 -t ed25519 -C "$(hostname)-$(date -I)" -f /root/.ssh
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
sudo apt update
sudo apt full-upgrade -y
sudo apt -y --fix-broken install
sudo apt full-upgrade -yqq
sudo apt -yqq --fix-broken install
sudo dpkg --configure -a
sudo sed -i "s/# \+\(cs_CZ.UTF-8\)/\1/" /etc/locale.gen
......@@ -18,9 +18,9 @@ sudo sed -i "s/# \+\(en_US.UTF-8\)/\1/" /etc/locale.gen
sudo locale-gen
sudo apt install -y \
git etckeeper tree aptitude mc dirmngr clamav software-properties-common ntp curl \
btrfs-progs molly-guard fail2ban vim nftables bash-completion sudo
sudo apt install -yqq \
etckeeper tree aptitude mc dirmngr clamav software-properties-common ntp curl \
btrfs-progs molly-guard vim nftables bash-completion sudo
#imagemagick iftop ranger
......
#!/usr/bin/env bash
PACKAGES="neomutt isync msmtp urlview goobook notmuch-mutt pandoc pass w3m pgp"
PACKAGES="neomutt isync msmtp urlview goobook notmuch-mutt pandoc pass w3m pgp libtext-autoformat-perl libdata-ical-perl"
if [ -f /usr/bin/yay ]; then
yay $PACKAGES
elif [ -f /usr/bin/apt ]; then
sudo apt -qq update
sudo apt -qq -y install $PACKAGES
pip install --user goobook
fi
cd /tmp
......@@ -35,3 +36,6 @@ fi
#TODO asi se neodesilaji veci ve fronte z offline
#!/usr/bin/env bash
#TODO fnc pro zapis do konfiguraku; if ( $file | grep $content | wc -l <> $content |wc -l) { sudo -c "echo $content >$file" }
#TODO fuc pro instalaci balicku; if ( apt list --installed | grep $packages | wc -l <> $packages | wc -l) { sudo apt -qq update && sudo apt -qq -y install $packages }
#TODO fnc pro instalaci balicku; if ( apt list --installed | grep $packages | wc -l <> $packages | wc -l) { sudo apt -qq update && sudo apt -qq -y install $packages }
SCRIPTS=$(dirname ${BASH_SOURCE[0]})
function help() {
echo "$0 newhostname default installation of everything"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment