diff --git a/home/arrakis/default.nix b/home/arrakis/default.nix index e5e907c..49919fc 100644 --- a/home/arrakis/default.nix +++ b/home/arrakis/default.nix @@ -20,6 +20,7 @@ ../common/programs/syncthing.nix ../common/features/colorscheme.nix ../common/features/xdg.nix + ../common/features/bluetooth.nix ]; home.sessionVariables = { diff --git a/home/common/features/bluetooth.nix b/home/common/features/bluetooth.nix new file mode 100644 index 0000000..b76d856 --- /dev/null +++ b/home/common/features/bluetooth.nix @@ -0,0 +1,14 @@ +{ pkgs, ... }: +{ + 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"; + }; +} diff --git a/home/common/programs/desktop.nix b/home/common/programs/desktop.nix index df70975..fe12c51 100644 --- a/home/common/programs/desktop.nix +++ b/home/common/programs/desktop.nix @@ -13,6 +13,7 @@ calibre gimp font-manager + imv # communication slack diff --git a/home/common/programs/hyprland/default.nix b/home/common/programs/hyprland/default.nix index 8e9fd37..fa62497 100644 --- a/home/common/programs/hyprland/default.nix +++ b/home/common/programs/hyprland/default.nix @@ -12,6 +12,7 @@ in hyprcursor avizo pamixer + hyprshot ]; home.sessionVariables = { @@ -86,6 +87,11 @@ in "avizo-service" ]; + windowrulev2 = [ + "float, class:imv" + "move cursor -50% -50%, class:imv" + ]; + "$mod" = "SUPER"; bind = [ "$mod, t, exec, kitty" @@ -98,6 +104,10 @@ in # rofi "$mod, space, exec, launcher_t2" + # printscreen + ", Print, exec, hyprshot -m region --output-folder ~/screenshots" + "SHIFT, Print, exec, hyprshot -m window --output-folder ~/screenshots" + # move focus with mod + arrows "$mod, h, movefocus, l" "$mod, j, movefocus, d" diff --git a/hosts/arrakis/default.nix b/hosts/arrakis/default.nix index 0d75f19..ffd4d43 100644 --- a/hosts/arrakis/default.nix +++ b/hosts/arrakis/default.nix @@ -19,6 +19,7 @@ in ../common/features/docker.nix ../common/features/fonts.nix ../common/features/nix-ld.nix + ../common/features/bluetooth.nix ]; networking.hostName = "arrakis"; diff --git a/hosts/common/features/bluetooth.nix b/hosts/common/features/bluetooth.nix new file mode 100644 index 0000000..40c34a3 --- /dev/null +++ b/hosts/common/features/bluetooth.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: +{ + hardware.bluetooth = { + enable = true; + powerOnBoot = true; + settings = { + General = { + Enable = "Source,Sink,Media,Socket"; + }; + }; + }; +} diff --git a/hosts/common/features/nix-ld.nix b/hosts/common/features/nix-ld.nix index 9f1e802..f68f62a 100644 --- a/hosts/common/features/nix-ld.nix +++ b/hosts/common/features/nix-ld.nix @@ -1,4 +1,4 @@ -{ ... }: +{ pkgs, ... }: { programs.nix-ld.enable = true; programs.nix-ld.libraries = with pkgs; [