From ad853af43b2cc3768419d493b7d041c48566110b Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 14 Sep 2022 00:04:20 +0100 Subject: (SXHkD|Scripts)~changed some details ~ made emacsclient calls with no alternate editors in eselect (confidence in server) ~ made notmuch option on eselect actually work properly ~ adjusted icons in status scripts --- SXHkD/.config/sxhkd/sxhkdrc | 5 +---- Scripts/.local/scripts/eselect | 6 +++--- Scripts/.local/scripts/status/connection | 2 +- Scripts/.local/scripts/status/music | 4 ++-- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/SXHkD/.config/sxhkd/sxhkdrc b/SXHkD/.config/sxhkd/sxhkdrc index 8166f5c..43534b5 100644 --- a/SXHkD/.config/sxhkd/sxhkdrc +++ b/SXHkD/.config/sxhkd/sxhkdrc @@ -15,10 +15,7 @@ super + a dmenu_run super + e - $HOME/.local/scripts/emacs_curl; - -super + E - $HOME/.emacs_anywhere/bin/run + emacsclient --eval '(emacs-everywhere)'; super + s notify-send -u low "Launching browser"; \ diff --git a/Scripts/.local/scripts/eselect b/Scripts/.local/scripts/eselect index cfe58c9..8759896 100755 --- a/Scripts/.local/scripts/eselect +++ b/Scripts/.local/scripts/eselect @@ -9,11 +9,11 @@ case "$(printf "new\nstop\nrestart\neshell\nmail" | dmenu -p "eserver: ")" in notify-send "Halted Emacs server";; "new") notify-send "Launching Emacs"; - emacsclient -c --alternate-editor=emacs;; + emacsclient -c;; "eshell") notify-send "Launching Eshell"; - emacsclient -c --alternate-editor=emacs --eval '(let ((b (or (get-buffer "*eshell*") (eshell)))) (switch-to-buffer b))';; + emacsclient -c --eval '(let ((b (or (get-buffer "*eshell*") (eshell)))) (switch-to-buffer b))';; "mail") notify-send "Launching notmuch"; - emacsclient -c --alternate-editor=emacs --eval '(let ((b (or (get-buffer "*notmuch-hello*") (notmuch)))) (switch-to-buffer b))';; + emacsclient -c --eval '(let ((b (or (get-buffer "*notmuch-hello*") (progn (notmuch) (get-buffer "*notmuch-hello*"))))) (switch-to-buffer b))';; esac diff --git a/Scripts/.local/scripts/status/connection b/Scripts/.local/scripts/status/connection index 301797b..8e4ebf3 100755 --- a/Scripts/.local/scripts/status/connection +++ b/Scripts/.local/scripts/status/connection @@ -4,7 +4,7 @@ internet=$(nmcli g | sed -n 2p | awk '{print $1}') if [[ $internet == "connected" ]] then con=$(nmcli | grep "connected to" | sed 's/.*: connected to \(.*\)/\1/g') - echo " " $con + echo "" $con else echo " Not Connected" fi diff --git a/Scripts/.local/scripts/status/music b/Scripts/.local/scripts/status/music index 9c982e0..6d09868 100755 --- a/Scripts/.local/scripts/status/music +++ b/Scripts/.local/scripts/status/music @@ -1,4 +1,4 @@ #!/usr/bin/env bash -title=$(playerctl --player=spotify metadata title) -echo "${title::40}" +title=$(playerctl --player=spotify metadata title | cut -c 1-30) +echo " $title" -- cgit v1.2.3-13-gbd6f