Compare commits
7 Commits
f242b3edf1
...
c51a137efe
Author | SHA1 | Date | |
---|---|---|---|
c51a137efe | |||
1977d0d202 | |||
7c00b37a80 | |||
0c8c2275f7 | |||
e6791d0a1f | |||
79777b134e | |||
2171a57659 |
@@ -9,20 +9,20 @@
|
||||
rotate_lisgd = pkgs.writeShellScriptBin "rotate_lisgd" ''
|
||||
# PREV_ORIENTATION and ORIENTATION are given by rot8
|
||||
|
||||
LISGD_INPUT=/dev/input/event14
|
||||
# open nwggrid by swiping up from the bottom edge
|
||||
LISGD_ACTIONS=("1,DU,B,*,R,${pkgs.sway}/bin/swaymsg exec ${pkgs.nwg-launchers}/bin/nwggrid -client")
|
||||
# close window by swiping down with 3 fingers
|
||||
LISGD_ACTIONS+=("3,UD,*,L,R,${pkgs.sway}/bin/swaymsg kill")
|
||||
LISGD_INPUT=/dev/input/by-path/platform-AMDI0010:02-event
|
||||
# open nwggrid by swiping down with 3 fingers
|
||||
LISGD_ACTIONS=("3,UD,*,*,R,${pkgs.nwg-launchers}/bin/nwggrid -client")
|
||||
# close window by swiping up with 3 fingers
|
||||
LISGD_ACTIONS+=("3,DU,*,M,R,${pkgs.sway}/bin/swaymsg kill")
|
||||
|
||||
# move window left by swiping left with 2 fingers
|
||||
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.sway}/bin/swaymsg move left")
|
||||
LISGD_ACTIONS+=("2,RL,*,*,R,${pkgs.sway}/bin/swaymsg move left")
|
||||
# move window down by swiping down with 2 fingers
|
||||
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.sway}/bin/swaymsg move down")
|
||||
# move window up by swiping up with 2 fingers
|
||||
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.sway}/bin/swaymsg move up")
|
||||
LISGD_ACTIONS+=("2,DU,*,*,R,${pkgs.sway}/bin/swaymsg move up")
|
||||
# move window right by swiping right with 2 fingers
|
||||
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.sway}/bin/swaymsg move right")
|
||||
LISGD_ACTIONS+=("2,LR,*,*,R,${pkgs.sway}/bin/swaymsg move right")
|
||||
|
||||
LISGD_ACTION_OPTIONS=()
|
||||
for str in "''${LISGD_ACTIONS[@]}"; do
|
||||
|
@@ -222,6 +222,28 @@ in {
|
||||
))
|
||||
];
|
||||
}
|
||||
{
|
||||
profile.outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
position = "1920,0";
|
||||
}
|
||||
{
|
||||
criteria = "ASUSTek COMPUTER INC ASUS MB16AH R4LMTF099783";
|
||||
position = "0,0";
|
||||
}
|
||||
];
|
||||
profile.exec = [
|
||||
(sway_commands (
|
||||
(workspace "obsidian" "eDP-1")
|
||||
++ (workspace "5" "eDP-1")
|
||||
++ (workspace "music" "ASUSTek COMPUTER INC ASUS MB16AH R4LMTF099783")
|
||||
++ (workspace "msg" "ASUSTek COMPUTER INC ASUS MB16AH R4LMTF099783")
|
||||
++ (workspace "term" "ASUSTek COMPUTER INC ASUS MB16AH R4LMTF099783")
|
||||
++ (workspace "main" "eDP-1")
|
||||
))
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@@ -144,5 +144,9 @@ in {
|
||||
};
|
||||
style = ./waybar.css;
|
||||
};
|
||||
home.packages = with pkgs;
|
||||
lib.mkIf cfg.squeekboard [
|
||||
glib
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user