Compare commits

..

11 Commits

3 changed files with 55 additions and 16 deletions

View File

@ -132,6 +132,10 @@
}; };
services.blueman.enable = true; services.blueman.enable = true;
services.udev.extraRules = ''
ACTION=="add", KERNEL=="event[0-9]*", DEVPATH="/devices/platform/AMDI0010:02/i2c-2/i2c-ELAN2513:00/0018:04F3:2D9C.0001/input/input[0-9]*/event[0-9]*", SYMLINK+="touchscreen0"
'';
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
# services.openssh.enable = true; # services.openssh.enable = true;

View File

@ -66,6 +66,11 @@
}) })
vesktop vesktop
libreoffice-fresh libreoffice-fresh
mate.caja
kdePackages.okular
mpv
gimp
freecad
]; ];
home.sessionVariables = { home.sessionVariables = {

View File

@ -26,20 +26,20 @@
rotate_lisgd = pkgs.writeShellScriptBin "rotate_lisgd" '' rotate_lisgd = pkgs.writeShellScriptBin "rotate_lisgd" ''
# PREV_ORIENTATION and ORIENTATION are given by rot8 # PREV_ORIENTATION and ORIENTATION are given by rot8
LISGD_INPUT=/dev/input/by-path/platform-AMDI0010:02-event LISGD_INPUT=/dev/input/event14
# open nwggrid (Meta+D) by swiping up from the bottom edge # open nwggrid by swiping up from the bottom edge
LISGD_ACTIONS=("1,DU,B,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 32:1 32:0 125:0") LISGD_ACTIONS=("1,DU,B,*,R,${pkgs.sway}/bin/swaymsg exec ${pkgs.nwg-launchers}/bin/nwggrid -client")
# close window (Meta+Shift+Q) by swiping down with 3 fingers # close window by swiping down with 3 fingers
LISGD_ACTIONS+=("3,UD,*,L,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 16:1 16:0 42:0 125:0") LISGD_ACTIONS+=("3,UD,*,L,R,${pkgs.sway}/bin/swaymsg kill")
# move window left (Meta+Shift+H) by swiping left with 2 fingers # move window left by swiping left with 2 fingers
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 35:1 35:0 42:0 125:0") LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.sway}/bin/swaymsg move left")
# move window down (Meta+Shift+J) by swiping down with 2 fingers # move window down by swiping down with 2 fingers
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 36:1 36:0 42:0 125:0") LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.sway}/bin/swaymsg move down")
# move window up (Meta+Shift+K) by swiping up with 2 fingers # move window up by swiping up with 2 fingers
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 37:1 37:0 42:0 125:0") LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.sway}/bin/swaymsg move up")
# move window right (Meta+Shift+L) by swiping right with 2 fingers # move window right by swiping right with 2 fingers
LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.ydotool}/bin/ydotool key 125:1 42:1 38:1 38:0 42:0 125:0") LISGD_ACTIONS+=("2,UD,*,*,R,${pkgs.sway}/bin/swaymsg move right")
LISGD_ACTION_OPTIONS=() LISGD_ACTION_OPTIONS=()
for str in "''${LISGD_ACTIONS[@]}"; do for str in "''${LISGD_ACTIONS[@]}"; do
@ -105,6 +105,12 @@ in {
DP-5 = { DP-5 = {
bg = "'${bg1080vert}' fit"; bg = "'${bg1080vert}' fit";
}; };
DP-6 = {
bg = "'${bg1080}' fit";
};
DP-7 = {
bg = "'${bg1080vert}' fit";
};
}; };
input = { input = {
@ -202,11 +208,11 @@ in {
workspaceOutputAssign = [ workspaceOutputAssign = [
{ {
workspace = "main"; workspace = "main";
output = ["DP-4" "HDMI-A-1" "eDP-1"]; output = ["DP-4" "DP-6" "HDMI-A-1" "eDP-1"];
} }
{ {
workspace = "term"; workspace = "term";
output = ["DP-5" "eDP-1"]; output = ["DP-5" "DP-7" "eDP-1"];
} }
{ {
workspace = "msg"; workspace = "msg";
@ -218,7 +224,7 @@ in {
} }
{ {
workspace = "5"; workspace = "5";
output = ["DP-4" "HDMI-A-1" "eDP-1"]; output = ["DP-4" "DP-6" "HDMI-A-1" "eDP-1"];
} }
]; ];
@ -433,6 +439,30 @@ in {
"${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-4" "${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-4"
]; ];
}; };
dock_luhbots3 = {
outputs = [
{
criteria = "eDP-1";
position = "0,1080";
}
{
criteria = "Dell Inc. DELL U2422HE 53DCH83";
position = "0,0";
}
{
criteria = "Dell Inc. DELL U2412M 0FFXD46I4U5S";
transform = "90";
position = "1920,0";
}
];
exec = [
"${pkgs.sway}/bin/swaymsg workspace 1, move workspace to DP-6"
"${pkgs.sway}/bin/swaymsg workspace 2, move workspace to DP-7"
"${pkgs.sway}/bin/swaymsg workspace 3, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 4, move workspace to eDP-1"
"${pkgs.sway}/bin/swaymsg workspace 5, move workspace to DP-6"
];
};
laptop_hannspree = { laptop_hannspree = {
outputs = [ outputs = [
{ {