-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable middle mouse button click paste
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ in { | |
./dev.nix | ||
./steam.nix | ||
./ranger.nix | ||
./desel.nix | ||
|
||
#./ssh.nix | ||
./ssh_client.nix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Infrastructure config by ASCIIMoth | ||
# | ||
# To the extent possible under law, the person who associated CC0 with | ||
# this work has waived all copyright and related or neighboring rights | ||
# to it. | ||
# | ||
# You should have received a copy of the CC0 legalcode along with this | ||
# work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
{ | ||
config, | ||
pkgs, | ||
lib, | ||
inputs, | ||
... | ||
}: let | ||
constants = import ./constants.nix; | ||
in { | ||
home-manager.users."${constants.MainUser}".systemd.user.services.desel = { | ||
Service = { | ||
ExecStart = toString (pkgs.writeShellScript "desel" '' | ||
while(true) | ||
do | ||
echo -n | ${pkgs.xsel}/bin/xsel -n -i | ||
${pkgs.coreutils-full}/bin/sleep 0.5 | ||
done | ||
''); | ||
}; | ||
Unit = { | ||
Description = "Disable xclip selection"; | ||
After = ["graphical-session.target"]; | ||
}; | ||
Install = { | ||
WantedBy = ["graphical-session.target"]; | ||
}; | ||
}; | ||
} |