Improved external rules and fixed inconsistent browser names

This commit is contained in:
edwark43
2025-03-20 15:56:34 -04:00
parent dd6bae7680
commit e699a4f327
4 changed files with 22 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ wid=$1
class=$2
instance=$3
consequences=$4
title="$(xdotool getwindowname "$wid")"
outcome() {
eval "$consequences"
@@ -28,3 +29,12 @@ case "$class" in
outcome "state=floating rectangle=900x700+0+0 center=on"
;;
esac
case "$title" in
"Steam Settings")
outcome "state=floating center=on"
;;
"Prism Launcher: Staff Client Modloader")
outcome "state=fullscreen"
;;
esac

View File

@@ -32,14 +32,17 @@ case "$1" in
--fetch)
alacritty --hold --class floaterm,alacritty -o window.dimensions.lines=21 window.dimensions.columns=90 -e neofetch
;;
--nodeselector)
--nodeselector)
alacritty --class floaterm,alacritty -o window.dimensions.lines=21 window.dimensions.columns=90 -e nodeselector
;;
--browser)
cachy-browser
librewolf
;;
--osmc)
prismlauncher -l b1.7.3
--minecraft)
prismlauncher -l staff-client
;;
--steam)
"$HOME"/.millennium/start.sh
;;
*)
echo "Not a Valid Option"