mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Added nwg-dock-hyprland with some patches
This commit is contained in:
parent
4ce3604eaf
commit
1769e09ad8
2 changed files with 98 additions and 2 deletions
51
user/wm/hyprland/patches/noactiveclients.patch
Normal file
51
user/wm/hyprland/patches/noactiveclients.patch
Normal file
|
@ -0,0 +1,51 @@
|
|||
diff --git a/main.go b/main.go
|
||||
index 0c980c9..4e6dfbf 100644
|
||||
--- a/main.go
|
||||
+++ b/main.go
|
||||
@@ -103,11 +103,6 @@ func buildMainBox(vbox *gtk.Box) {
|
||||
allItems = append(allItems, cntPin)
|
||||
}
|
||||
}
|
||||
- for _, cntTask := range clients {
|
||||
- if !isIn(allItems, cntTask.Class) && !strings.Contains(*launcherCmd, cntTask.Class) && cntTask.Class != "" {
|
||||
- allItems = append(allItems, cntTask.Class)
|
||||
- }
|
||||
- }
|
||||
|
||||
divider := 1
|
||||
if len(allItems) > 0 {
|
||||
@@ -155,34 +150,6 @@ func buildMainBox(vbox *gtk.Box) {
|
||||
}
|
||||
|
||||
alreadyAdded = nil
|
||||
- for _, t := range clients {
|
||||
- // For some time after killing a client, it's still being returned by 'j/clients', however w/o the Class value.
|
||||
- // Let's filter the ghosts out.
|
||||
- if !inPinned(t.Class) && t.Class != "" {
|
||||
- instances := taskInstances(t.Class)
|
||||
- if len(instances) == 1 {
|
||||
- button := taskButton(t, instances)
|
||||
- mainBox.PackStart(button, false, false, 0)
|
||||
- if t.Class == activeClient.Class && !*autohide {
|
||||
- button.SetProperty("name", "active")
|
||||
- } else {
|
||||
- button.SetProperty("name", "")
|
||||
- }
|
||||
- } else if !isIn(alreadyAdded, t.Class) {
|
||||
- button := taskButton(t, instances)
|
||||
- mainBox.PackStart(button, false, false, 0)
|
||||
- if t.Class == activeClient.Class && !*autohide {
|
||||
- button.SetProperty("name", "active")
|
||||
- } else {
|
||||
- button.SetProperty("name", "")
|
||||
- }
|
||||
- alreadyAdded = append(alreadyAdded, t.Class)
|
||||
- clientMenu(t.Class, instances)
|
||||
- } else {
|
||||
- continue
|
||||
- }
|
||||
- }
|
||||
- }
|
||||
|
||||
if !*noLauncher && *launcherCmd != "" {
|
||||
button, _ := gtk.ButtonNew()
|
Loading…
Add table
Add a link
Reference in a new issue