From 687e2e1ef63ffab7bb2edd4661843efe7ddefaca Mon Sep 17 00:00:00 2001 From: Manuel <64824522+maltalef101@users.noreply.github.com> Date: Wed, 30 Sep 2020 16:15:01 -0300 Subject: [PATCH 1/5] Added support for flac tags via metaflac (#823) --- .local/bin/tag | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.local/bin/tag b/.local/bin/tag index c23be4e..8462b99 100755 --- a/.local/bin/tag +++ b/.local/bin/tag @@ -55,5 +55,13 @@ Date=$date Genre=$genre Comment=$comment" | opustags -i -S "$file" ;; *.mp3) eyeD3 -Q --remove-all -a "$artist" -A "$album" -t "$title" -n "$track" -N "$total" -Y "$date" "$file" ;; + *.flac) echo "TITLE=$title +ARTIST=$artist +ALBUM=$album +TRACKNUMBER=$track +TOTALTRACKS=$total +DATE=$date +GENRE=$genre +DESCRIPTION=$comment" | metaflac --remove-all-tags --import-tags-from=- "$file" ;; *) echo "File type not implemented yet." ;; esac From 3f4ea160b94565f2867c38d8433cf19c4ccb9188 Mon Sep 17 00:00:00 2001 From: karioki Date: Mon, 12 Oct 2020 02:08:55 +0530 Subject: [PATCH 2/5] Expanding shell vars before passing to the files (#827) --- .local/bin/shortcuts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.local/bin/shortcuts b/.local/bin/shortcuts index ed4f89f..ea463d7 100755 --- a/.local/bin/shortcuts +++ b/.local/bin/shortcuts @@ -15,17 +15,19 @@ printf "# vim: filetype=sh\\nalias " > "$shell_shortcuts" printf "\" vim: filetype=vim\\n" > "$vifm_shortcuts" # Format the `directories` file in the correct syntax and sent it to all three configs. +eval "echo \"$(cat "${XDG_CONFIG_HOME:-$HOME/.config}/directories")\"" | \ awk "!/^\s*#/ && !/^\s*\$/ {gsub(\"\\\s*#.*$\",\"\"); printf(\"%s=\42cd %s && ls -a\42 \\\\\n\",\$1,\$2) >> \"$shell_shortcuts\" ; printf(\"hash -d %s=%s \n\",\$1,\$2) >> \"$zsh_named_dirs\" ; printf(\"abbr %s \42cd %s; and ls -a\42\n\",\$1,\$2) >> \"$fish_shortcuts\" ; printf(\"map g%s :cd %s\nmap t%s :cd %s\nmap M%s :cd %s:mo\nmap Y%s :cd %s:co \n\",\$1,\$2, \$1, \$2, \$1, \$2, \$1, \$2) >> \"$vifm_shortcuts\" ; printf(\"config.bind(';%s', \42set downloads.location.directory %s ;; hint links download\42) \n\",\$1,\$2) >> \"$qute_shortcuts\" ; - printf(\"map g%s cd %s\nmap t%s tab_new %s\nmap m%s shell mv -v %%s %s\nmap Y%s shell cp -rv %%s %s \n\",\$1,\$2,\$1,\$2, \$1, \$2, \$1, \$2) >> \"$ranger_shortcuts\" }" "${XDG_CONFIG_HOME:-$HOME/.config}/directories" + printf(\"map g%s cd %s\nmap t%s tab_new %s\nmap m%s shell mv -v %%s %s\nmap Y%s shell cp -rv %%s %s \n\",\$1,\$2,\$1,\$2, \$1, \$2, \$1, \$2) >> \"$ranger_shortcuts\" }" # Format the `files` file in the correct syntax and sent it to both configs. +eval "echo \"$(cat "${XDG_CONFIG_HOME:-$HOME/.config}/files")\"" | \ awk "!/^\s*#/ && !/^\s*\$/ {gsub(\"\\\s*#.*$\",\"\"); printf(\"%s=\42\$EDITOR %s\42 \\\\\n\",\$1,\$2) >> \"$shell_shortcuts\" ; printf(\"abbr %s \42\$EDITOR %s\42 \n\",\$1,\$2) >> \"$fish_shortcuts\" ; printf(\"map %s :e %s \n\",\$1,\$2) >> \"$vifm_shortcuts\" ; - printf(\"map %s shell \$EDITOR %s \n\",\$1,\$2) >> \"$ranger_shortcuts\" }" "${XDG_CONFIG_HOME:-$HOME/.config}/files" + printf(\"map %s shell \$EDITOR %s \n\",\$1,\$2) >> \"$ranger_shortcuts\" }" From cb5d88c8f3813826dc5bfa2508bd86ace4613f62 Mon Sep 17 00:00:00 2001 From: Luke Bubar <43391582+lukerb52@users.noreply.github.com> Date: Mon, 19 Oct 2020 09:09:03 -0400 Subject: [PATCH 3/5] Add C++ support to compiler script. (#828) --- .local/bin/compiler | 1 + 1 file changed, 1 insertion(+) diff --git a/.local/bin/compiler b/.local/bin/compiler index 1892d5f..c56a25a 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -30,6 +30,7 @@ case "$ext" in [0-9]) preconv "$file" | refer -PS -e | groff -mandoc -T pdf > "$base".pdf ;; c) cc "$file" -o "$base" && "$base" ;; go) go run "$file" ;; + cpp) g++ "$file" -o "$base" && "$base" ;; h) sudo make install ;; m) octave "$file" ;; md) if [ -x "$(command -v lowdown)" ]; then From 06bec852386d57daf6cff778eacc691fa50d2fc1 Mon Sep 17 00:00:00 2001 From: majamin <45718559+majamin@users.noreply.github.com> Date: Thu, 22 Oct 2020 11:27:50 -0700 Subject: [PATCH 4/5] kill and start only current user's session (#829) --- .local/bin/sysact | 4 ++-- .zprofile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.local/bin/sysact b/.local/bin/sysact index 0a7cdd0..e73981f 100755 --- a/.local/bin/sysact +++ b/.local/bin/sysact @@ -10,8 +10,8 @@ esac cmds="\ 🔒 lock slock -🚪 leave dwm kill -TERM $(pidof -s dwm) -♻ renew dwm kill -HUP $(pidof -s dwm) +🚪 leave dwm kill -TERM $(pgrep -u $USER "\bdwm$") +♻ renew dwm kill -HUP $(pgrep -u $USER "\bdwm$") 🐻 hibernate ${hib:-sudo -A systemctl suspend-then-hibernate} 🔃 reboot ${reb:-sudo -A reboot} 🖥 shutdown ${shut:-sudo -A shutdown -h now}" diff --git a/.zprofile b/.zprofile index e7b62f6..d122b67 100644 --- a/.zprofile +++ b/.zprofile @@ -131,8 +131,8 @@ ex=🎯:\ [ ! -f ${XDG_CONFIG_HOME:-$HOME/.config}/shortcutrc ] && shortcuts >/dev/null 2>&1 & if pacman -Qs libxft-bgra >/dev/null 2>&1; then - # Start graphical server on tty1 if not already running. - [ "$(tty)" = "/dev/tty1" ] && ! pidof Xorg >/dev/null 2>&1 && exec startx + # Start graphical server on user's current tty if not already running. + [[ -n "$(tty)" && -z $(pgrep -u $USER "\bXorg$") ]] && exec startx else echo "\033[31mIMPORTANT\033[0m: Note that \033[32m\`libxft-bgra\`\033[0m must be installed for this build of dwm. Please run: From f08e37bdad7aa7c69c7529fe9e48939a4b21d9cc Mon Sep 17 00:00:00 2001 From: PCFreak2000 <16918533+PCFreak2000@users.noreply.github.com> Date: Sat, 24 Oct 2020 17:43:19 +0200 Subject: [PATCH 5/5] Added missing value for parameter (#830) The value of the "-c" parameter was missing, so the check for an active internet connection as well as the whole script failed. --- .local/bin/cron/checkup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/cron/checkup b/.local/bin/cron/checkup index bf7f85d..4cfb856 100755 --- a/.local/bin/cron/checkup +++ b/.local/bin/cron/checkup @@ -2,7 +2,7 @@ # Syncs repositories and downloads updates, meant to be run as a cronjob. -ping -q -c example.org > /dev/null || exit +ping -q -c 1 example.org > /dev/null || exit notify-send "📦 Repository Sync" "Checking for package updates..."