Skip to content

Commit

Permalink
add way-displays
Browse files Browse the repository at this point in the history
  • Loading branch information
number5 committed Nov 17, 2024
1 parent 8984735 commit b537b41
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 67 deletions.
91 changes: 37 additions & 54 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions home/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ inputs: {
"dunst" = import ./dunst inputs;
"eww" = import ./wayland/eww inputs;
"foot" = import ./foot inputs;
"way-displays" = import ./way-displays inputs;
}
19 changes: 19 additions & 0 deletions home/modules/way-displays/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
_:{ pkgs, ... }:
{
home.packages = [ pkgs.way-displays ];

systemd.user.services.way-displays = {
Unit = {
Description = "way-displays";
Documentation = [ "man:way-displays(1)" ];
};

Service = {
ExecStart = "${pkgs.way-displays}/bin/way-displays";
};

Install = {
WantedBy = [ "graphical-session.target" ];
};
};
}
13 changes: 0 additions & 13 deletions home/modules/wayland/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,7 @@ let
gblast = lib.getExe pkgs.grimblast;
wpctl = "${pkgs.wireplumber}/bin/wpctl";

scripts = pkgs.callPackage ./scripts.nix { };

workspaceConf = { monitor }: ''
workspace=1,persistent:true,monitor:${monitor}
workspace=2,persistent:true,on-created-empty:${lib.getExe scripts.wsNix},monitor:${monitor}
workspace=3,persistent:true,monitor:${monitor}
workspace=4,persistent:true,monitor:${monitor}
workspace=5,persistent:true,on-created-empty:firefox-beta -p 'sxm',monitor:${monitor}
workspace=6,persistent:true,on-created-empty:footclient -e btm,monitor:${monitor}
'';
in
{
imports = [
Expand Down Expand Up @@ -118,10 +109,6 @@ in
bindel=,XF86AudioLowerVolume,exec,${wpctl} set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindl=,XF86AudioMute,exec,${wpctl} set-mute @DEFAULT_AUDIO_SINK@ toggle
${workspaceConf { monitor = "${scripts.extMonitor}"; }}
exec-once=${lib.getExe scripts.monitorInit}
exec-once=${lib.getExe pkgs.hyprland-monitor-attached} ${lib.getExe scripts.monitorAdded} ${lib.getExe scripts.monitorRemoved}
exec-once=${lib.getExe pkgs.hyprpaper}
exec-once=${pkgs.pyprland}/bin/pypr
exec-once=${pkgs.blueman}/bin/blueman-applet
Expand Down

0 comments on commit b537b41

Please sign in to comment.