From d71ac27523a0000d313d6c680edcefafd2c9b032 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 23 Nov 2024 11:37:18 -0800 Subject: [PATCH] feat: Use nix-shell interpreter --- files/launchers/type-1/launcher.sh | 4 +++- files/launchers/type-2/launcher.sh | 8 +++++--- files/launchers/type-3/launcher.sh | 8 +++++--- files/launchers/type-4/launcher.sh | 8 +++++--- files/launchers/type-5/launcher.sh | 8 +++++--- files/launchers/type-6/launcher.sh | 8 +++++--- files/launchers/type-7/launcher.sh | 8 +++++--- 7 files changed, 33 insertions(+), 19 deletions(-) diff --git a/files/launchers/type-1/launcher.sh b/files/launchers/type-1/launcher.sh index 6a0cb69..2ea2203 100755 --- a/files/launchers/type-1/launcher.sh +++ b/files/launchers/type-1/launcher.sh @@ -1,4 +1,6 @@ -#!/usr/bin/env bash +#!/usr/bin/env nix-shell +#! nix-shell -i bash -p rofi +# shellcheck shell=bash ## Author : Aditya Shakya (adi1090x) ## Github : @adi1090x diff --git a/files/launchers/type-2/launcher.sh b/files/launchers/type-2/launcher.sh index 3422cd7..0b79eae 100755 --- a/files/launchers/type-2/launcher.sh +++ b/files/launchers/type-2/launcher.sh @@ -1,4 +1,6 @@ -#!/usr/bin/env bash +#!/usr/bin/env nix-shell +#! nix-shell -i bash -p rofi +# shellcheck shell=bash ## Author : Aditya Shakya (adi1090x) ## Github : @adi1090x @@ -16,5 +18,5 @@ theme='style-1' ## Run rofi \ - -show drun \ - -theme ${dir}/${theme}.rasi + -show drun \ + -theme "${dir}"/${theme}.rasi diff --git a/files/launchers/type-3/launcher.sh b/files/launchers/type-3/launcher.sh index ae97b5f..b903574 100755 --- a/files/launchers/type-3/launcher.sh +++ b/files/launchers/type-3/launcher.sh @@ -1,4 +1,6 @@ -#!/usr/bin/env bash +#!/usr/bin/env nix-shell +#! nix-shell -i bash -p rofi +# shellcheck shell=bash ## Author : Aditya Shakya (adi1090x) ## Github : @adi1090x @@ -15,5 +17,5 @@ theme='style-10' ## Run rofi \ - -show drun \ - -theme ${dir}/${theme}.rasi + -show drun \ + -theme "${dir}"/${theme}.rasi diff --git a/files/launchers/type-4/launcher.sh b/files/launchers/type-4/launcher.sh index 6572cda..c996eb9 100755 --- a/files/launchers/type-4/launcher.sh +++ b/files/launchers/type-4/launcher.sh @@ -1,4 +1,6 @@ -#!/usr/bin/env bash +#!/usr/bin/env nix-shell +#! nix-shell -i bash -p rofi +# shellcheck shell=bash ## Author : Aditya Shakya (adi1090x) ## Github : @adi1090x @@ -15,5 +17,5 @@ theme='style-1' ## Run rofi \ - -show drun \ - -theme ${dir}/${theme}.rasi + -show drun \ + -theme "${dir}"/${theme}.rasi diff --git a/files/launchers/type-5/launcher.sh b/files/launchers/type-5/launcher.sh index e9d0a3a..08840aa 100755 --- a/files/launchers/type-5/launcher.sh +++ b/files/launchers/type-5/launcher.sh @@ -1,4 +1,6 @@ -#!/usr/bin/env bash +#!/usr/bin/env nix-shell +#! nix-shell -i bash -p rofi +# shellcheck shell=bash ## Author : Aditya Shakya (adi1090x) ## Github : @adi1090x @@ -14,5 +16,5 @@ theme='style-1' ## Run rofi \ - -show drun \ - -theme ${dir}/${theme}.rasi + -show drun \ + -theme "${dir}"/${theme}.rasi diff --git a/files/launchers/type-6/launcher.sh b/files/launchers/type-6/launcher.sh index c0b4d33..5b5d1b1 100755 --- a/files/launchers/type-6/launcher.sh +++ b/files/launchers/type-6/launcher.sh @@ -1,4 +1,6 @@ -#!/usr/bin/env bash +#!/usr/bin/env nix-shell +#! nix-shell -i bash -p rofi +# shellcheck shell=bash ## Author : Aditya Shakya (adi1090x) ## Github : @adi1090x @@ -15,5 +17,5 @@ theme='style-1' ## Run rofi \ - -show drun \ - -theme ${dir}/${theme}.rasi + -show drun \ + -theme "${dir}"/${theme}.rasi diff --git a/files/launchers/type-7/launcher.sh b/files/launchers/type-7/launcher.sh index aa45aa9..45a920c 100755 --- a/files/launchers/type-7/launcher.sh +++ b/files/launchers/type-7/launcher.sh @@ -1,4 +1,6 @@ -#!/usr/bin/env bash +#!/usr/bin/env nix-shell +#! nix-shell -i bash -p rofi +# shellcheck shell=bash ## Author : Aditya Shakya (adi1090x) ## Github : @adi1090x @@ -15,5 +17,5 @@ theme='style-1' ## Run rofi \ - -show drun \ - -theme ${dir}/${theme}.rasi + -show drun \ + -theme "${dir}"/${theme}.rasi