diff --git a/README.md b/README.md index dffe866..0fb4327 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,20 @@ This repository holds my Linux config files. ## Mandatory unixporn screenshots -New version as of dec 2021: +New version as of Nov 2022: -[![dotfiles](media/dotfiles4.jpg)](https://raw.githubusercontent.com/Mastermindzh/dotfiles/master/media/dotfiles4.jpg) +[![dotfiles](media/dotfiles5.png)](https://raw.githubusercontent.com/Mastermindzh/dotfiles/master/media/dotfiles5.png) + +I changed the terminal out for gnome-terminal, full-screen it has the same color-hue as the i3bar: + + Older versions: -- [dotfiles](media/dotfiles3.png) -- [dotfiles](media/dotfiles.png) +- [dotfiles4](https://raw.githubusercontent.com/Mastermindzh/dotfiles/master/media/dotfiles4.jpg) +- [dotfiles3](media/dotfiles3.png) - [dotfiles2](media/dotfiles2.png) +- [dotfiles](media/dotfiles.png) ## Tools @@ -23,7 +28,7 @@ Older versions: | Shell | Bash | | Package managers | Pacman & Trizen | | OS | Arch Linux | -| Terminal | xfce4-terminal | +| Terminal | gnome-terminal | | Editor | nano | | Code editor | vscode | | Browser | Firefox | diff --git a/bash/.alias.sh b/bash/.alias.sh index f48d504..fe12aa8 100644 --- a/bash/.alias.sh +++ b/bash/.alias.sh @@ -33,7 +33,7 @@ alias undo-commit='git reset --soft HEAD^' ## pacman and trizen alias aur='trizen --noconfirm' -alias update='trizen -Syu --noconfirm' +alias update='trizen --sudo_remove_timestamp=0 --sudo_autorepeat=1 --sudo_autorepeat_at_runtime=1 -Syu --noconfirm' alias remove-orphans='sudo pacman -Rns $(pacman -Qtdq)' alias updatekeys='sudo pacman-key --refresh-key' alias clean-pacmancache='sudo paccache -rk 1 && sudo paccache -ruk0' @@ -52,7 +52,6 @@ alias psmem='ps auxf | sort -nr -k 5 | head -n 5' ##utility alias nmapscan='nmap -n -sP' -alias pia='nohup sh /opt/pia/run.sh &>/dev/null & disown' alias wifimenu='nm-connection-editor' alias findcrlf='find . -path node_modules -prune -o -not -type d -exec file "{}" ";" | grep -E "BOM|CRLF"' alias fixcrlf='findcrlf > /tmp/crlftolf && cat /tmp/crlftolf | while read line; do CUTLINE=$(echo $line | cut -f1 -d":") && dos2unix $CUTLINE; done' @@ -74,6 +73,7 @@ alias unlockuser='faillock --reset --user' alias npm-list-links='npm ls -g --depth=0 --link=true' alias suspend='sudo bash ~/.config/i3/scripts/suspend.sh' alias clean-all='sudo pacman -R $(pacman -Qtdq) && sudo paccache -rk 1 && sudo paccache -ruk0 && sudo journalctl --vacuum-time=2d && docker-clean-all && rm -rf ~/.local/share/Trash/' +alias delete-empty='find . -type d -empty -delete' # might be useful in demos... alias oopsie='fuck' diff --git a/bash/mounts.sh b/bash/mounts.sh index 6c9220a..ccd40a6 100644 --- a/bash/mounts.sh +++ b/bash/mounts.sh @@ -71,6 +71,11 @@ declare -A MOUNTS9=( [share]="emulation" [mount]="emulation" ) +declare -A MOUNTS10=( + [server]="$MY_SERVER_LOCATION" + [share]="audiobooks" + [mount]="audiobooks" +) # declare array with "objects" declare -n MOUNTS diff --git a/config/networkmanager/09-timezone b/config/networkmanager/09-timezone new file mode 100644 index 0000000..7146c88 --- /dev/null +++ b/config/networkmanager/09-timezone @@ -0,0 +1,6 @@ +#!/bin/sh +case "$2" in + up) + timedatectl set-timezone "$(curl --fail https://ipapi.co/timezone)" + ;; +esac diff --git a/dependencies/pacman.txt b/dependencies/pacman.txt index 90692c9..668784c 100644 --- a/dependencies/pacman.txt +++ b/dependencies/pacman.txt @@ -97,3 +97,5 @@ cups system-config-printer duf picom +gnome-terminal +ttf-ubuntu-font-family diff --git a/i3/config b/i3/config index 72461e3..10b6e64 100644 --- a/i3/config +++ b/i3/config @@ -119,7 +119,7 @@ bindsym $mod+shift+l exec /bin/bash ~/.config/i3/scripts/suspend.sh ############################################ # Application Keys # ############################################ -bindsym $mod+Return exec xfce4-terminal # terminal +bindsym $mod+Return exec gnome-terminal # terminal bindsym $mod+e exec nautilus # File manager bindsym Print exec flameshot screen -d 0 -p ~/Pictures/Screenshots # Fullscreen screenshot bindsym $mod+Print exec flameshot gui # Show screenshot window @@ -193,8 +193,7 @@ bindsym $mod+Shift+g move container to workspace $workspace13 # Appearance settings # ############################################ # Set the default font -font pango:Liberation sans 13 - +font pango:Ubuntu regular 12 # Bar decoration bar { status_command i3blocks -c ~/.config/i3/i3blocks.conf @@ -310,8 +309,8 @@ mode "$mode_gaps_outer" { ############################################ # Autorun # ############################################ -exec_always --no-startup-id picom -b -exec --no-startup-id i3-msg 'workspace $workspace2; exec xfce4-terminal' && i3-msg 'workspace $workspace1' +# exec_always --no-startup-id picom -b +exec --no-startup-id i3-msg 'workspace $workspace2; exec gnome-terminal' && i3-msg 'workspace $workspace1' exec --no-startup-id i3-msg 'workspace $workspace12; exec enpass' exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec --no-startup-id nm-applet diff --git a/install.sh b/install.sh index 4bc9ae2..4e77f55 100644 --- a/install.sh +++ b/install.sh @@ -75,6 +75,13 @@ function install_trizen { sudo rm -dRf trizen/ } +# Sets up time and date related stuff +function setDateTimeConfig { + systemctl enable ntpd + timedatectl set-ntp true + sudo ln -sf "$PWD"/config/networkmanager/09-timezone /etc/NetworkManager/dispatcher.d/09-timezone +} + # install other configs function install_config { @@ -125,6 +132,8 @@ function install_config { # system fixes echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system mkdir -p ~/Pictures/Screenshots + + setDateTimeConfig } # Installs the dependencies on Arch Linux diff --git a/media/dotfiles-small-5.png b/media/dotfiles-small-5.png new file mode 100644 index 0000000..9edd403 Binary files /dev/null and b/media/dotfiles-small-5.png differ diff --git a/media/dotfiles5.png b/media/dotfiles5.png new file mode 100644 index 0000000..0300c8b Binary files /dev/null and b/media/dotfiles5.png differ