From 06fc826f7d1f1be850135864cf9fd86222b1c74d Mon Sep 17 00:00:00 2001 From: cspark Date: Tue, 19 Mar 2024 13:02:17 +0000 Subject: [PATCH] Enable virt manager/libvirt globally, laptop sway workspace/rules configuration --- configurations/laptop/configuration.nix | 1 + .../home-manager/.config/sway/config | 25 ++++++++++++++----- global.nix | 5 ++++ 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/configurations/laptop/configuration.nix b/configurations/laptop/configuration.nix index 5f09f14c..171e9187 100644 --- a/configurations/laptop/configuration.nix +++ b/configurations/laptop/configuration.nix @@ -35,6 +35,7 @@ wlsunset # Day/night gamma adjustment/filter for wayland sway-contrib.grimshot # Screenshot tool for wayland mako # Notification Daemon + wlprop # Clone of X11 xprop for wayland (To get window class names etc) themix-gui # Application to design GTK themes diff --git a/configurations/laptop/resources/home-manager/.config/sway/config b/configurations/laptop/resources/home-manager/.config/sway/config index 1f11affa..0643918e 100755 --- a/configurations/laptop/resources/home-manager/.config/sway/config +++ b/configurations/laptop/resources/home-manager/.config/sway/config @@ -137,9 +137,9 @@ gaps outer 5 bindsym $mod+5 workspace number 5 bindsym $mod+6 workspace number 6 bindsym $mod+7 workspace number 7 - bindsym $mod+8 workspace number 8 - bindsym $mod+9 workspace number 9 - bindsym $mod+0 workspace number 10 + bindsym $mod+8 workspace number 8 Chat + bindsym $mod+9 workspace number 9 Games + bindsym $mod+0 workspace number 10 Audio # Move focused container to workspace bindsym $mod+Shift+1 move container to workspace number 1 bindsym $mod+Shift+2 move container to workspace number 2 @@ -148,11 +148,21 @@ gaps outer 5 bindsym $mod+Shift+5 move container to workspace number 5 bindsym $mod+Shift+6 move container to workspace number 6 bindsym $mod+Shift+7 move container to workspace number 7 - bindsym $mod+Shift+8 move container to workspace number 8 - bindsym $mod+Shift+9 move container to workspace number 9 - bindsym $mod+Shift+0 move container to workspace number 10 + bindsym $mod+Shift+8 move container to workspace number 8 Chat + bindsym $mod+Shift+9 move container to workspace number 9 Games + bindsym $mod+Shift+0 move container to workspace number 10 Audio # Note: workspaces can have any name you want, not just numbers. # We just use 1-10 as the default. + + # A bit of window rules in regards to Chat/Games/Audio workspaces + assign [class="discord"] number 8 Chat + assign [class="org.telegram.desktop"] number 8 Chat + assign [title="Telegram"] number 8 Chat + assign [class="steam"] number 9 Games + assign [title="steam"] number 9 Games + assign [class="ardour"] number 10 Audio + # qpwgraph + assign [title="A PipeWire Graph Qt GUI Interface"] number 10 Audio # # Layout stuff: # @@ -236,3 +246,6 @@ bar { } include /etc/sway/config.d/* + +# Autostart +exec qpwgraph \ No newline at end of file diff --git a/global.nix b/global.nix index d639f275..ded689b3 100644 --- a/global.nix +++ b/global.nix @@ -107,6 +107,11 @@ "; }; + # Virt Manager Installation + virtualisation.libvirtd.enable = true; + programs.virt-manager.enable = true; + + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true;