Compare commits

..

4 Commits

5 changed files with 115 additions and 46 deletions

View File

@ -6,11 +6,11 @@
"systems": "systems"
},
"locked": {
"lastModified": 1727303518,
"narHash": "sha256-lO5JMynTxNZxg/+E4/Y9reeLGIz/M8cEue+Re4cP6qo=",
"lastModified": 1728326430,
"narHash": "sha256-tV1ABHuA1HItMdCTuNdA8fMB+qw7LpjvI945VwMSABI=",
"owner": "Aylur",
"repo": "ags",
"rev": "cd543afec4d9ed708990e5ba52184716809bf248",
"rev": "60180a184cfb32b61a1d871c058b31a3b9b0743d",
"type": "github"
},
"original": {
@ -52,6 +52,22 @@
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1696426674,
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
@ -92,6 +108,28 @@
"url": "https://git.thomasave.be/thomasave/fzgo.git"
}
},
"gitignore": {
"inputs": {
"nixpkgs": [
"hyprland",
"pre-commit-hooks",
"nixpkgs"
]
},
"locked": {
"lastModified": 1709087332,
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
"owner": "hercules-ci",
"repo": "gitignore.nix",
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "gitignore.nix",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -99,11 +137,11 @@
]
},
"locked": {
"lastModified": 1727383923,
"narHash": "sha256-4/vacp3CwdGoPf8U4e/N8OsGYtO09WTcQK5FqYfJbKs=",
"lastModified": 1728306985,
"narHash": "sha256-l/KpcWTv2SjxCnqFs5GYhvjeVYd40WQV4/F2+w9btd4=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "ffe2d07e771580a005e675108212597e5b367d2d",
"rev": "3ac39b2a8b7cbfc0f96628d8a84867c885bc988b",
"type": "github"
},
"original": {
@ -150,15 +188,16 @@
"hyprutils": "hyprutils",
"hyprwayland-scanner": "hyprwayland-scanner",
"nixpkgs": "nixpkgs_3",
"pre-commit-hooks": "pre-commit-hooks",
"systems": "systems_2",
"xdph": "xdph"
},
"locked": {
"lastModified": 1727714556,
"narHash": "sha256-l4cPDA3xGtGdQmdSCAO2VyWg9xwW6//KwDYefdWtovQ=",
"lastModified": 1728327169,
"narHash": "sha256-rTxXRNS2Iie8SxeWyiRlR4QO3GBvi3ZfWomgOZDQti0=",
"ref": "refs/heads/main",
"rev": "5c6c300abfea2539ffad9bcbf857325eec5ab765",
"revCount": 5285,
"rev": "a364df4c9e9a73f0460665463028539e3abe4a8b",
"revCount": 5305,
"submodules": true,
"type": "git",
"url": "https://github.com/hyprwm/Hyprland"
@ -194,33 +233,6 @@
"type": "github"
}
},
"hyprland-protocols_2": {
"inputs": {
"nixpkgs": [
"hyprland",
"xdph",
"nixpkgs"
],
"systems": [
"hyprland",
"xdph",
"systems"
]
},
"locked": {
"lastModified": 1721326555,
"narHash": "sha256-zCu4R0CSHEactW9JqYki26gy8h9f6rHmSwj4XJmlHgg=",
"owner": "hyprwm",
"repo": "hyprland-protocols",
"rev": "5a11232266bf1a1f5952d5b179c3f4b2facaaa84",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprland-protocols",
"type": "github"
}
},
"hyprlang": {
"inputs": {
"hyprutils": [
@ -331,6 +343,22 @@
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1720386169,
"narHash": "sha256-NGKVY4PjzwAa4upkGtAMz1npHGoRzWotlSnVlqI40mo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "194846768975b7ad2c4988bdb82572c00222c0d7",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1722421184,
@ -365,11 +393,11 @@
},
"nixpkgs_4": {
"locked": {
"lastModified": 1727634051,
"narHash": "sha256-S5kVU7U82LfpEukbn/ihcyNt2+EvG7Z5unsKW9H/yFA=",
"lastModified": 1728018373,
"narHash": "sha256-NOiTvBbRLIOe5F6RbHaAh6++BNjsb149fGZd1T4+KBg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "06cf0e1da4208d3766d898b7fdab6513366d45b9",
"rev": "bc947f541ae55e999ffdb4013441347d83b00feb",
"type": "github"
},
"original": {
@ -381,11 +409,11 @@
},
"nur": {
"locked": {
"lastModified": 1727811923,
"narHash": "sha256-DczErZbbktgN3khH42wWsgZwdr60cWruEurb6whgFgc=",
"lastModified": 1728330351,
"narHash": "sha256-mgCbEz9ZQO2Xatvx1ZckwTrlCNDJgGLuGxV/Pxk3IGc=",
"owner": "nix-community",
"repo": "NUR",
"rev": "28056afdcc0c8565e1f6d9d35e46495d07619185",
"rev": "55d15005ef4768b141f6e027910d9de4f3b47e1f",
"type": "github"
},
"original": {
@ -394,6 +422,30 @@
"type": "github"
}
},
"pre-commit-hooks": {
"inputs": {
"flake-compat": "flake-compat",
"gitignore": "gitignore",
"nixpkgs": [
"hyprland",
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1728092656,
"narHash": "sha256-eMeCTJZ5xBeQ0f9Os7K8DThNVSo9gy4umZLDfF5q6OM=",
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "1211305a5b237771e13fcca0c51e60ad47326a9a",
"type": "github"
},
"original": {
"owner": "cachix",
"repo": "git-hooks.nix",
"type": "github"
}
},
"root": {
"inputs": {
"ags": "ags",
@ -459,7 +511,10 @@
},
"xdph": {
"inputs": {
"hyprland-protocols": "hyprland-protocols_2",
"hyprland-protocols": [
"hyprland",
"hyprland-protocols"
],
"hyprlang": [
"hyprland",
"hyprlang"

View File

@ -9,6 +9,7 @@
home.packages = with pkgs; [
distrobox
gnome-disk-utility
];
services.hyprpaper = {

View File

@ -13,6 +13,10 @@
};
};
home.packages = with pkgs; [
distrobox
gnome-disk-utility
];
services.hyprpaper = {
settings = {

View File

@ -49,6 +49,13 @@ const volumeIndicator = Widget.Button({
]}),
});
let monitor = 0
for (const mon in hyprland.monitors) {
if (hyprland.monitors[mon]["id"] < hyprland.monitors[monitor]["id"]) {
monitor = mon
}
}
function Clients() {
const activeId = hyprland.active.client.bind("address")
const clients = hyprland.bind("clients").as(cl =>
@ -106,7 +113,6 @@ function Workspaces() {
function SysTray() {
const items = systemtray.bind("items")
.as(items => items.map(item => {
print(JSON.stringify(item))
return Widget.Button({
child: Widget.Icon({
icon: item.bind("icon"),
@ -256,11 +262,12 @@ function Bar(monitor = 0) {
})
}
print(JSON.stringify(monitor))
App.config({
style: "./style.css",
iconTheme: "Papirus",
windows: [
Bar(0),
Bar(monitor),
NotificationPopups(),
],
})

View File

@ -199,6 +199,8 @@ in {
"$mainMod,XF86AudioRaiseVolume, exec, ${playerctl} next"
"$mainMod,XF86AudioLowerVolume, exec, ${playerctl} previous"
'', Print, exec, ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp -d)" - | wl-copy''
'', Pause, exec, systemctl suspend''
'', XF86Calculator, exec, systemctl suspend''
"$mainMod, H, exec, ${./files/vim-hypr-nav.sh} l"
"$mainMod, L, exec, ${./files/vim-hypr-nav.sh} r"