mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Compare commits
15 Commits
49dbc25330
...
1cfbaa41f5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1cfbaa41f5 | ||
|
|
031938a792 | ||
|
|
ea3e1e14cc | ||
|
|
0cc589bcad | ||
|
|
6ba48b2733 | ||
|
|
1e3adf9c03 | ||
|
|
ca8cb1f6a7 | ||
|
|
54c0aa2af8 | ||
|
|
bca6b403eb | ||
|
|
42f3efb4b0 | ||
|
|
00706b029c | ||
|
|
2cf931d00d | ||
|
|
a411c2fa9b | ||
|
|
d5265a63b3 | ||
|
|
8ab39df89a |
@ -58,7 +58,22 @@ cmd extract ${{
|
|||||||
printf "%s\n\t" "$fx"
|
printf "%s\n\t" "$fx"
|
||||||
printf "extract?[y/N]"
|
printf "extract?[y/N]"
|
||||||
read ans
|
read ans
|
||||||
[ $ans = "y" ] && aunpack $fx
|
[ $ans = "y" ] && {
|
||||||
|
case $fx in
|
||||||
|
*.tar.bz2) tar xjf $fx ;;
|
||||||
|
*.tar.gz) tar xzf $fx ;;
|
||||||
|
*.bz2) bunzip2 $fx ;;
|
||||||
|
*.rar) unrar e $fx ;;
|
||||||
|
*.gz) gunzip $fx ;;
|
||||||
|
*.tar) tar xf $fx ;;
|
||||||
|
*.tbz2) tar xjf $fx ;;
|
||||||
|
*.tgz) tar xzf $fx ;;
|
||||||
|
*.zip) unzip $fx ;;
|
||||||
|
*.Z) uncompress $fx ;;
|
||||||
|
*.7z) 7z x $fx ;;
|
||||||
|
*.tar.xz) tar xf $fx ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd delete ${{
|
cmd delete ${{
|
||||||
|
|||||||
1
.config/sxiv
Symbolic link
1
.config/sxiv
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
nsxiv
|
||||||
@ -13,5 +13,6 @@ if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then
|
|||||||
else
|
else
|
||||||
. "$HOME/.xprofile"
|
. "$HOME/.xprofile"
|
||||||
fi
|
fi
|
||||||
|
# Activate dbus variables
|
||||||
|
dbus-update-activation-environment --all
|
||||||
ssh-agent dwm
|
ssh-agent dwm
|
||||||
|
|||||||
@ -33,19 +33,36 @@ twoscreen() { # If multi-monitor is selected and there are two screens.
|
|||||||
|
|
||||||
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
||||||
secondary=$(echo "$screens" | grep -v "$primary")
|
secondary=$(echo "$screens" | grep -v "$primary")
|
||||||
direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
|
direction=$(printf "left-of\\nbelow\\nabove\\nright-of" | dmenu -i -p "What side of $primary should $secondary be on?")
|
||||||
xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.0x1.0
|
xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction" "$primary" --auto --scale 1.0x1.0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
morescreen() { # If multi-monitor is selected and there are more than two screens.
|
morescreen() { # If multi-monitor is selected and there are more than two screens.
|
||||||
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
|
||||||
secondary=$(echo "$screens" | grep -v "$primary" | dmenu -i -p "Select secondary display:")
|
secondary=$(echo "$screens" | grep -v "$primary" | dmenu -i -p "Select secondary display:")
|
||||||
direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
|
direction=$(printf "left-of\\nbelow\\nabove\\nright-of" | dmenu -i -p "What side of $primary should $secondary be on?")
|
||||||
tertiary=$(echo "$screens" | grep -v "$primary" | grep -v "$secondary" | dmenu -i -p "Select third display:")
|
tertiary=$(echo "$screens" | grep -v "$primary" | grep -v "$secondary" | dmenu -i -p "Select third display:")
|
||||||
xrandr --output "$primary" --auto --output "$secondary" --"$direction"-of "$primary" --auto --output "$tertiary" --"$(printf "left\\nright" | grep -v "$direction")"-of "$primary" --auto
|
tertiary_placement=$(echo "$screens" | grep -v "$tertiary" | dmenu -i -p "Around which display should $tertiary be on?")
|
||||||
|
tertiary_direction=$(printf "$(whichprimary "$tertiary_placement" "$primary" "$direction")" | dmenu -i -p "What side of $tertiary_placement should $tertiary be on?")
|
||||||
|
xrandr --output "$primary" --auto --output "$secondary" --"$direction" "$primary" --auto --output "$tertiary" --"$tertiary_direction" "$tertiary_placement" --auto
|
||||||
}
|
}
|
||||||
|
|
||||||
|
whichprimary() { # Check done in order to verify direction inconsistencies in case of choosing tertiary display around the primary one
|
||||||
|
if [ "$tertiary_placement" == "$primary" ]; then
|
||||||
|
printf "left-of\\nbelow\\nabove\\nright-of" | grep -v $direction;
|
||||||
|
else
|
||||||
|
printf "left-of\\nbelow\\nabove\\nright-of" | grep -v "$(sideavailability "$direction")";
|
||||||
|
fi ;}
|
||||||
|
|
||||||
|
sideavailability() { # Gives the opposite side available in case of tertiary display being around the secondary one
|
||||||
|
case "$(printf "left-of\\nbelow\\nabove\\nright-of" | grep -v $1)" in
|
||||||
|
"left-of") printf "right-of";;
|
||||||
|
"below") printf "above";;
|
||||||
|
"above") printf "below";;
|
||||||
|
"right-of") printf "left-of";;
|
||||||
|
esac ;}
|
||||||
|
|
||||||
multimon() { # Multi-monitor handler.
|
multimon() { # Multi-monitor handler.
|
||||||
case "$(echo "$screens" | wc -l)" in
|
case "$(echo "$screens" | wc -l)" in
|
||||||
2) twoscreen ;;
|
2) twoscreen ;;
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
#
|
#
|
||||||
# If there is already a running instance, user will be prompted to end it.
|
# If there is already a running instance, user will be prompted to end it.
|
||||||
|
|
||||||
getdim() { xrandr | sed -n "s/\s*\([0-9]\+x[0-9]\+\).*\*.*/\1/p" ;}
|
getdim() { xrandr | grep -oP '(?<=current ).*(?=,)' | tr -d ' ' ;}
|
||||||
|
|
||||||
updateicon() { \
|
updateicon() { \
|
||||||
echo "$1" > /tmp/recordingicon
|
echo "$1" > /tmp/recordingicon
|
||||||
|
|||||||
@ -36,7 +36,7 @@ filter() { sed "s/ /:/g" | awk -F':' '$7==""{printf "%s%s (%s) %s\n",$1,$3,$5,$6
|
|||||||
unopenedluks="$(for drive in $allluks; do
|
unopenedluks="$(for drive in $allluks; do
|
||||||
uuid="${drive%% *}"
|
uuid="${drive%% *}"
|
||||||
uuid="${uuid//-}" # This is a bashism.
|
uuid="${uuid//-}" # This is a bashism.
|
||||||
for open in $decrypted; do
|
[ -n "$decrypted" ] && for open in $decrypted; do
|
||||||
[ "$uuid" = "$open" ] && break 1
|
[ "$uuid" = "$open" ] && break 1
|
||||||
done && continue 1
|
done && continue 1
|
||||||
echo "🔒 $drive"
|
echo "🔒 $drive"
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
# When clicked, brings up `neomutt`.
|
# When clicked, brings up `neomutt`.
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) setsid -f "$TERMINAL" -e neomutt ;;
|
1) setsid -w -f "$TERMINAL" -e neomutt; pkill -RTMIN+12 "${STATUSBAR:-dwmblocks}" ;;
|
||||||
2) setsid -f mw -Y >/dev/null ;;
|
2) setsid -f mw -Y >/dev/null ;;
|
||||||
3) notify-send "📬 Mail module" "\- Shows unread mail
|
3) notify-send "📬 Mail module" "\- Shows unread mail
|
||||||
- Shows 🔃 if syncing mail
|
- Shows 🔃 if syncing mail
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
filter() { sed "/^volume:/d;s/\\&/&/g;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d;/^ERROR/Q" | paste -sd ' ' -;}
|
filter() { sed "/^volume:/d;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d;/^ERROR/Q" | paste -sd ' ' -;}
|
||||||
|
|
||||||
pidof -x sb-mpdup >/dev/null 2>&1 || sb-mpdup >/dev/null 2>&1 &
|
pidof -x sb-mpdup >/dev/null 2>&1 || sb-mpdup >/dev/null 2>&1 &
|
||||||
|
|
||||||
|
|||||||
3
.local/bin/xdg-terminal-exec
Executable file
3
.local/bin/xdg-terminal-exec
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
"$TERMINAL" -e "$@"
|
||||||
Loading…
x
Reference in New Issue
Block a user