Get vmware shortcut sorted

This commit is contained in:
Nathan McCarty 2023-06-17 13:01:49 -04:00
parent 99d55501de
commit aefc1a93ad
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
2 changed files with 23 additions and 6 deletions

View File

@ -10,6 +10,7 @@ in with lib; {
fuzzel -f "Iosevka Sans Quasi" -b "181818dd" -S "b9b9b9ff" -s "252525dd" -t "777777ff" -B 5 -r 5 -C "70b433dd"'';
notif-package =
inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.swaynotificationcenter;
shortcuts = inputs.self.packages.${pkgs.system}.shortcuts;
in {
home.packages = with pkgs; [
# General
@ -203,11 +204,14 @@ in with lib; {
# Notif bind
bind = $mainMod, T, exec, swaync-client -t -sw
# Shortcut dispatcher
bind = $mainMod, W, exec, ${shortcuts}/bin/shortcuts ~/.config/shortcuts/shortcuts.toml
## Window rules
# Gamescope
windowrulev2 = float,class:^(.gamescope-wrapped)$
windowrulev2 = noborder,class:^(.gamescope-wrapped)$
windowrulev2 = rounding 0,class:^(.gamescope-wrapped)$
# Gamescope - vmware
windowrulev2 = float,class:^(.gamescope-wrapped)$,title:VMware Workstation
windowrulev2 = noborder,class:^(.gamescope-wrapped)$,title:VMware Workstation
windowrulev2 = rounding 0,class:^(.gamescope-wrapped)$,title:VMware Workstation
# Clipboard history management
exec-once=wl-paste --watch cliphist store
@ -256,6 +260,19 @@ in with lib; {
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
# Shortcut dispatcher
xdg.configFile."shortcuts/shortcuts.toml" = {
text = ''
directories = ["~/.config/shortcuts/shortcuts", "${shortcuts}/shortcuts"]
picker_command = "${
builtins.replaceStrings [ ''"'' ] [ ''\"'' ] fuzzel-command
} --dmenu"
'';
onChange = ''
mkdir -p ~/.config/shortcuts/shortcuts
'';
};
#########################
## SwayNotificationCenter (notifications)
#########################

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
sleep 3 &
echo "Hello"
hyprctl dispatch exec -- "[float;size 1829 1029] gamescope -W 2560 -w 2560 -H 1440 -h 1440 --scaler integer --force-windows-fullscreen -- vmware"
wait