aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2022-09-01 10:58:29 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2022-09-01 10:58:29 +0200
commit91a2b8cca19115d668e3c30997865f805f884741 (patch)
tree0091e335ad4a0ff9f28d4dbbe44a63a4c955a2b0
parentc00194eb4db069fc318dc011b230ed9b8fcd8bb2 (diff)
Fix scripts not starting up
-rwxr-xr-xbin/lock4
-rwxr-xr-xbin/lockscr14
-rwxr-xr-xbin/lockscr24
-rwxr-xr-xbin/permafocus4
-rwxr-xr-xbin/show4
-rwxr-xr-xbin/totp4
-rwxr-xr-xbin/totpadd4
-rwxr-xr-xbspwmrc4
-rwxr-xr-xinit_monitor.sh4
-rwxr-xr-xinstall.sh4
-rw-r--r--polybar/config.ini2
-rwxr-xr-xpolybar/launch.sh4
-rwxr-xr-xshell_only.sh4
13 files changed, 25 insertions, 25 deletions
diff --git a/bin/lock b/bin/lock
index a46cacc..c643ee4 100755
--- a/bin/lock
+++ b/bin/lock
@@ -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!
diff --git a/bin/show b/bin/show
index 39988ab..c98bf72 100755
--- a/bin/show
+++ b/bin/show
@@ -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
diff --git a/bin/totp b/bin/totp
index ef26167..8090c97 100755
--- a/bin/totp
+++ b/bin/totp
@@ -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"
diff --git a/bspwmrc b/bspwmrc
index 5777763..69db1cf 100755
--- a/bspwmrc
+++ b/bspwmrc
@@ -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'
diff --git a/install.sh b/install.sh
index 5ef4f1c..94a9bc1 100755
--- a/install.sh
+++ b/install.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
-
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
}