diff --git a/.archlinux/PKGBUILDs/tari-util/PKGBUILD b/.archlinux/PKGBUILDs/tari-util/PKGBUILD index 48a89b57..59069c04 100644 --- a/.archlinux/PKGBUILDs/tari-util/PKGBUILD +++ b/.archlinux/PKGBUILDs/tari-util/PKGBUILD @@ -4,28 +4,21 @@ _yay="yay_${_yayver}_x86_64" _rofipass="rofi-pass-${_rofipassver}" pkgname=tari-util -pkgver=0.1.0 +pkgver=0.2.0 pkgrel=1 pkgdesc="Misc utility packages." arch=('any') -provides=('launch-cmd' 'yay' 'rofi-pass') -conflicts=('launch-cmd' 'yay' 'rofi-pass') +provides=('yay' 'rofi-pass') +conflicts=('yay' 'rofi-pass') depends=('xdg-utils' 'rofi' 'pass' 'pwgen' 'xdotool') -source=('launch.c' - "https://github.com/Jguer/yay/releases/download/v${_yayver}/${_yay}.tar.gz" +source=("https://github.com/Jguer/yay/releases/download/v${_yayver}/${_yay}.tar.gz" "${_rofipass}.tar.gz::https://codeload.github.com/carnager/rofi-pass/tar.gz/${_rofipassver}") -sha256sums=('0c049434a4a7934a82fb122acfb92159eba665db81cab8af92da2f227f3274bd' - 'e0f28c6be3c4322901438f324aed1f49ab593a8d4ed92279b1dda51381c51d6b' +sha256sums=('e0f28c6be3c4322901438f324aed1f49ab593a8d4ed92279b1dda51381c51d6b' '82256730aa4ab6f0b3082eaa8410a93c284ca9fc1e0151de92d9dd703d850439') -build() { - make launch -} - package() { _yayout="${srcdir}/${_yay}" - install -Dm 755 launch "$pkgdir"/usr/bin/launch install -Dm 755 "$_yayout"/yay "$pkgdir"/usr/bin/yay install -Dm 644 "$_yayout"/yay.8 "$pkgdir"/usr/share/man/man8/yay.8 install -Dm 644 "$_yayout"/bash "$pkgdir"/usr/share/bash-completion/completions/yay diff --git a/.archlinux/PKGBUILDs/tari-util/launch.c b/.archlinux/PKGBUILDs/tari-util/launch.c deleted file mode 100644 index 1b0ee2a9..00000000 --- a/.archlinux/PKGBUILDs/tari-util/launch.c +++ /dev/null @@ -1,50 +0,0 @@ -/* Copyright 2017 Maxwell Anselm. - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the Free - * Software Foundation, either version 3 of the License, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ -#include -#include -#include - -int main(int argc, char** argv) -{ - // need a command to run - if (argc <= 1) return 1; - - // fork to disown the child - pid_t child; - if (child = fork()) - { - if (child == -1) - { - perror("fork"); - return 1; - } - - printf("%ld\n", (long)child); - return 0; - } - - // silence output - if (!freopen("/dev/null", "w", stdout)) fprintf(stdout, "Failed to silence stdout\n"); - if (!freopen("/dev/null", "w", stderr)) fprintf(stderr, "Failed to silence stderr\n"); - - // run the command - execvp(argv[1], argv + 1); - - // if execvp returns, it's an error - if (freopen("/dev/tty", "w", stderr)) perror(argv[0]); - - return 1; -} diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index c29463bf..d72a1e4c 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -65,9 +65,6 @@ if not set -q set_abbr abbr c "clear" # Because 5 letters is too much abbr e "exit" abbr l "ls -l" - abbr f "launch feh --auto-zoom" # Easy image viewing with f - abbr z "launch zathura" # Easy document browsing with z - abbr m "launch mpv" # Easy media playing with m abbr w "wal -o ~/.config/wal/done.sh" abbr T "tree" diff --git a/polybar/.config/polybar/launch.sh b/polybar/.config/polybar/launch.sh index e89fb09f..cc170069 100755 --- a/polybar/.config/polybar/launch.sh +++ b/polybar/.config/polybar/launch.sh @@ -56,4 +56,4 @@ echo $BSPWM_TOP_PADDING > $HOME/.cache/polybar/bspwm_top_padding while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done # Start polybar -launch polybar main +polybar main & diff --git a/ranger/.config/ranger/rc.conf b/ranger/.config/ranger/rc.conf index 9037383e..4602ba20 100644 --- a/ranger/.config/ranger/rc.conf +++ b/ranger/.config/ranger/rc.conf @@ -26,7 +26,7 @@ alias r rename alias d delete # Alias w to wal -alias w shell -fs launch wal -o "$HOME/.config/wal/done.sh" -i %f +alias w shell -fs wal -o "$HOME/.config/wal/done.sh" -i %f set use_preview_script true set preview_files true