a decent working guix config

This commit is contained in:
Chris Cochrun 2023-06-23 10:02:12 -05:00
parent ae77d05e2f
commit 0ebbec7644
22 changed files with 2302 additions and 279 deletions

View file

@ -1,5 +1,7 @@
#!/bin/sh
hyprctl dispatch focuswindow emacs
# Check to see if an emacsclient is running
if [ $(pgrep -c emacsclient) -gt 0 ]; then
echo hi
@ -22,13 +24,13 @@ if [ $(pgrep -c emacsclient) -gt 0 ]; then
exit
else
echo WAYLAND
emacsrg=$(wlrctl window list | rg "emacs:" | rg -v dired)
emacsrg=$(hyprctl clients | rg "emacs:" | rg -v dired)
echo $emacsrg
emacswin=$(echo $emacsrg | sed 's/.*\: //')
echo $emacswin
exec wlrctl toplevel focus title:"$emacswin"
exec hyprctl dispatch focuswindow emacs
exit
fi
fi