Skip to content

Instantly share code, notes, and snippets.

@DeityLamb
Last active July 13, 2023 16:51
Show Gist options
  • Select an option

  • Save DeityLamb/01def51d9e01cf234d7acbfa676072f0 to your computer and use it in GitHub Desktop.

Select an option

Save DeityLamb/01def51d9e01cf234d7acbfa676072f0 to your computer and use it in GitHub Desktop.
run application as floating in swaywm
#!/bin/bash
# [usage examples]
# sh ./floating.sh kitty -e "htop"
# sh ./floating.sh kitty -e "ranger"
$@ &
swaymsg "for_window [pid=\"$!\"] floating enable"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment