Improved external rules and fixed inconsistent browser names
This commit is contained in:
@@ -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
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user