a decent working guix config
This commit is contained in:
parent
ae77d05e2f
commit
0ebbec7644
22 changed files with 2302 additions and 279 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue