Remove unneeded scripts
This commit is contained in:
@@ -11,15 +11,12 @@
|
|||||||
|
|
||||||
+ Bluetooth-Manager: blueman
|
+ Bluetooth-Manager: blueman
|
||||||
+ Editor: emacs
|
+ Editor: emacs
|
||||||
+ File-Browser: thunar + tumbler
|
|
||||||
+ Image-Viewer: sxiv
|
+ Image-Viewer: sxiv
|
||||||
+ Launcher: [dmenu](https://github.com/crammk/dmenu)
|
+ Launcher: [dmenu](https://github.com/crammk/dmenu)
|
||||||
+ Lock: [slock](https://github.com/crammk/slock)
|
+ Lock: [slock](https://github.com/crammk/slock)
|
||||||
+ Mouse-Settings: piper
|
+ Mouse-Settings: piper
|
||||||
+ Music: spotify
|
|
||||||
+ Pdf-Viewer: zathura with mupdf
|
+ Pdf-Viewer: zathura with mupdf
|
||||||
+ Screenshots: flameshot
|
+ Screenshots: flameshot
|
||||||
+ Video-Player: mpv, vlc
|
|
||||||
|
|
||||||
## Other Dependencies
|
## Other Dependencies
|
||||||
+ [Gruvbox](https://github.com/hargonix/Pop-gruvbox/): GTK Theme (clone into ~/.themes)
|
+ [Gruvbox](https://github.com/hargonix/Pop-gruvbox/): GTK Theme (clone into ~/.themes)
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
xinput --set-prop 14 'libinput Accel Profile Enabled' 0, 1
|
xinput --set-prop 25 'libinput Accel Profile Enabled' 0, 1
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ `hostname` = "nazarick" ]; then
|
|
||||||
xrandr --output DP-3 --right-of DP-1 --primary
|
|
||||||
fi
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
xlock \
|
|
||||||
-mode matrix \
|
|
||||||
-info '' \
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
killall -q polybar
|
|
||||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
|
||||||
|
|
||||||
if type "xrandr"; then
|
|
||||||
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
|
||||||
if [ $mon = "eDP" ]; then
|
|
||||||
MONITOR=$mon polybar --reload laptop &
|
|
||||||
else
|
|
||||||
MONITOR=$mon polybar --reload main &
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
else
|
|
||||||
notify-send "No screens for polybar were found"
|
|
||||||
fi
|
|
||||||
@@ -1,70 +0,0 @@
|
|||||||
#!/usr/bin/python3
|
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import random
|
|
||||||
import re
|
|
||||||
import argparse
|
|
||||||
|
|
||||||
|
|
||||||
def get_wallpapers(query: str, path: str):
|
|
||||||
"Fetch a wallpaper"
|
|
||||||
|
|
||||||
# Search through all wallpapers
|
|
||||||
wallpapers = [f for f in os.listdir(path) if re.search(r"png|jpg", f)]
|
|
||||||
queried_wallpapers = [f for f in wallpapers if re.search(rf"{query}", f)]
|
|
||||||
|
|
||||||
return queried_wallpapers
|
|
||||||
|
|
||||||
def pick_wallpaper(wallpaper_list, *args):
|
|
||||||
# Error handling
|
|
||||||
if not wallpaper_list:
|
|
||||||
print("No wallpapers found!")
|
|
||||||
sys.exit(1)
|
|
||||||
else:
|
|
||||||
new_wallpaper = random.choice(wallpaper_list)
|
|
||||||
|
|
||||||
return new_wallpaper
|
|
||||||
|
|
||||||
def list_wallpapers(wallpaper_list, *args):
|
|
||||||
print("Wallpapers matching your query:")
|
|
||||||
for wallpaper in wallpaper_list:
|
|
||||||
print(wallpaper)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
|
|
||||||
### DEFAULT WALLPAPER DIRECTORY HERE
|
|
||||||
path = "data/nextcloud/wallpaper"
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
|
||||||
parser.add_argument("-q", "--query", help="Refine selection")
|
|
||||||
parser.add_argument("-p", "--path", help="Path to wallpaper directory")
|
|
||||||
parser.add_argument("-l", "--list", action="store_true", help="List potential wallpapers" )
|
|
||||||
args = parser.parse_args()
|
|
||||||
|
|
||||||
query = ""
|
|
||||||
if args.query:
|
|
||||||
query = args.query
|
|
||||||
print(f"Searching for wallpapers filename matching: {query}")
|
|
||||||
|
|
||||||
if args.path:
|
|
||||||
path = args.path
|
|
||||||
print(f"Searching in: {path}")
|
|
||||||
|
|
||||||
# Get a list of all wallpapers
|
|
||||||
wallpaper_list = get_wallpapers(query, path)
|
|
||||||
|
|
||||||
if args.list:
|
|
||||||
print("=================================================")
|
|
||||||
print("Arg '--list' is set. No wallpaper will be applied")
|
|
||||||
print("=================================================")
|
|
||||||
list_wallpapers(wallpaper_list)
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
# Pick one wallpaper
|
|
||||||
query_result = pick_wallpaper(wallpaper_list)
|
|
||||||
wallpaper = path + "/" + query_result
|
|
||||||
|
|
||||||
os.system(f"feh --bg-scale {wallpaper}")
|
|
||||||
print(f"Updated wallpaper to: {wallpaper}")
|
|
||||||
Reference in New Issue
Block a user