Browse Source

deleted old and unused scripts

Marius Schwarz 1 year ago
parent
commit
3f04d19f0c

+ 0 - 13
.scripts/i3/battbar2.0

@@ -1,13 +0,0 @@
-bat=$(acpi battery | awk '{print $4}' | sed "s/%//")
-
-
-if [ $bat -gt 0 ] && [ $bat -lt 25 ]; then
-    echo 'yeah'
-elif [ $bat -gt 25 ] && [ $bat -lt 50 ]; then
-
-elif [ $bat -gt 50 ] && [ $bat -lt 75 ]; then
-
-elif [ $bat -gt 75 ] && [ $bat -lt 100 ]; then
-
-fi
-

+ 0 - 18
.scripts/i3/i3blocks/i3vpn.sh

@@ -1,18 +0,0 @@
-#!/bin/sh
-
-status=$(pvpn --status)
-
-public_ip=$(pvpn --status | awk -F: '/Public/ {print $2}')
-conn_status=$(pvpn --status | awk -F: '/ProtonVPN Status/ {print $2}')
-#server=$(pvpn --status | awk -F: '/Server Name/ {print $2}')
-
-if [ "$conn_status" = " Not Running" ] ; then
-    connected="<span color='#586E75'>{not connected}</span>"
-elif [ "$conn_status" = " Running" ] ; then
-    connected="<span color='#19c682'>{connected}</span> [$public_ip ]"
-else
-    connected="~"
-fi
-
-#printf "$connected\n"
-printf "$connected\n"

+ 0 - 10
.scripts/i3/i3blocks/tailscale.sh

@@ -1,10 +0,0 @@
-#!/bin/sh
-
-if tailscale status | grep -q "stopped"
-then
-    echo "<span foreground='#ff5733'> stopped</span>"
-else
-    ip=$(tailscale ip -4)
-    echo "<span foreground='#19c682'> $ip</span>"
-fi
-

+ 0 - 3
.scripts/i3/i3blocks/todo.sh

@@ -1,3 +0,0 @@
-#!/bin/sh
-
-cat ~/projects/internal/notes/todo.md | grep '^* \[ \]' | cut -c 7-

BIN
.scripts/i3/lock.png


+ 0 - 4
.scripts/i3/lock.sh

@@ -1,4 +0,0 @@
-#!/bin/bash
-path=$HOME/.cache/wal/colors.hs
-color=`cat $path | grep background | grep -o "#......" | sed 's/#//g'`
-i3lock -c $color

+ 0 - 49
.scripts/tools/mkscreenshot.sh

@@ -1,49 +0,0 @@
-#!/bin/sh
-
-sspath="$HOME/pictures/screenshots"
-tmpss="/tmp/tmp_mkscreenshot.png"
-
-choice=$(printf "Select\nFull Screen\nActive Window" | dmenu -i)
-
-
-save_screenshot () {
-    # copy screenshot as image to clipboard (pasting in Telegram, ...)
-    xclip -t image/png -selection clipboard -i < "$tmpss"
-
-    name=$(echo '' | dmenu -p "Enter Name:")
-
-    if [ "$name" = "" ]; then
-        echo '[-] Aborting...'
-        exit 0
-    fi
-
-    mv "$tmpss" "$sspath/$name.png"
-    notify-send "screenshot has been saved in ~/pictures/screenshots"
-
-}
-
-# Choice between Full Screen, Active Window and Selection
-if [ "$choice" = "Select" ]
-then
-    notify-send "select an area for the screenshot"
-    scrot -s $tmpss
-    if [ $? -eq 0 ]; then
-        save_screenshot
-    fi
-elif [ "$choice" = "Full Screen" ]
-then
-    sleep 0.2s
-    scrot $tmpss
-    if [ $? -eq 0 ]; then
-        save_screenshot
-    fi
-elif [ "$choice" = "Active Window" ]
-then
-    scrot -u $tmpss
-    if [ $? -eq 0 ]; then
-        save_screenshot
-    fi
-fi
-
-
-

+ 2 - 2
.scripts/tools/theme-changer.sh

@@ -1,7 +1,7 @@
 #!/bin/sh
 
-WALLS=$HOME/pictures/wallpaper
+WALLS=$HOME/wallpaper
 
-theme=$(/usr/bin/ls $WALLS *.jpg | rofi -dmenu)
+theme=$(/usr/bin/ls $WALLS/.png | rofi -dmenu)
 
 wal -l -i $WALLS/$theme