mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
style: make shell scripts follow shfmt
This commit is contained in:
parent
2a4740b6c9
commit
437bc79968
11 changed files with 167 additions and 139 deletions
|
|
@ -1,10 +1,11 @@
|
|||
SHARESCREEN="$(nix eval --raw ~/.dotfiles#nixosConfigurations."$(hostname)".config.home-manager.users."$(whoami)".swarselsystems.sharescreen)"
|
||||
|
||||
touch /tmp/screenshare.state
|
||||
STATE=$(</tmp/screenshare.state)
|
||||
STATE=$(< /tmp/screenshare.state)
|
||||
|
||||
if [[ "$STATE" != "1" ]]; then
|
||||
wl-mirror "$SHARESCREEN" & sleep 0.1
|
||||
if [[ $STATE != "1" ]]; then
|
||||
wl-mirror "$SHARESCREEN" &
|
||||
sleep 0.1
|
||||
swaymsg output "$SHARESCREEN" mode "$SWARSEL_LO_RES"
|
||||
echo 1 > /tmp/screenshare.state
|
||||
swaymsg '[app_id=at.yrlf.wl_mirror] move to workspace 12:S'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue