Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
b5aea3aeed | ||
|
6fc84ce7be | ||
|
e085233dcb | ||
|
63cd3baffc | ||
|
2e70b1e35d | ||
|
b3b11e3b0e | ||
|
a69b214c91 |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.DS_Store
|
||||
*.app
|
16
README.md
16
README.md
@@ -19,6 +19,22 @@ Create, list or delete bare repos on git server. Edit your config and descriptio
|
||||
- Create, list, delete, edit hooks
|
||||
|
||||
|
||||
#### autoscript
|
||||
|
||||
Quickly setup the base to start writing scripts.
|
||||
Supports crystal, python and bash (default)
|
||||
|
||||
|
||||
#### initializeANSI
|
||||
|
||||
Initialize a bunch of variables with ANSI colors and co.
|
||||
|
||||
|
||||
#### glances
|
||||
|
||||
top alternative
|
||||
|
||||
|
||||
|
||||
## MacOS
|
||||
|
||||
|
@@ -1,37 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
PIDFILE="/var/run/user/$UID/bg.pid"
|
||||
|
||||
# Declare PIDs array
|
||||
declare -a PIDs
|
||||
|
||||
_screen() {
|
||||
# g specify geometry heightxwidth+xcoord+ycoord
|
||||
# ni Ignore Input
|
||||
# ov For Desktop background
|
||||
# fs fullscreen
|
||||
# vo=gpu gpu accelerated video output
|
||||
# hwdec=vdpau use vdpau for gpu acceleration
|
||||
xwinwrap -ov -ni -g "$1" -- mpv -fs\
|
||||
--no-stop-screensaver\
|
||||
--vo=gpu --hwdec=vaapi\
|
||||
--loop-file --no-audio --no-osc --no-osd-bar\
|
||||
-wid WID --no-input-default-bindings\
|
||||
"$2" &
|
||||
# Needs more testing not in fullscreen mode
|
||||
#xwinwrap -ov -ni -g "$1" -- sxiv "$2" -f -b -a -e WID &
|
||||
PIDs+=($!)
|
||||
}
|
||||
|
||||
while read p; do
|
||||
[[ $(ps -p "$p" -o comm=) == "xwinwrap" ]] && kill -9 "$p";
|
||||
done < $PIDFILE
|
||||
|
||||
sleep 0.5
|
||||
|
||||
for i in $(xrandr -q | grep ' connected' | grep -oP '\d+x\d+\+\d+\+\d+')
|
||||
do
|
||||
_screen "$i" "$1"
|
||||
done
|
||||
|
||||
printf "%s\n" "${PIDs[@]}" > $PIDFILE
|
@@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
xdotool search --class "Minecraft\*\ 1\.16\.4" mousemove --window %1 950 350 click 1;
|
||||
while true; do
|
||||
sleep 1;
|
||||
xdotool search --class "Minecraft\*\ 1\.16\.4" click 1;
|
||||
echo "click";
|
||||
done
|
||||
|
7
displayer
Executable file
7
displayer
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# run displayplacer list and copy last line below
|
||||
|
||||
/usr/local/bin/displayplacer "id:49F08A4F-75FC-4C49-1D42-FCAFFAD002D9 res:1440x900 color_depth:8 scaling:on origin:(0,0) degree:0" "id:53E94505-4CEC-6831-DC98-38719471A1A2 res:2560x1440 hz:60 color_depth:8 scaling:off origin:(-2560,-540) degree:0" "id:FC867AA0-A4A6-CD6C-080F-31EFDA5C3F71 res:2560x1440 hz:60 color_depth:8 scaling:off origin:(-5120,-540) degree:0"
|
||||
|
||||
exit 0
|
20
dmenu_quit
20
dmenu_quit
@@ -1,20 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
test=$(echo -e "Shutdown\nLogout\nSuspend\nReboot\nCancel" | dmenu -i -p "$1" -h 25)
|
||||
|
||||
case "$test" in
|
||||
Shutdown)
|
||||
poweroff
|
||||
;;
|
||||
Logout)
|
||||
#herbstclient quit
|
||||
killall xinit
|
||||
;;
|
||||
Suspend)
|
||||
systemctl suspend
|
||||
;;
|
||||
Reboot)
|
||||
reboot
|
||||
;;
|
||||
esac
|
||||
|
@@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
instance=$(ls -I _MMC_TEMP -I instgroups.json ~/.local/share/multimc/instances | dmenu -i -p "Choose minecraft instance: " -h 25)
|
||||
|
||||
multimc --launch "$instance"
|
||||
|
4
mcal
Executable file
4
mcal
Executable file
@@ -0,0 +1,4 @@
|
||||
cal | awk '{ print " "$0; getline; print " Mo Tu We Th Fr Sa Su"; \
|
||||
getline; if (substr($0,1,2) == " 1") print " 1 "; \
|
||||
do { prevline=$0; if (getline == 0) exit; print " " \
|
||||
substr(prevline,4,17) " " substr($0,1,2) " "; } while (1) }'
|
5
udmenu
5
udmenu
@@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
grep -v "#" ~/.local/bin/unicode | dmenu -i -h 25 -l 20 -fn "JoyPixels:pixelsize=10" | awk '{print $1}' | tr -d '\n' | xclip -selection clipboard
|
||||
|
||||
pgrep -x dunst > /dev/null && notify-send "$(xclip -o -selection clipboard) copied to clipboard"
|
Reference in New Issue
Block a user