diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-03-15 23:48:19 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-03-15 23:48:19 +0800 |
| commit | 67b3d29810ab7d1b3b2ac34d5d20ffb5683ff108 (patch) | |
| tree | bd9c5d34258106fd2594bbbab4cbf9e636b04a71 | |
| parent | 475c4f23556189609041c52a8eb32ff05dae7abc (diff) | |
update
| -rwxr-xr-x | makeapp | 36 | ||||
| -rwxr-xr-x[-rw-r--r--] | preventsystemfreeze.sh | 0 | ||||
| -rwxr-xr-x | reflector.sh | 2 | ||||
| -rwxr-xr-x | rrunbgblur.sh | 4 | ||||
| -rwxr-xr-x | runbgblur.sh | 12 | ||||
| -rwxr-xr-x | vimake | 4 |
6 files changed, 46 insertions, 12 deletions
@@ -0,0 +1,36 @@ +#!/usr/bin/env python + +from os import system as cmd +from sys import stderr + + +def main(): + # if furture going to C, put those into header file + # ==================================================================================== # + appname = input(":: Enter App name(Name):\n") + appgename = input(":: Enter App Generic Name(Can be leaved as blank):\n") + appicon = input(":: Package Icon(Can be leaved as blank):\n") + appexec = input(":: Where is the App script(exec):\n") + appcomm = input(":: Comment about the App(Can be leaved as blank):\n") + otherextras = input(":: Extras Argument for the .desktop?(going to be echoed into the file)(Can be leaved blank):\n") + # ==================================================================================== # + # checking + # can leave blank + if len(appgename) <= 0: + noappgename = True + if len(appicon) <= 0: + noappicon = True + if len(otherextras) <= 0: + notherextras = True + if len(appcomm) <= 0: + noappcomm = True + # reuired + if len(appname) <= 0 or len(appexec) <= 0: + stderr.write("Please fill out the reuired options\n") + exit(1) + # main functions + def mainprocess(): + cmd(f"sudo touch /usr/share/applications/{appname}.desktop") + cmd(f"sudo echo") + +#### dont want to do this anymore kinda useless. diff --git a/preventsystemfreeze.sh b/preventsystemfreeze.sh index d674356..d674356 100644..100755 --- a/preventsystemfreeze.sh +++ b/preventsystemfreeze.sh diff --git a/reflector.sh b/reflector.sh index 524994b..e3054f5 100755 --- a/reflector.sh +++ b/reflector.sh @@ -1,6 +1,6 @@ #!/usr/bin/env sh while true; do - sudo /usr/bin/reflector @/etc/xdg/reflector/reflector.conf + exec sudo /usr/bin/reflector @/etc/xdg/reflector/reflector.conf & update sleep 1080 done diff --git a/rrunbgblur.sh b/rrunbgblur.sh index ab5cba6..5866688 100755 --- a/rrunbgblur.sh +++ b/rrunbgblur.sh @@ -1,6 +1,4 @@ -#!/usr/bin/zsh - while true; do - exec $HOME/scripts/runbgblur.sh & + $HOME/scripts/runbgblur.sh & sleep 1800 done diff --git a/runbgblur.sh b/runbgblur.sh index d22e51e..8906e89 100755 --- a/runbgblur.sh +++ b/runbgblur.sh @@ -1,7 +1,9 @@ #!/usr/bin/zsh -pkill -f backgroundblur -wallpaper="$(find /home/system/Pictures/wallpapers -type f -name '*.jpg' -o -name '*.png' | shuf -n 1)" -feh --bg-fill "$wallpaper" & -$HOME/.config/bspwm/scripts/backgroundblur -i "$wallpaper" & -kill -SIGTERM $(pgrep runbgblur.sh) +while true; do + pkill -f backgroundblur + wallpaper="$(find /home/system/Pictures/wallpapers -type f -name '*.jpg' -o -name '*.png' | shuf -n 1)" + feh --bg-fill "$wallpaper" & + $HOME/.config/bspwm/scripts/backgroundblur -i "$wallpaper" & + sleep 1800 +done @@ -1,3 +1 @@ -#!/usr/bin/env bash - -vim Makefile +lvim Makefile |
