hypr scripts

This commit is contained in:
Miguel Palhas
2024-10-06 17:07:58 +01:00
parent 907321cc59
commit cf47ffea96
5 changed files with 47 additions and 10 deletions
+10 -10
View File
@@ -1,14 +1,14 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
services.blueman.enable = true; # services.blueman-applet.enable = true;
systemd.user.services.mpris-proxy = { # systemd.user.services.mpris-proxy = {
description = "Mpris proxy"; # description = "Mpris proxy";
after = [ # after = [
"network.target" # "network.target"
"sound.target" # "sound.target"
]; # ];
wantedBy = [ "default.target" ]; # wantedBy = [ "default.target" ];
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy"; # serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
}; # };
} }
+1
View File
@@ -14,6 +14,7 @@
gimp gimp
font-manager font-manager
imv imv
pavucontrol
# communication # communication
slack slack
+17
View File
@@ -20,6 +20,10 @@ in
XCURSOR_SIZE = 32; XCURSOR_SIZE = 32;
}; };
xdg.configFile = {
"hypr/scripts".source = ./scripts;
};
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
settings = { settings = {
@@ -88,8 +92,19 @@ in
]; ];
windowrulev2 = [ windowrulev2 = [
# imv
"float, class:imv" "float, class:imv"
"move cursor -50% -50%, class:imv" "move cursor -50% -50%, class:imv"
# bluetooth
"float, class:blueman-manager"
"move cursor -50% -50%, class:blueman-manager"
"size 600 400, class:blueman-manager"
# pavucontrol
"float, class:pavucontrol"
"move cursor -50% -50%, class:pavucontrol"
"size 600 600, class:pavucontrol"
]; ];
"$mod" = "SUPER"; "$mod" = "SUPER";
@@ -101,6 +116,8 @@ in
"$mod, f, fullscreen, 0" "$mod, f, fullscreen, 0"
"$mod SHIFT, f, fullscreen, 1" "$mod SHIFT, f, fullscreen, 1"
"$mod, d, exec, ~/.config/hypr/scripts/toggle-bar"
# rofi # rofi
"$mod, space, exec, launcher_t2" "$mod, space, exec, launcher_t2"
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
if eww active-windows | grep bar; then
eww close bar
else
eww open bar
fi
+12
View File
@@ -9,4 +9,16 @@
}; };
}; };
}; };
services.blueman.enable = true;
systemd.user.services.mpris-proxy = {
description = "Mpris proxy";
after = [
"network.target"
"sound.target"
];
wantedBy = [ "default.target" ];
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
};
} }