diff --git a/.zshrc b/.zshrc index 1f43ce9..e2c4f61 100644 --- a/.zshrc +++ b/.zshrc @@ -1492,6 +1492,39 @@ zshrc_load_library() { echo "Buffer-cut: \"$(xclip -out -selection buffer-cut)\"" fi } + + tstamp() { + if date --version 2>&1 | grep -q 'GNU coreutils'; then + cmd='date -u --iso-8601=ns' + else + # *BSD + cmd='date -u +"%Y-%m-%dT%H:%M:%S%:z"' + fi + while IFS= read -r line; do + printf "[\033[0;34m%s\033[0m] %s\n" "$($cmd)" "$line"; + done + } + + color_codes() { + # Define the text attributes and colors + attributes=( + "0" "1" "4" "5" "7" + ) + colors=( + "30" "31" "32" "33" "34" "35" "36" "37" + ) + + # Loop through each attribute and color, displaying them horizontally + for attribute in "${attributes[@]}"; do + for color in "${colors[@]}"; do + echo -en "\033[${attribute};${color}m ${attribute};${color} \033[0m\t" + done + echo "" + done + + # Reset to default + echo -e "\033[0mDefault Text" + } } zshrc_set_aliases() { @@ -1556,7 +1589,7 @@ zshrc_set_aliases() { alias dtail='docker logs -tf --tail="50" "$@"' # Clipboard - alias clip='xclip -selection clipboard' + alias clip='xsel --clipboard --trim -i' # btop > htop > top if type htop > /dev/null 2>&1; then diff --git a/install.sh b/install.sh index 1550614..c84ec18 100755 --- a/install.sh +++ b/install.sh @@ -750,6 +750,7 @@ case "$response" in nextcloud-client \ p7zip \ qalculate-gtk \ + touchegg \ veracrypt \ zathura \ zathura-pdf-mupdf \ @@ -789,6 +790,7 @@ case "$response" in nextcloud-desktop \ p7zip-full \ qalculate-gtk \ + touchegg \ unrar \ zathura \ -y @@ -807,6 +809,7 @@ case "$response" in noto-fonts-emoji \ p7zip \ qalculate-gtk \ + touchegg \ unrar \ veracrypt \ zathura \ @@ -829,6 +832,7 @@ case "$response" in nextcloudclient \ noto-emoji \ qalculate-gtk \ + touchegg \ unrar \ veracrypt \ yt-dlp \ @@ -872,6 +876,39 @@ case "$response" in ;; esac +read -r -p "Would you like to setup Gnome? [y/N] " response +case "$response" in + [yY][eE][sS]|[yY]) + # Set fonts for Gnome. + if [[ "$XDG_CURRENT_DESKTOP" == "GNOME" ]]; then + gsettings set org.gnome.desktop.interface font-name 'FreeSans 11' + gsettings set org.gnome.desktop.interface document-font-name 'FreeSans 11' + gsettings set org.gnome.desktop.interface monospace-font-name 'Hack Nerd Font Mono 11' + + if [ -s /usr/share/applications/brave.desktop ]; then + xdg-settings set default-web-browser brave.desktop + elif [ -s /usr/share/applications/brave-browser.desktop ]; then + xdg-settings set default-web-browser brave-browser.desktop + fi + + # TODO: Install extensions + #appindicatorsupport@rgcjonas.gmail.com + #blur-my-shell@aunetx + #gsconnect@andyholmes.github.io + #clipboard-indicator@tudmotu.com + #Vitals@CoreCoding.com + #x11gestures@joseexposito.github.io + #apps-menu@gnome-shell-extensions.gcampax.github.com + #background-logo@fedorahosted.org + #launch-new-instance@gnome-shell-extensions.gcampax.github.com + #places-menu@gnome-shell-extensions.gcampax.github.com + #window-list@gnome-shell-extensions.gcampax.github.com + fi + ;; + *) + echo "Skipping font installation" + ;; +esac read -r -p "Would you like to attempt an install of Suckless Terminal (st)? [y/N] " response case "$response" in @@ -1210,12 +1247,6 @@ case "$response" in gsettings set org.gnome.desktop.interface document-font-name 'FreeSans 11' gsettings set org.gnome.desktop.interface monospace-font-name 'Hack Nerd Font Mono 11' fi - - if [ -s /usr/share/applications/brave.desktop ]; then - xdg-settings set default-web-browser brave.desktop - elif [ -s /usr/share/applications/brave-browser.desktop ]; then - xdg-settings set default-web-browser brave-browser.desktop - fi ;; *) echo "Skipping font installation"