some changes

This commit is contained in:
randomuser 2023-12-05 21:43:38 -06:00
parent 58cc47b0ab
commit f3f013d0da
4 changed files with 59 additions and 12 deletions

28
builds/utils/sh/mousehelper Executable file
View File

@ -0,0 +1,28 @@
PADDING=50
eval $(
xdotool getwindowgeometry --shell $(
xdotool getactivewindow
) | \
xargs printf "export %s\n"
)
eval $(
xdotool getmouselocation --shell | \
xargs printf "export MOUSE%s\n"
)
case "$1" in
"top")
xdotool mousemove $MOUSEX $(($Y + $PADDING))
;;
"bottom")
xdotool mousemove $MOUSEX $(($Y + $HEIGHT - $PADDING))
;;
"left")
xdotool mousemove $(($X + $PADDING)) $MOUSEY
;;
"right")
xdotool mousemove $(($X + $WIDTH - $PADDING)) $MOUSEY
;;
esac

View File

@ -2,8 +2,8 @@
let let
home-manager = builtins.fetchTarball { home-manager = builtins.fetchTarball {
url = "https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz"; url = "https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz";
sha256 = "1q7wnf4ffvzgxsn828gl6hgfqbpynk9b77grsqzfxpki86nfk4mz"; sha256 = "16078fwcmqq41dqfnm124xxm8l6zykvqlj1kzgi0fvfil4y86slm";
}; };
customPolybar = pkgs.polybar.override { customPolybar = pkgs.polybar.override {
alsaSupport = true; alsaSupport = true;
@ -29,6 +29,9 @@ in {
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
permittedInsecurePackages = [
"libxls-1.6.2"
];
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -82,7 +85,7 @@ in {
(pkgs.callPackage ../builds/pash.nix {}) (pkgs.callPackage ../builds/pash.nix {})
]; ];
fonts.fonts = with pkgs; [ fonts.packages = with pkgs; [
fantasque-sans-mono fantasque-sans-mono
]; ];
@ -135,7 +138,9 @@ in {
PasswordManagerEnabled = false; PasswordManagerEnabled = false;
SearchSuggestEnabled = false; SearchSuggestEnabled = false;
}; };
nativeMessagingHosts.tridactyl = true; nativeMessagingHosts.packages = [
pkgs.tridactyl-native
];
}; };
services.mpd = { services.mpd = {

View File

@ -1,6 +1,4 @@
IdentityFile ~/.local/share/ssh/id_rsa Host main
IdentityFile ~/.local/share/ssh/id_dsa HostName beepboop.systems
IdentityFile ~/.local/share/ssh/id_ecdsa User useracc
IdentityFile ~/.local/share/ssh/id_ed25519 Port 55555
UserKnownHostsFile ~/.local/share/ssh/known_hosts.d/%k

View File

@ -1,5 +1,5 @@
# exit mouse mode # exit mouse mode
q Escape
mode sxhkdrc mode sxhkdrc
# move left # move left
@ -23,5 +23,21 @@ q
xdotool {mousedown,click} {1,2,3} xdotool {mousedown,click} {1,2,3}
# let go of clicked button # let go of clicked button
g q
xdotool mouseup 1; xdotool mouseup 2; xdotool mouseup 3 xdotool mouseup 1; xdotool mouseup 2; xdotool mouseup 3
# move the mouse to the top of the window
g ; g
mousehelper top
# ditto for bottom
G
mousehelper bottom
# ditto for left
0
mousehelper left
# ditto for right
dollar
mousehelper right