Update all dotfiles
This commit is contained in:
5
configs/dotfiles/hyprland/laptop_default/.config/ml4w/scripts/wlogout.sh
Executable file
5
configs/dotfiles/hyprland/laptop_default/.config/ml4w/scripts/wlogout.sh
Executable file
@ -0,0 +1,5 @@
|
||||
res_w=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .width')
|
||||
res_h=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .height')
|
||||
h_scale=$(hyprctl -j monitors | jq '.[] | select (.focused == true) | .scale' | sed 's/\.//')
|
||||
w_margin=$(( res_h * 27 / h_scale ))
|
||||
wlogout -b 5 -T $w_margin -B $w_margin
|
Reference in New Issue
Block a user