mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Compare commits
No commits in common. "2f8adbb55e12ee58bfffb0a01fe8d1c17aa1d504" and "43fdb902787f137ec0bdd83eab15e92871c90890" have entirely different histories.
2f8adbb55e
...
43fdb90278
|
@ -123,7 +123,6 @@ in
|
||||||
|
|
||||||
programs.qutebrowser.enable = true;
|
programs.qutebrowser.enable = true;
|
||||||
programs.qutebrowser.extraConfig = ''
|
programs.qutebrowser.extraConfig = ''
|
||||||
config.set('qt.args',['ignore-gpu-blacklist','enable-gpu-rasterization','enable-native-gpu-memory-buffers','num-raster-threads=4'])
|
|
||||||
config.load_autoconfig(False)
|
config.load_autoconfig(False)
|
||||||
|
|
||||||
base00 = "#''+config.lib.stylix.colors.base00+''"
|
base00 = "#''+config.lib.stylix.colors.base00+''"
|
||||||
|
|
|
@ -43,10 +43,10 @@
|
||||||
exec-once = GOMAXPROCS=1 syncthing --no-browser
|
exec-once = GOMAXPROCS=1 syncthing --no-browser
|
||||||
exec-once = protonmail-bridge --noninteractive
|
exec-once = protonmail-bridge --noninteractive
|
||||||
exec-once = waybar
|
exec-once = waybar
|
||||||
exec-once = nwg-dock-hyprland -r -f -x -i 64 -nolauncher -a start -ml 8 -mr 8 -mb 8 && nwg-dock-hyprland
|
|
||||||
exec-once = emacs --daemon
|
exec-once = emacs --daemon
|
||||||
|
|
||||||
exec-once = hypridle
|
exec-once = hypridle
|
||||||
|
exec-once = hyprdim -d 450 -s 0.25 -D 0.25 -p
|
||||||
exec-once = obs-notification-mute-daemon
|
exec-once = obs-notification-mute-daemon
|
||||||
|
|
||||||
exec = ~/.swaybg-stylix
|
exec = ~/.swaybg-stylix
|
||||||
|
@ -110,7 +110,6 @@
|
||||||
bind=SUPERSHIFT,T,exec,screenshot-ocr
|
bind=SUPERSHIFT,T,exec,screenshot-ocr
|
||||||
bind=CTRLALT,Delete,exec,hyprctl kill
|
bind=CTRLALT,Delete,exec,hyprctl kill
|
||||||
bind=SUPERSHIFT,K,exec,hyprctl kill
|
bind=SUPERSHIFT,K,exec,hyprctl kill
|
||||||
bind=SUPER,SUPER_L,exec,nwg-dock-hyprland
|
|
||||||
|
|
||||||
bind = SUPER,R,pass,^(com\.obsproject\.Studio)$
|
bind = SUPER,R,pass,^(com\.obsproject\.Studio)$
|
||||||
bind = SUPERSHIFT,R,pass,^(com\.obsproject\.Studio)$
|
bind = SUPERSHIFT,R,pass,^(com\.obsproject\.Studio)$
|
||||||
|
@ -248,9 +247,6 @@
|
||||||
blurls = waybar
|
blurls = waybar
|
||||||
layerrule = blur,launcher # fuzzel
|
layerrule = blur,launcher # fuzzel
|
||||||
blurls = launcher # fuzzel
|
blurls = launcher # fuzzel
|
||||||
layerrule = blur,gtk-layer-shell
|
|
||||||
layerrule = xray,gtk-layer-shell
|
|
||||||
blurls = gtk-layer-shell
|
|
||||||
|
|
||||||
bind=SUPER,code:21,exec,pypr zoom
|
bind=SUPER,code:21,exec,pypr zoom
|
||||||
bind=SUPER,code:21,exec,hyprctl reload
|
bind=SUPER,code:21,exec,hyprctl reload
|
||||||
|
@ -320,9 +316,6 @@
|
||||||
feh
|
feh
|
||||||
killall
|
killall
|
||||||
polkit_gnome
|
polkit_gnome
|
||||||
(nwg-dock-hyprland.overrideAttrs (oldAttrs: {
|
|
||||||
patches = ./patches/noactiveclients.patch;
|
|
||||||
}))
|
|
||||||
libva-utils
|
libva-utils
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
(pyprland.overrideAttrs (oldAttrs: {
|
(pyprland.overrideAttrs (oldAttrs: {
|
||||||
|
@ -333,27 +326,6 @@
|
||||||
hash = "sha256-S1bIIazrBWyjF8tOcIk0AwwWq9gbpTKNsjr9iYA5lKk=";
|
hash = "sha256-S1bIIazrBWyjF8tOcIk0AwwWq9gbpTKNsjr9iYA5lKk=";
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
(hyprnome.override (oldAttrs: {
|
|
||||||
rustPlatform = oldAttrs.rustPlatform // {
|
|
||||||
buildRustPackage = args: oldAttrs.rustPlatform.buildRustPackage (args // {
|
|
||||||
pname = "hyprnome";
|
|
||||||
version = "unstable-2024-05-06";
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "donovanglover";
|
|
||||||
repo = "hyprnome";
|
|
||||||
rev = "f185e6dbd7cfcb3ecc11471fab7d2be374bd5b28";
|
|
||||||
hash = "sha256-tmko/bnGdYOMTIGljJ6T8d76NPLkHAfae6P6G2Aa2Qo=";
|
|
||||||
};
|
|
||||||
cargoDeps = oldAttrs.cargoDeps.overrideAttrs (oldAttrs: rec {
|
|
||||||
name = "${pname}-vendor.tar.gz";
|
|
||||||
inherit src;
|
|
||||||
outputHash = "sha256-cQwAGNKTfJTnXDI3IMJQ2583NEIZE7GScW7TsgnKrKs=";
|
|
||||||
});
|
|
||||||
cargoHash = "sha256-cQwAGNKTfJTnXDI3IMJQ2583NEIZE7GScW7TsgnKrKs=";
|
|
||||||
});
|
|
||||||
};
|
|
||||||
})
|
|
||||||
)
|
|
||||||
gnome.zenity
|
gnome.zenity
|
||||||
wlr-randr
|
wlr-randr
|
||||||
wtype
|
wtype
|
||||||
|
@ -363,6 +335,8 @@
|
||||||
hyprpicker
|
hyprpicker
|
||||||
hypridle
|
hypridle
|
||||||
hyprlock
|
hyprlock
|
||||||
|
hyprnome
|
||||||
|
hyprdim
|
||||||
swaybg
|
swaybg
|
||||||
fnott
|
fnott
|
||||||
fuzzel
|
fuzzel
|
||||||
|
@ -407,8 +381,10 @@
|
||||||
if pgrep -x .obs-wrapped > /dev/null;
|
if pgrep -x .obs-wrapped > /dev/null;
|
||||||
then
|
then
|
||||||
pkill -STOP fnott;
|
pkill -STOP fnott;
|
||||||
|
#emacsclient --eval "(org-yaap-mode 0)";
|
||||||
else
|
else
|
||||||
pkill -CONT fnott;
|
pkill -CONT fnott;
|
||||||
|
#emacsclient --eval "(if (not org-yaap-mode) (org-yaap-mode 1))";
|
||||||
fi
|
fi
|
||||||
sleep 10;
|
sleep 10;
|
||||||
done
|
done
|
||||||
|
@ -418,70 +394,7 @@
|
||||||
if pgrep -x nixos-rebuild > /dev/null || pgrep -x home-manager > /dev/null || pgrep -x kdenlive > /dev/null || pgrep -x FL64.exe > /dev/null || pgrep -x blender > /dev/null || pgrep -x flatpak > /dev/null;
|
if pgrep -x nixos-rebuild > /dev/null || pgrep -x home-manager > /dev/null || pgrep -x kdenlive > /dev/null || pgrep -x FL64.exe > /dev/null || pgrep -x blender > /dev/null || pgrep -x flatpak > /dev/null;
|
||||||
then echo "Shouldn't suspend"; sleep 10; else echo "Should suspend"; systemctl suspend; fi
|
then echo "Shouldn't suspend"; sleep 10; else echo "Should suspend"; systemctl suspend; fi
|
||||||
'')
|
'')
|
||||||
(pkgs.makeDesktopItem {
|
|
||||||
name = "emacsclientnewframe";
|
|
||||||
desktopName = "Emacs Client New Frame";
|
|
||||||
exec = "emacsclient -c -a emacs";
|
|
||||||
terminal = false;
|
|
||||||
icon = "emacs";
|
|
||||||
type = "Application";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
home.file.".config/nwg-dock-hyprland/style.css".text = ''
|
|
||||||
window {
|
|
||||||
background: rgba(''+config.lib.stylix.colors.base00-rgb-r+'',''+config.lib.stylix.colors.base00-rgb-g+'',''+config.lib.stylix.colors.base00-rgb-b+'',0.0);
|
|
||||||
border-radius: 20px;
|
|
||||||
padding: 4px;
|
|
||||||
margin-left: 4px;
|
|
||||||
margin-right: 4px;
|
|
||||||
border-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#box {
|
|
||||||
/* Define attributes of the box surrounding icons here */
|
|
||||||
padding: 10px;
|
|
||||||
background: rgba(''+config.lib.stylix.colors.base00-rgb-r+'',''+config.lib.stylix.colors.base00-rgb-g+'',''+config.lib.stylix.colors.base00-rgb-b+'',0.55);
|
|
||||||
border-radius: 20px;
|
|
||||||
padding: 4px;
|
|
||||||
margin-left: 4px;
|
|
||||||
margin-right: 4px;
|
|
||||||
border-style: none;
|
|
||||||
}
|
|
||||||
button {
|
|
||||||
border-radius: 10px;
|
|
||||||
padding: 4px;
|
|
||||||
margin-left: 4px;
|
|
||||||
margin-right: 4px;
|
|
||||||
background: rgba(''+config.lib.stylix.colors.base03-rgb-r+'',''+config.lib.stylix.colors.base03-rgb-g+'',''+config.lib.stylix.colors.base03-rgb-b+'',0.55);
|
|
||||||
color: #''+config.lib.stylix.colors.base07+'';
|
|
||||||
font-size: 12px
|
|
||||||
}
|
|
||||||
|
|
||||||
button:hover {
|
|
||||||
background: rgba(''+config.lib.stylix.colors.base04-rgb-r+'',''+config.lib.stylix.colors.base04-rgb-g+'',''+config.lib.stylix.colors.base04-rgb-b+'',0.55);
|
|
||||||
}
|
|
||||||
|
|
||||||
'';
|
|
||||||
home.file.".config/nwg-dock-pinned".text = ''
|
|
||||||
Alacritty
|
|
||||||
emacsclientnewframe
|
|
||||||
qutebrowser
|
|
||||||
brave-browser
|
|
||||||
librewolf
|
|
||||||
writer
|
|
||||||
impress
|
|
||||||
calc
|
|
||||||
draw
|
|
||||||
krita
|
|
||||||
pinta
|
|
||||||
xournalpp
|
|
||||||
obs
|
|
||||||
kdenlive
|
|
||||||
blender
|
|
||||||
openscad
|
|
||||||
Cura
|
|
||||||
virt-manager
|
|
||||||
'';
|
|
||||||
home.file.".config/hypr/hypridle.conf".text = ''
|
home.file.".config/hypr/hypridle.conf".text = ''
|
||||||
general {
|
general {
|
||||||
lock_cmd = pgrep hyprlock || hyprlock
|
lock_cmd = pgrep hyprlock || hyprlock
|
||||||
|
|
|
@ -1,51 +0,0 @@
|
||||||
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…
Reference in a new issue