💄 style(hypr): 2 spaces of formatting
This commit is contained in:
parent
98d9c9167d
commit
3371ac471d
1 changed files with 12 additions and 12 deletions
|
@ -4,28 +4,28 @@ floating=$(hyprctl activewindow -j | jq '.floating')
|
||||||
window=$(hyprctl activewindow -j | jq '.initialClass' | tr -d "\"")
|
window=$(hyprctl activewindow -j | jq '.initialClass' | tr -d "\"")
|
||||||
|
|
||||||
function toggle() {
|
function toggle() {
|
||||||
width=$1
|
width=$1
|
||||||
height=$2
|
height=$2
|
||||||
|
|
||||||
hyprctl --batch "dispatch togglefloating; dispatch resizeactive exact ${width} ${height}; dispatch centerwindow"
|
hyprctl --batch "dispatch togglefloating; dispatch resizeactive exact ${width} ${height}; dispatch centerwindow"
|
||||||
}
|
}
|
||||||
|
|
||||||
function untoggle() {
|
function untoggle() {
|
||||||
hyprctl dispatch togglefloating
|
hyprctl dispatch togglefloating
|
||||||
}
|
}
|
||||||
|
|
||||||
function handle() {
|
function handle() {
|
||||||
width=$1
|
width=$1
|
||||||
height=$2
|
height=$2
|
||||||
|
|
||||||
if [ "$floating" == "false" ]; then
|
if [ "$floating" == "false" ]; then
|
||||||
toggle "$width" "$height"
|
toggle "$width" "$height"
|
||||||
else
|
else
|
||||||
untoggle
|
untoggle
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
case $window in
|
case $window in
|
||||||
kitty) handle "50%" "55%" ;;
|
kitty) handle "50%" "55%" ;;
|
||||||
*) handle "65%" "70%" ;;
|
*) handle "70%" "70%" ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Reference in a new issue