From a7409dccc57f1e47211684c943c217eaa795d1c9 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 19 Oct 2023 09:48:44 -0500 Subject: [PATCH] remove texlive for now, add in steam --- guix/home.scm | 3 ++- scripts/window.sh | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/guix/home.scm b/guix/home.scm index 0291ffc..08144db 100644 --- a/guix/home.scm +++ b/guix/home.scm @@ -135,7 +135,7 @@ ;; "tracker" ;; "tracker-miners" "gvfs" - "texlive" + ;; "texlive" ;; "texlive-pdfx" ;; "texlive-latex-pdfx" "jmtpfs" @@ -210,6 +210,7 @@ "libreoffice" "swaylock-effects" "swayidle" + "steam" ;; "tridactyl-native" ;; Fonts diff --git a/scripts/window.sh b/scripts/window.sh index 85ab336..c257a0a 100755 --- a/scripts/window.sh +++ b/scripts/window.sh @@ -1,15 +1,16 @@ #!/usr/bin/env bash -window=$(wlrctl window list | rofi -i -sync -dmenu -p " " -theme ~/.config/rofi/launchers-git/laptop-rbw-wayland.rasi) +json=$(hyprctl clients -j) +window=$(echo $json | jq .[].title | rofi -i -sync -dmenu -p " " -theme ~/.config/rofi/launchers-git/laptop-rbw-wayland.rasi) echo $window -win=$(echo $window | awk '{print $1}' | sed 's/://') +win=$(echo $json | jq ".[] | select(.title==$window).address" | sed 's/"//g') echo $win if [ ! -z "$win" ] then - wlrctl window focus $win + hyprctl dispatch focuswindow address:$win fi