Browse Source

fix #936

pull/1065/head
Luke Smith 7 months ago
parent
commit
c08c3a2fb0
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252
  1. 2
      .config/shell/profile
  2. 2
      .local/bin/compiler
  3. 6
      .local/bin/sysact

2
.config/shell/profile

@ -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

2
.local/bin/compiler

@ -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

6
.local/bin/sysact

@ -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

Loading…
Cancel
Save