mirror of https://github.com/ericonr/dotfiles.git
Move a lot of stuff to execline.
Also change spt to a symlink.
This commit is contained in:
parent
5e952f0692
commit
fe79487522
|
@ -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 $@
|
||||
|
|
|
@ -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 $@
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
#!/bin/execlineb -P
|
||||
# https://www.tecmint.com/find-open-ports-in-linux/
|
||||
exec netstat -lntu
|
||||
netstat -lntu
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
#!/bin/sh
|
||||
xpkg -a | fzf --reverse --cycle --preview 'xq {}'
|
||||
#!/bin/execlineb -P
|
||||
pipeline
|
||||
{ xpkg -a }
|
||||
fzf --reverse --cycle --preview "xq {}"
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
#!/bin/sh
|
||||
|
||||
GTK_THEME=cdetheme exec castor "$@"
|
||||
#!/bin/execlineb -S0
|
||||
export GTK_THEME cdetheme castor $@
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec playerctl --player=playerctld "$@"
|
||||
#!/bin/execlineb -S0
|
||||
playerctl --player=playerctld $@
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
swaysv up spotifyd
|
||||
#!/bin/execlineb -P
|
||||
foreground
|
||||
{ swaysv up spotifyd }
|
||||
swaysv reload spotifyd
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
SPT=/usr/bin/spt
|
||||
command -v spotify-tui && SPT=spotify-tui
|
||||
exec $SPT
|
|
@ -0,0 +1 @@
|
|||
/usr/bin/spotify-tui
|
|
@ -1,3 +1,2 @@
|
|||
#!/bin/sh
|
||||
|
||||
#!/bin/execlineb -P
|
||||
xset b off
|
||||
|
|
|
@ -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)"
|
||||
|
|
|
@ -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 "$@"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
#!/bin/execlineb -S0
|
||||
# floating editor launcher
|
||||
|
||||
exec generic-launcher nvim "$@"
|
||||
generic-launcher nvim $@
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec generic-launcher iwctl
|
||||
#!/bin/execlineb -P
|
||||
generic-launcher iwctl
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 $@
|
||||
|
|
|
@ -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 $@
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
#!/bin/execlineb -S0
|
||||
# ericonr's script for launching applications
|
||||
exec wofi -i -t alacritty "$@"
|
||||
wofi -i -t alacritty $@
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue