diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2026-08-22 21:36:56 +0200 |
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2026-08-22 21:36:56 +0200 |
| commit | 57281d4490e257c1f6ed89940c751fd90d39cfd2 (patch) | |
| tree | f8af01ff60e04b78ca3f22a5edb1b2f631c9674b /home/dot_local/share/mode | |
| parent | 21f32ce419993818444736f9e6780278acee375e (diff) | |
the great shebang rectification
Diffstat (limited to 'home/dot_local/share/mode')
33 files changed, 33 insertions, 33 deletions
diff --git a/home/dot_local/share/mode/plug.d/10_lib b/home/dot_local/share/mode/plug.d/10_lib index b3a0276..4685d33 100644 --- a/home/dot_local/share/mode/plug.d/10_lib +++ b/home/dot_local/share/mode/plug.d/10_lib @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # utility library functions hex_to_rgb_array() { pastel format rgb "$1" | cut -c4- | tr '()' '[]' ; } diff --git a/home/dot_local/share/mode/plug.d/20_export_colors b/home/dot_local/share/mode/plug.d/20_export_colors index 0f53d1f..2560aca 100644 --- a/home/dot_local/share/mode/plug.d/20_export_colors +++ b/home/dot_local/share/mode/plug.d/20_export_colors @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # colors must be #RRGGBB check_color() { ( diff --git a/home/dot_local/share/mode/plug.d/20_export_mode b/home/dot_local/share/mode/plug.d/20_export_mode index c82c4e1..45d404d 100644 --- a/home/dot_local/share/mode/plug.d/20_export_mode +++ b/home/dot_local/share/mode/plug.d/20_export_mode @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # $mode = "light" | "dark" if [ "$mode" != 'dark' ] && [ "$mode" != 'light' ] ; then pastel format hsl-lightness "$bg" | awk '{ exit($1 > 0.5) }' diff --git a/home/dot_local/share/mode/plug.d/20_export_vim_theme b/home/dot_local/share/mode/plug.d/20_export_vim_theme index 12304f3..55cf660 100644 --- a/home/dot_local/share/mode/plug.d/20_export_vim_theme +++ b/home/dot_local/share/mode/plug.d/20_export_vim_theme @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # warn if the vim theme is not installed if [ "$(find "$XDG_CONFIG_HOME/nvim" -name "$vim_theme_name.vim" | wc -l)" -eq 0 ] ; then echo "warn: vim theme $vim_theme_name does not appear to be installed" >&2 diff --git a/home/dot_local/share/mode/plug.d/50_accent b/home/dot_local/share/mode/plug.d/50_accent index ceb3209..9a32ddb 100644 --- a/home/dot_local/share/mode/plug.d/50_accent +++ b/home/dot_local/share/mode/plug.d/50_accent @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # create accent color differently for dark/light mode # do not generate accent color if already explicitly defined by theme diff --git a/home/dot_local/share/mode/reload.d/brave b/home/dot_local/share/mode/reload.d/brave index 6f6caeb..4f0f8d7 100644 --- a/home/dot_local/share/mode/reload.d/brave +++ b/home/dot_local/share/mode/reload.d/brave @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # WIP browser='brave' driver='chromedriver' diff --git a/home/dot_local/share/mode/reload.d/executable_dunst b/home/dot_local/share/mode/reload.d/executable_dunst index 430320c..54e7058 100644 --- a/home/dot_local/share/mode/reload.d/executable_dunst +++ b/home/dot_local/share/mode/reload.d/executable_dunst @@ -1,3 +1,3 @@ -#!/bin/sh +#!/usr/bin/env sh respawn_daemon dunst diff --git a/home/dot_local/share/mode/reload.d/executable_fcitx5 b/home/dot_local/share/mode/reload.d/executable_fcitx5 index cd27698..c8ef1db 100644 --- a/home/dot_local/share/mode/reload.d/executable_fcitx5 +++ b/home/dot_local/share/mode/reload.d/executable_fcitx5 @@ -1,3 +1,3 @@ -#!/bin/sh +#!/usr/bin/env sh fork fcitx5 -rd diff --git a/home/dot_local/share/mode/reload.d/executable_i3 b/home/dot_local/share/mode/reload.d/executable_i3 index 96212cf..a97b392 100644 --- a/home/dot_local/share/mode/reload.d/executable_i3 +++ b/home/dot_local/share/mode/reload.d/executable_i3 @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh fork i3-msg reload diff --git a/home/dot_local/share/mode/reload.d/executable_nvim b/home/dot_local/share/mode/reload.d/executable_nvim index cfabcc7..392fbb1 100644 --- a/home/dot_local/share/mode/reload.d/executable_nvim +++ b/home/dot_local/share/mode/reload.d/executable_nvim @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh silent_fail_if_no_commmand nvr nvr --serverlist | while read -r nvim_socket ; do fork nvr --nostart --servername "$nvim_socket" -c 'source $XDG_CONFIG_HOME/nvim/mode.vim' diff --git a/home/dot_local/share/mode/reload.d/executable_polybar b/home/dot_local/share/mode/reload.d/executable_polybar index 1976811..c44c5d8 100644 --- a/home/dot_local/share/mode/reload.d/executable_polybar +++ b/home/dot_local/share/mode/reload.d/executable_polybar @@ -1,3 +1,3 @@ -#!/bin/sh +#!/usr/bin/env sh fork polybar-msg cmd restart diff --git a/home/dot_local/share/mode/reload.d/executable_term b/home/dot_local/share/mode/reload.d/executable_term index b711d56..43d88e5 100644 --- a/home/dot_local/share/mode/reload.d/executable_term +++ b/home/dot_local/share/mode/reload.d/executable_term @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh escape_msgs="$(cat << EOF | tr -d '\n' \033]11;$bg\007 \033]10;$fg\007 diff --git a/home/dot_local/share/mode/reload.d/gtk b/home/dot_local/share/mode/reload.d/gtk index 767969d..2578348 100644 --- a/home/dot_local/share/mode/reload.d/gtk +++ b/home/dot_local/share/mode/reload.d/gtk @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # this is max jank but xfsettingsd does other things besides live gtk theme # reloading, and i don't like having it running constantly because it fucks # up fcitx5 and xbindkeys diff --git a/home/dot_local/share/mode/run_once_bootstrap.sh.tmpl b/home/dot_local/share/mode/run_once_bootstrap.sh.tmpl index 6b5f54d..fed983a 100644 --- a/home/dot_local/share/mode/run_once_bootstrap.sh.tmpl +++ b/home/dot_local/share/mode/run_once_bootstrap.sh.tmpl @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # vim:ft=sh # save hash of this directory so this script is run if the files are modified diff --git a/home/dot_local/share/mode/switch.d/executable_anki b/home/dot_local/share/mode/switch.d/executable_anki index 7572b00..7544673 100644 --- a/home/dot_local/share/mode/switch.d/executable_anki +++ b/home/dot_local/share/mode/switch.d/executable_anki @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh [ $no_cfg -eq 1 ] && return # this generates theme files compatible with Anki-redesign: diff --git a/home/dot_local/share/mode/switch.d/executable_chromium b/home/dot_local/share/mode/switch.d/executable_chromium index 0ea2caa..5a6fdfc 100644 --- a/home/dot_local/share/mode/switch.d/executable_chromium +++ b/home/dot_local/share/mode/switch.d/executable_chromium @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh [ $no_cfg -eq 1 ] && return mkcd "$XDG_CACHE_HOME/mode/chromium" diff --git a/home/dot_local/share/mode/switch.d/executable_discord b/home/dot_local/share/mode/switch.d/executable_discord index dd7e5e3..018a869 100644 --- a/home/dot_local/share/mode/switch.d/executable_discord +++ b/home/dot_local/share/mode/switch.d/executable_discord @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh [ $no_cfg -eq 1 ] && return mkcd "$XDG_CONFIG_HOME/BetterDiscord/themes" diff --git a/home/dot_local/share/mode/switch.d/executable_dunst b/home/dot_local/share/mode/switch.d/executable_dunst index d7d9a2b..dfd87fb 100644 --- a/home/dot_local/share/mode/switch.d/executable_dunst +++ b/home/dot_local/share/mode/switch.d/executable_dunst @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh [ $no_cfg -eq 1 ] && return mkcd "$XDG_CONFIG_HOME/dunst" diff --git a/home/dot_local/share/mode/switch.d/executable_fcitx5 b/home/dot_local/share/mode/switch.d/executable_fcitx5 index 2cc6ccb..c046737 100644 --- a/home/dot_local/share/mode/switch.d/executable_fcitx5 +++ b/home/dot_local/share/mode/switch.d/executable_fcitx5 @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh [ $no_cfg -eq 1 ] && return mkcd "$XDG_DATA_HOME/fcitx5/themes/mode" diff --git a/home/dot_local/share/mode/switch.d/executable_gtk b/home/dot_local/share/mode/switch.d/executable_gtk index 95d3e53..13a2d9e 100644 --- a/home/dot_local/share/mode/switch.d/executable_gtk +++ b/home/dot_local/share/mode/switch.d/executable_gtk @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh GTK_3_SETTINGS_INI="$XDG_CONFIG_HOME/gtk-3.0/settings.ini" if [ "$mode" = "light" ]; then sed -e 's/-Dark/-Light/' -e 's/-dark/-light/' -i "$GTK_3_SETTINGS_INI" diff --git a/home/dot_local/share/mode/switch.d/executable_i3 b/home/dot_local/share/mode/switch.d/executable_i3 index 713869e..09d6c7e 100644 --- a/home/dot_local/share/mode/switch.d/executable_i3 +++ b/home/dot_local/share/mode/switch.d/executable_i3 @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh [ $no_cfg -eq 1 ] && return indicator="$color0" diff --git a/home/dot_local/share/mode/switch.d/executable_kitty b/home/dot_local/share/mode/switch.d/executable_kitty index eeb81d0..2d7b115 100644 --- a/home/dot_local/share/mode/switch.d/executable_kitty +++ b/home/dot_local/share/mode/switch.d/executable_kitty @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh [ $no_cfg -eq 1 ] && return mkcd "$XDG_CONFIG_HOME/kitty" diff --git a/home/dot_local/share/mode/switch.d/executable_mode b/home/dot_local/share/mode/switch.d/executable_mode index 8866486..46f7052 100644 --- a/home/dot_local/share/mode/switch.d/executable_mode +++ b/home/dot_local/share/mode/switch.d/executable_mode @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh [ $no_cfg -eq 1 ] && return mkcd "$XDG_CACHE_HOME/mode/state" diff --git a/home/dot_local/share/mode/switch.d/executable_polybar b/home/dot_local/share/mode/switch.d/executable_polybar index 7087735..48e2dac 100644 --- a/home/dot_local/share/mode/switch.d/executable_polybar +++ b/home/dot_local/share/mode/switch.d/executable_polybar @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh [ $no_cfg -eq 1 ] && return mkcd "$XDG_CONFIG_HOME/polybar" diff --git a/home/dot_local/share/mode/switch.d/executable_vim b/home/dot_local/share/mode/switch.d/executable_vim index 2220b1a..18841b9 100644 --- a/home/dot_local/share/mode/switch.d/executable_vim +++ b/home/dot_local/share/mode/switch.d/executable_vim @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh [ $no_cfg -eq 1 ] && return mkcd "$XDG_CONFIG_HOME/nvim/mode" diff --git a/home/dot_local/share/mode/switch.d/executable_wall b/home/dot_local/share/mode/switch.d/executable_wall index c5ced92..4d0037f 100644 --- a/home/dot_local/share/mode/switch.d/executable_wall +++ b/home/dot_local/share/mode/switch.d/executable_wall @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh bgcol "$bg" diff --git a/home/dot_local/share/mode/switch.d/executable_xrdb b/home/dot_local/share/mode/switch.d/executable_xrdb index 591a530..e1c439b 100644 --- a/home/dot_local/share/mode/switch.d/executable_xrdb +++ b/home/dot_local/share/mode/switch.d/executable_xrdb @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh cat << EOF | xrdb -override *.color0: $color0 *.color1: $color1 diff --git a/home/dot_local/share/mode/switch.d/executable_zathura b/home/dot_local/share/mode/switch.d/executable_zathura index 8d7e311..ed7ae32 100644 --- a/home/dot_local/share/mode/switch.d/executable_zathura +++ b/home/dot_local/share/mode/switch.d/executable_zathura @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh [ $no_cfg -eq 1 ] && return mkcd "$XDG_CONFIG_HOME/zathura" diff --git a/home/dot_local/share/mode/themes/github-black b/home/dot_local/share/mode/themes/github-black index 34b507c..e1d0d58 100644 --- a/home/dot_local/share/mode/themes/github-black +++ b/home/dot_local/share/mode/themes/github-black @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh mode=dark color0='#484f58' diff --git a/home/dot_local/share/mode/themes/github-dark b/home/dot_local/share/mode/themes/github-dark index 577106c..27a39b7 100644 --- a/home/dot_local/share/mode/themes/github-dark +++ b/home/dot_local/share/mode/themes/github-dark @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh mode=dark color0='#484f58' diff --git a/home/dot_local/share/mode/themes/github-light b/home/dot_local/share/mode/themes/github-light index d0162f8..c243558 100644 --- a/home/dot_local/share/mode/themes/github-light +++ b/home/dot_local/share/mode/themes/github-light @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh mode=light color0='#d1d5da' diff --git a/home/dot_local/share/mode/themes/rose-pine-dawn b/home/dot_local/share/mode/themes/rose-pine-dawn index dfed420..47cfb5e 100644 --- a/home/dot_local/share/mode/themes/rose-pine-dawn +++ b/home/dot_local/share/mode/themes/rose-pine-dawn @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh mode=light color0='#c4bdc3' diff --git a/home/dot_local/share/mode/themes/xcode-dark b/home/dot_local/share/mode/themes/xcode-dark index eb75b80..eb945cf 100644 --- a/home/dot_local/share/mode/themes/xcode-dark +++ b/home/dot_local/share/mode/themes/xcode-dark @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh mode=dark color0='#43454b' |