Add Niri, a scrolling tiling window manager.
This commit is contained in:
parent
325c176464
commit
b3d9d2f396
38 changed files with 758 additions and 376 deletions
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
home.packages = with pkgs; [
|
||||
(pkgs.writeScriptBin "swayshot" ''
|
||||
handle_swappy() {
|
||||
swappy() {
|
||||
# Create an imv window to act as a static screen
|
||||
grim -t jpeg -q 90 - | imv -w "GlobalShot" - & imv_pid=$!
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
|||
rm "$temp_file"
|
||||
}
|
||||
|
||||
handle_screen() {
|
||||
screen() {
|
||||
temp_file=$(mktemp -u).png
|
||||
grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') "$temp_file"
|
||||
|
||||
|
@ -33,9 +33,9 @@
|
|||
}
|
||||
|
||||
if [ "$1" == "--swappy" ]; then
|
||||
handle_swappy
|
||||
swappy
|
||||
elif [ "$1" == "--screen" ]; then
|
||||
handle_screen
|
||||
screen
|
||||
else
|
||||
echo "Please use the arguments --swappy or --screen."
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue