From 67b3d29810ab7d1b3b2ac34d5d20ffb5683ff108 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 15 Mar 2023 23:48:19 +0800 Subject: update --- makeapp | 36 ++++++++++++++++++++++++++++++++++++ preventsystemfreeze.sh | 0 reflector.sh | 2 +- rrunbgblur.sh | 4 +--- runbgblur.sh | 12 +++++++----- vimake | 4 +--- 6 files changed, 46 insertions(+), 12 deletions(-) create mode 100755 makeapp mode change 100644 => 100755 preventsystemfreeze.sh diff --git a/makeapp b/makeapp new file mode 100755 index 0000000..6588329 --- /dev/null +++ b/makeapp @@ -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 old mode 100644 new mode 100755 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 diff --git a/vimake b/vimake index 124ab7e..e590493 100755 --- a/vimake +++ b/vimake @@ -1,3 +1 @@ -#!/usr/bin/env bash - -vim Makefile +lvim Makefile -- cgit v1.2.3