Move a lot of stuff to execline.

Also change spt to a symlink.
This commit is contained in:
Érico Rolim 2020-08-13 02:04:58 -03:00
parent 5e952f0692
commit fe79487522
20 changed files with 72 additions and 75 deletions

View File

@ -1,4 +1,3 @@
#!/bin/sh
#!/bin/execlineb -S1
# Uses copy setttings beneficial to Btrfs
exec /usr/bin/cp --reflink=auto --sparse=always "$@"
/usr/bin/cp --reflink=auto --sparse=always $@

View File

@ -1,11 +1,7 @@
#!/bin/sh
#!/bin/execlineb -S0
# ericonr's script for system tasks
# detect session manager;
# systemd -> systemctl
# non-systemd -> loginctl
CTL=loginctl
command -v systemctl && CTL=systemctl
exec $CTL "$@"
tryexec
{ systemctl $@ }
loginctl $@

View File

@ -1,4 +1,6 @@
#!/bin/sh
sudo true
sudo dmesg --color=always | less -r
#!/bin/execlineb -P
foreground
{ doas true }
pipeline
{ doas dmesg --color=always }
less -R

View File

@ -1,3 +1,3 @@
#!/bin/sh
#!/bin/execlineb -P
# https://www.tecmint.com/find-open-ports-in-linux/
exec netstat -lntu
netstat -lntu

View File

@ -1,2 +1,4 @@
#!/bin/sh
xpkg -a | fzf --reverse --cycle --preview 'xq {}'
#!/bin/execlineb -P
pipeline
{ xpkg -a }
fzf --reverse --cycle --preview "xq {}"

View File

@ -1,3 +1,2 @@
#!/bin/sh
GTK_THEME=cdetheme exec castor "$@"
#!/bin/execlineb -S0
export GTK_THEME cdetheme castor $@

View File

@ -1,3 +1,2 @@
#!/bin/sh
exec playerctl --player=playerctld "$@"
#!/bin/execlineb -S0
playerctl --player=playerctld $@

View File

@ -1,4 +1,4 @@
#!/bin/sh
swaysv up spotifyd
#!/bin/execlineb -P
foreground
{ swaysv up spotifyd }
swaysv reload spotifyd

View File

@ -1,5 +0,0 @@
#!/bin/sh
SPT=/usr/bin/spt
command -v spotify-tui && SPT=spotify-tui
exec $SPT

1
media/.local/bin/spt Symbolic link
View File

@ -0,0 +1 @@
/usr/bin/spotify-tui

View File

@ -1,3 +1,2 @@
#!/bin/sh
#!/bin/execlineb -P
xset b off

View File

@ -1,2 +1,8 @@
#!/bin/sh
ps aux | rg -i "$@" | rg -v "(rg -i)|(rgps)"
#!/bin/execlineb -S1
pipeline
{
pipeline
{ ps aux }
rg -i $@
}
rg -v "(rg -i)|(rgps)"

View File

@ -1,5 +1,6 @@
#!/bin/sh
#!/bin/execlineb -S0
# generic launcher for floating alacritty with size WIDTH X LENGTH
exec "${TERMEMU:-alacritty}" --class generic-launcher --command "${@:-fish}"
ifte
{ alacritty --class generic-launcher }
{ alacritty --class generic-launcher --command $@ }
test -z "$@"

View File

@ -1,3 +1,3 @@
#!/bin/sh
#!/bin/execlineb -P
# ericonr's script for launching applications
exec generic-launcher /bin/bash -c 'compgen -c | sort -u | fzf --border | xargs lnch'
generic-launcher /bin/bash -c "compgen -c | sort -u | fzf --border | xargs lnch"

View File

@ -1,5 +1,3 @@
#!/bin/sh
#!/bin/execlineb -S0
# floating editor launcher
exec generic-launcher nvim "$@"
generic-launcher nvim $@

View File

@ -1,3 +1,2 @@
#!/bin/sh
exec generic-launcher iwctl
#!/bin/execlineb -P
generic-launcher iwctl

View File

@ -1,12 +1,11 @@
#!/bin/sh
exec swaynag \
-t warning \
-m 'Logout' \
-b 'Exit session' 'kill-sway' \
-b 'Suspend' 'erctl suspend' \
-b 'Hibernate' 'erctl hibernate' \
-b 'Hybrid sleep' 'erctl hybrid-sleep' \
-b 'Shut down' 'erctl poweroff' \
-b 'Reboot' 'erctl reboot' \
-b 'Suspend then hibernate' 'erctl suspend-then-hibernate'
#!/bin/execlineb -P
swaynag
-t warning
-m "Logout"
-b "Exit session" "kill-sway"
-b "Suspend" "erctl suspend"
-b "Hibernate" "erctl hibernate"
-b "Hybrid sleep" "erctl hybrid-sleep"
-b "Shut down" "erctl poweroff"
-b "Reboot" "erctl reboot"
-b "Suspend then hibernate" "erctl suspend-then-hibernate"

View File

@ -1,4 +1,4 @@
#!/bin/sh
export SVDIR="$HOME/.local/share/wayland-services"
exec sv "$@"
#!/bin/execlineb -S0
importas -D /home/ericonr HOME HOME
export SVDIR ${HOME}/.local/share/wayland-services
sv $@

View File

@ -1,4 +1,4 @@
#!/bin/sh
export SVDIR="$HOME/.local/share/wayland-services"
exec vsv "$@"
#!/bin/execlineb -S0
importas -D /home/ericonr HOME HOME
export SVDIR ${HOME}/.local/share/wayland-services
vsv $@

View File

@ -1,3 +1,3 @@
#!/bin/sh
#!/bin/execlineb -S0
# ericonr's script for launching applications
exec wofi -i -t alacritty "$@"
wofi -i -t alacritty $@

View File

@ -1,3 +1,5 @@
#!/bin/sh
exec mpv "$(wl-paste)"
#!/bin/execlineb -P
backtick -n LINK
{ wl-paste --no-newline }
importas -u LINK LINK
mpv $LINK