(Scripts)~minor adjustments
This commit is contained in:
@@ -4,10 +4,10 @@ case "$(printf "new\nstop\nrestart\neshell\nmail" | dmenu -p "eserver: ")" in
|
|||||||
"restart")
|
"restart")
|
||||||
emacsclient --eval "(save-buffers-kill-emacs)" && \
|
emacsclient --eval "(save-buffers-kill-emacs)" && \
|
||||||
emacs --bg-daemon && \
|
emacs --bg-daemon && \
|
||||||
notify-send "eselect: Restarted Emacs server";;
|
notify-send "eselect: Restarted server";;
|
||||||
"stop")
|
"stop")
|
||||||
emacsclient --eval "(save-buffers-kill-emacs)" && \
|
emacsclient --eval "(save-buffers-kill-emacs)" && \
|
||||||
notify-send "eselect: Halted Emacs server";;
|
notify-send "eselect: Halted server";;
|
||||||
"new")
|
"new")
|
||||||
notify-send "eselect: Launching Emacs" && \
|
notify-send "eselect: Launching Emacs" && \
|
||||||
emacsclient -c -a "";;
|
emacsclient -c -a "";;
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
for v in $(seq 1 $1)
|
for v in $(seq 1 $1)
|
||||||
do
|
do
|
||||||
$TERMINAL -e sh -c "figlet ${v} && echo \"Press any key to exit...\" && read" &
|
$TERMINAL -e sh -c "figlet ${v} && echo \"Press any key to exit...\" && read" &
|
||||||
sleep 0.5
|
sleep 0.3
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
capacity=$(cat /sys/class/power_supply/BAT0/capacity) || break
|
capacity=$(cat /sys/class/power_supply/BAT0/capacity) || break
|
||||||
status=$(cat /sys/class/power_supply/BAT0/status)
|
|
||||||
time_left=$($HOME/.local/scripts/status/battery_time_left);
|
time_left=$($HOME/.local/scripts/status/battery_time_left);
|
||||||
|
|
||||||
|
status=""
|
||||||
if [[ $status == "Charging" ]]
|
if [[ $status == "Charging" ]]
|
||||||
then
|
then
|
||||||
status=""
|
status=""
|
||||||
|
|||||||
Reference in New Issue
Block a user