fix #936
This commit is contained in:
parent
5f3576da16
commit
c08c3a2fb0
3 changed files with 5 additions and 5 deletions
|
@ -148,7 +148,7 @@ if pacman -Qs libxft-bgra >/dev/null 2>&1; then
|
||||||
else
|
else
|
||||||
echo "\033[31mIMPORTANT\033[0m: Note that \033[32m\`libxft-bgra\`\033[0m must be installed for this build of dwm.
|
echo "\033[31mIMPORTANT\033[0m: Note that \033[32m\`libxft-bgra\`\033[0m must be installed for this build of dwm.
|
||||||
Please run:
|
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\`."
|
and replace \`libxft\`. Afterwards, you may start the graphical server by running \`startx\`."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ case "$ext" in
|
||||||
java) javac -d classes "$file" && java -cp classes "${1%.*}" ;;
|
java) javac -d classes "$file" && java -cp classes "${1%.*}" ;;
|
||||||
m) octave "$file" ;;
|
m) octave "$file" ;;
|
||||||
md) if [ -x "$(command -v lowdown)" ]; then
|
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
|
elif [ -x "$(command -v groffdown)" ]; then
|
||||||
groffdown -i "$file" | groff > "$base.pdf"
|
groffdown -i "$file" | groff > "$base.pdf"
|
||||||
else
|
else
|
||||||
|
|
|
@ -5,14 +5,14 @@ case "$(readlink -f /sbin/init)" in
|
||||||
*) ctl='loginctl' ;;
|
*) ctl='loginctl' ;;
|
||||||
esac
|
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 ;;
|
'🔒 lock') slock ;;
|
||||||
'🚪 leave dwm') kill -TERM "$(pgrep -u "$USER" "\bdwm$")" ;;
|
'🚪 leave dwm') kill -TERM "$(pgrep -u "$USER" "\bdwm$")" ;;
|
||||||
'♻️ renew dwm') kill -HUP "$(pgrep -u "$USER" "\bdwm$")" ;;
|
'♻️ renew dwm') kill -HUP "$(pgrep -u "$USER" "\bdwm$")" ;;
|
||||||
'🐻 hibernate') slock $ctl hibernate ;;
|
'🐻 hibernate') slock $ctl hibernate ;;
|
||||||
'💤 sleep') slock $ctl suspend ;;
|
'💤 sleep') slock $ctl suspend ;;
|
||||||
'🔃 reboot') $ctl reboot ;;
|
'🔃 reboot') $ctl reboot -i ;;
|
||||||
'🖥️shutdown') $ctl poweroff ;;
|
'🖥️shutdown') $ctl powerof -if ;;
|
||||||
'📺 display off') xset dpms force off ;;
|
'📺 display off') xset dpms force off ;;
|
||||||
*) exit 1 ;;
|
*) exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue