This commit is contained in:
Luke Smith 2022-01-21 19:27:56 -05:00
parent 5f3576da16
commit c08c3a2fb0
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252
3 changed files with 5 additions and 5 deletions

View file

@ -148,7 +148,7 @@ if pacman -Qs libxft-bgra >/dev/null 2>&1; then
else
echo "\033[31mIMPORTANT\033[0m: Note that \033[32m\`libxft-bgra\`\033[0m must be installed for this build of dwm.
Please run:
\033[32mparu -S libxft-bgra-git\033[0m
\033[32myay -S libxft-bgra-git\033[0m
and replace \`libxft\`. Afterwards, you may start the graphical server by running \`startx\`."
fi

View file

@ -37,7 +37,7 @@ case "$ext" in
java) javac -d classes "$file" && java -cp classes "${1%.*}" ;;
m) octave "$file" ;;
md) if [ -x "$(command -v lowdown)" ]; then
lowdown -d nointem -e super "$file" -Tms | groff -mpdfmark -ms -kept > "$base".pdf
lowdown --parse-no-intraemph "$file" -Tms | groff -mpdfmark -ms -kept > "$base".pdf
elif [ -x "$(command -v groffdown)" ]; then
groffdown -i "$file" | groff > "$base.pdf"
else

View file

@ -5,14 +5,14 @@ case "$(readlink -f /sbin/init)" in
*) ctl='loginctl' ;;
esac
case "$(printf "🔒 lock\n🚪 leave dwm\n♻ renew dwm\n🐻 hibernate\n💤 sleep\n🔃 reboot\n🖥shutdown\n📺 display off" | dmenu -i -p 'Action: ')" in
case "$(printf "🔒 lock\n🚪 leave dwm\n♻ renew dwm\n🐻 hibernate\n🔃 reboot\n🖥shutdown\n💤 sleep\n📺 display off" | dmenu -i -p 'Action: ')" in
'🔒 lock') slock ;;
'🚪 leave dwm') kill -TERM "$(pgrep -u "$USER" "\bdwm$")" ;;
'♻️ renew dwm') kill -HUP "$(pgrep -u "$USER" "\bdwm$")" ;;
'🐻 hibernate') slock $ctl hibernate ;;
'💤 sleep') slock $ctl suspend ;;
'🔃 reboot') $ctl reboot ;;
'🖥shutdown') $ctl poweroff ;;
'🔃 reboot') $ctl reboot -i ;;
'🖥shutdown') $ctl powerof -if ;;
'📺 display off') xset dpms force off ;;
*) exit 1 ;;
esac