aboutsummaryrefslogtreecommitdiff
path: root/Scripts
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-09-08 02:53:02 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-09-08 02:53:02 +0100
commit47e7501fb672f7ef2e113f6f33b5e93fd22d684f (patch)
tree91aa7ceeb852850b8935fd017cdb49c6b6d0986b /Scripts
parentdf4d28987d9f3e8a44e3145960539228a3b7a897 (diff)
downloaddotfiles-47e7501fb672f7ef2e113f6f33b5e93fd22d684f.tar.gz
dotfiles-47e7501fb672f7ef2e113f6f33b5e93fd22d684f.tar.bz2
dotfiles-47e7501fb672f7ef2e113f6f33b5e93fd22d684f.zip
(Scripts)~minor adjustments
Diffstat (limited to 'Scripts')
-rwxr-xr-xScripts/.local/scripts/eselect4
-rwxr-xr-xScripts/.local/scripts/labelled_terminals2
-rwxr-xr-xScripts/.local/scripts/status/battery2
3 files changed, 4 insertions, 4 deletions
diff --git a/Scripts/.local/scripts/eselect b/Scripts/.local/scripts/eselect
index b717dc0..4c8de15 100755
--- a/Scripts/.local/scripts/eselect
+++ b/Scripts/.local/scripts/eselect
@@ -4,10 +4,10 @@ case "$(printf "new\nstop\nrestart\neshell\nmail" | dmenu -p "eserver: ")" in
"restart")
emacsclient --eval "(save-buffers-kill-emacs)" && \
emacs --bg-daemon && \
- notify-send "eselect: Restarted Emacs server";;
+ notify-send "eselect: Restarted server";;
"stop")
emacsclient --eval "(save-buffers-kill-emacs)" && \
- notify-send "eselect: Halted Emacs server";;
+ notify-send "eselect: Halted server";;
"new")
notify-send "eselect: Launching Emacs" && \
emacsclient -c -a "";;
diff --git a/Scripts/.local/scripts/labelled_terminals b/Scripts/.local/scripts/labelled_terminals
index 2f72a95..1cb5873 100755
--- a/Scripts/.local/scripts/labelled_terminals
+++ b/Scripts/.local/scripts/labelled_terminals
@@ -3,5 +3,5 @@
for v in $(seq 1 $1)
do
$TERMINAL -e sh -c "figlet ${v} && echo \"Press any key to exit...\" && read" &
- sleep 0.5
+ sleep 0.3
done
diff --git a/Scripts/.local/scripts/status/battery b/Scripts/.local/scripts/status/battery
index adf1f03..f2b887e 100755
--- a/Scripts/.local/scripts/status/battery
+++ b/Scripts/.local/scripts/status/battery
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
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);
+status=""
if [[ $status == "Charging" ]]
then
status=""