diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-09-01 10:58:29 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-09-01 10:58:29 +0200 |
commit | 91a2b8cca19115d668e3c30997865f805f884741 (patch) | |
tree | 0091e335ad4a0ff9f28d4dbbe44a63a4c955a2b0 | |
parent | c00194eb4db069fc318dc011b230ed9b8fcd8bb2 (diff) |
Fix scripts not starting up
-rwxr-xr-x | bin/lock | 4 | ||||
-rwxr-xr-x | bin/lockscr1 | 4 | ||||
-rwxr-xr-x | bin/lockscr2 | 4 | ||||
-rwxr-xr-x | bin/permafocus | 4 | ||||
-rwxr-xr-x | bin/show | 4 | ||||
-rwxr-xr-x | bin/totp | 4 | ||||
-rwxr-xr-x | bin/totpadd | 4 | ||||
-rwxr-xr-x | bspwmrc | 4 | ||||
-rwxr-xr-x | init_monitor.sh | 4 | ||||
-rwxr-xr-x | install.sh | 4 | ||||
-rw-r--r-- | polybar/config.ini | 2 | ||||
-rwxr-xr-x | polybar/launch.sh | 4 | ||||
-rwxr-xr-x | shell_only.sh | 4 |
13 files changed, 25 insertions, 25 deletions
@@ -1,3 +1,5 @@ +#! /bin/bash + # Copyright (C) 2022 HimbeerserverDE # # This program is free software: you can redistribute it and/or modify @@ -13,8 +15,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. -#! /bin/bash - refocus_fullscreen_nodes() { while [ -z "$(pgrep -x permafocus)" ]; do sleep 1; done diff --git a/bin/lockscr1 b/bin/lockscr1 index 37ab5ef..4620b5a 100755 --- a/bin/lockscr1 +++ b/bin/lockscr1 @@ -1,3 +1,5 @@ +#! /bin/bash + # Copyright (C) 2022 HimbeerserverDE # # This program is free software: you can redistribute it and/or modify @@ -13,8 +15,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. -#! /bin/bash - main() { clear diff --git a/bin/lockscr2 b/bin/lockscr2 index ea5b538..09dcc8e 100755 --- a/bin/lockscr2 +++ b/bin/lockscr2 @@ -1,3 +1,5 @@ +#! /bin/bash + # Copyright (C) 2022 HimbeerserverDE # # This program is free software: you can redistribute it and/or modify @@ -13,8 +15,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. -#! /bin/bash - main() { clear diff --git a/bin/permafocus b/bin/permafocus index 6fae91e..cad7a9a 100755 --- a/bin/permafocus +++ b/bin/permafocus @@ -1,3 +1,5 @@ +#! /bin/bash + # Copyright (C) 2022 HimbeerserverDE # # This program is free software: you can redistribute it and/or modify @@ -13,8 +15,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. -#! /bin/bash - # THIS SCRIPT MUST ONLY BE CALLED BY THE SCREENSAVER! # OTHER CALLERS WILL INTERFERE WITH SCREENSAVER OPERATION! @@ -1,3 +1,5 @@ +#! /usr/bin/env lua + -- Copyright (C) 2022 HimbeerserverDE -- -- This program is free software: you can redistribute it and/or modify @@ -13,8 +15,6 @@ -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <https://www.gnu.org/licenses/>. -#! /usr/bin/env lua - function string:ends_with(str) return self:sub(#self - #str + 1, #self) == str end @@ -1,3 +1,5 @@ +#!/bin/sh + # Copyright (C) 2022 HimbeerserverDE # # This program is free software: you can redistribute it and/or modify @@ -13,6 +15,4 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. -#!/bin/sh - gpg -d "$HOME/.2fa/$1" 2>/dev/null | oathtool -b --totp - diff --git a/bin/totpadd b/bin/totpadd index b18dfaa..0fc265b 100755 --- a/bin/totpadd +++ b/bin/totpadd @@ -1,3 +1,5 @@ +#!/bin/sh + # Copyright (C) 2022 HimbeerserverDE # # This program is free software: you can redistribute it and/or modify @@ -13,8 +15,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. -#!/bin/sh - echo "$2" | gpg -c > "$HOME/.2fa/$1" chown $USER:$USER "$HOME/.2fa/$1" chmod 0600 "$HOME/.2fa/$1" @@ -1,3 +1,5 @@ +#!/bin/sh + # Copyright (C) 2022 HimbeerserverDE # # This program is free software: you can redistribute it and/or modify @@ -13,8 +15,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. -#!/bin/sh - pgrep -x sxhkd > /dev/null || sxhkd & xss-lock --transfer-sleep-lock -- ~/bin/lock & diff --git a/init_monitor.sh b/init_monitor.sh index 6edd9d9..d8b0faa 100755 --- a/init_monitor.sh +++ b/init_monitor.sh @@ -1,3 +1,5 @@ +#! /bin/bash + # Copyright (C) 2022 HimbeerserverDE # # This program is free software: you can redistribute it and/or modify @@ -13,8 +15,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. -#! /bin/bash - while [ true ]; do if [ "$(xrandr -q | grep 'DP-2' | awk '{print $2}')" == "connected" ]; then xrandr --output 'DP-2' --right-of 'eDP-1' @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright (C) 2022 HimbeerserverDE # # This program is free software: you can redistribute it and/or modify @@ -13,8 +15,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. -#!/bin/bash - echo -e "\e[1m\e[1;31mMAKE SURE YOU ARE IN THE DIRECTORY THIS SCRIPT IS LOCATED IN!" echo -e "\e[0m\e[1;31mIf you're sure you are in the correct dir, press Enter." read diff --git a/polybar/config.ini b/polybar/config.ini index 4474aaf..a0bbbac 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -8,7 +8,7 @@ background = #111111 foreground = #d8d8d8 radius = 10.0 border-size = 4 -border-color = rgba(0, 0, 0, 0) +border-color = #00000000 border-bottom-size = 0 padding = 2 module-margin-left = 1 diff --git a/polybar/launch.sh b/polybar/launch.sh index a4315fc..2edfb67 100755 --- a/polybar/launch.sh +++ b/polybar/launch.sh @@ -1,3 +1,5 @@ +#!/bin/sh + # Copyright (C) 2022 HimbeerserverDE # # This program is free software: you can redistribute it and/or modify @@ -13,8 +15,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. -#!/bin/sh - polybar --reload -q main -c "$HOME/.config/polybar/config.ini" & polybar --reload -q opt -c "$HOME/.config/polybar/config.ini" & diff --git a/shell_only.sh b/shell_only.sh index 08640a8..8809673 100755 --- a/shell_only.sh +++ b/shell_only.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright (C) 2022 HimbeerserverDE # # This program is free software: you can redistribute it and/or modify @@ -13,8 +15,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. -#!/bin/bash - function command_exists { command -v $1 &> /dev/null } |