mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-19 01:54:02 +05:30
updates for hyprland + ashell
This commit is contained in:
parent
c8666c3638
commit
c0532d96d2
4 changed files with 89 additions and 132 deletions
32
modules/user/hyprland/ashell.patch
Normal file
32
modules/user/hyprland/ashell.patch
Normal file
|
@ -0,0 +1,32 @@
|
|||
diff --git a/src/modules/workspaces.rs b/src/modules/workspaces.rs
|
||||
index 806d499..3737a82 100644
|
||||
--- a/src/modules/workspaces.rs
|
||||
+++ b/src/modules/workspaces.rs
|
||||
@@ -41,6 +41,7 @@ fn get_workspaces(enable_workspace_filling: bool) -> Vec<Workspace> {
|
||||
let mut workspaces = hyprland::data::Workspaces::get()
|
||||
.map(|w| w.to_vec())
|
||||
.unwrap_or_default();
|
||||
+ workspaces.retain(|w| w.id > 0);
|
||||
|
||||
workspaces.sort_by_key(|w| w.id);
|
||||
|
||||
diff --git a/src/outputs.rs b/src/outputs.rs
|
||||
index adc616b..ce63b57 100644
|
||||
--- a/src/outputs.rs
|
||||
+++ b/src/outputs.rs
|
||||
@@ -58,6 +58,7 @@ impl Outputs {
|
||||
id,
|
||||
size: Some((None, Some(HEIGHT))),
|
||||
layer: Layer::Bottom,
|
||||
+ namespace: String::from("ashell"),
|
||||
pointer_interactivity: true,
|
||||
keyboard_interactivity: KeyboardInteractivity::None,
|
||||
exclusive_zone: HEIGHT as i32,
|
||||
@@ -77,6 +78,7 @@ impl Outputs {
|
||||
id: menu_id,
|
||||
size: Some((None, None)),
|
||||
layer: Layer::Background,
|
||||
+ namespace: String::from("ashell"),
|
||||
pointer_interactivity: true,
|
||||
keyboard_interactivity: KeyboardInteractivity::None,
|
||||
output: wl_output.map_or(IcedOutput::Active, |wl_output| {
|
|
@ -382,7 +382,11 @@ in
|
|||
kitty
|
||||
killall
|
||||
polkit_gnome
|
||||
(inputs.ashell.defaultPackage.${system})
|
||||
(ashell.overrideAttrs (o: {
|
||||
patches = (o.patches or [ ]) ++ [
|
||||
./ashell.patch
|
||||
];
|
||||
}))
|
||||
nwg-launchers
|
||||
papirus-icon-theme
|
||||
(pkgs.writeScriptBin "nwggrid-wrapper" ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue