1
1
Fork 0

Compare commits

...

7 commits

Author SHA1 Message Date
32f419cdb1
hyprland: enable mouse refocus
Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 20:15:20 -05:00
a344b8fcf6
toggle: remove debug flag
Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 20:15:20 -05:00
d5141091bd
nix: change nixpkgs-local dir
Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 20:15:20 -05:00
3a26b31226
hyprland: disable shadow for tiled windows
Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 20:15:06 -05:00
ed3384b223
hyprland: modify binds
Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 20:15:06 -05:00
b13a75f429
anyrun: fix build
Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 20:15:06 -05:00
47e12fd9c9
boot: enable hibernation for mynix
Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 20:14:48 -05:00
9 changed files with 192 additions and 186 deletions

View file

@ -6,98 +6,95 @@
#?? nix run .#genflake flake.nix #?? nix run .#genflake flake.nix
# TODO: Remove flakegen hook when nix expressions are officially implemented # TODO: Remove flakegen hook when nix expressions are officially implemented
# https://github.com/NixOS/nix/issues/3966 # https://github.com/NixOS/nix/issues/3966
{ {
# https://wiki.nixos.org/wiki/Flakes # https://wiki.nixos.org/wiki/Flakes
# https://nix.dev/manual/nix/2.18/command-ref/new-cli/nix3-flake.html # https://nix.dev/manual/nix/2.18/command-ref/new-cli/nix3-flake.html
inputs = inputs = let
let flake = url: {inherit url;};
flake = url: { inherit url; }; follows = input: {inputs.${input}.follows = input;};
follows = input: { inputs.${input}.follows = input; }; stable = input: {inputs.${input}.follows = "${input}-stable";};
stable = input: { inputs.${input}.follows = "${input}-stable"; }; unstable = input: {inputs.${input}.follows = "${input}-unstable";};
unstable = input: { inputs.${input}.follows = "${input}-unstable"; };
source = url: { source = url: {
inherit url; inherit url;
flake = false; flake = false;
};
in
{
#?? branch = "git+https://REPO?ref=BRANCH"
#?? commit = "git+https://REPO?ref=BRANCH&rev=COMMIT"
#?? tag = "git+https://REPO?ref=refs/tags/TAG"
### Standalone
nixos-hardware = flake "github:NixOS/nixos-hardware";
### Stable
nixpkgs-stable = flake "github:NixOS/nixpkgs/nixos-24.05";
# Common flakes
home-manager-stable = flake "github:nix-community/home-manager/release-24.05" // stable "nixpkgs";
nix-index-database-stable = flake "github:nix-community/nix-index-database" // stable "nixpkgs";
# Desktop flakes
aagl-gtk-on-nix-stable = flake "github:ezKEa/aagl-gtk-on-nix/release-24.05" // stable "nixpkgs";
### Unstable
nixpkgs-unstable = flake "github:NixOS/nixpkgs/nixos-unstable";
# Common flakes
agenix = flake "github:ryantm/agenix" // unstable "nixpkgs";
arion = flake "github:hercules-ci/arion" // unstable "nixpkgs";
compose2nix = flake "github:aksiksi/compose2nix" // unstable "nixpkgs";
disko = flake "github:nix-community/disko" // unstable "nixpkgs";
home-manager-unstable = flake "github:nix-community/home-manager" // unstable "nixpkgs";
nix-index-database-unstable = flake "github:nix-community/nix-index-database" // unstable "nixpkgs";
# Console flakes
jovian-nixos = flake "github:Jovian-Experiments/Jovian-NixOS" // unstable "nixpkgs";
# Desktop flakes
aagl-gtk-on-nix-unstable = flake "github:ezKEa/aagl-gtk-on-nix" // unstable "nixpkgs";
ags = flake "github:Aylur/ags" // unstable "nixpkgs";
anyrun = flake "github:Kirottu/anyrun" // unstable "nixpkgs";
bitwarden-menu = flake "github:firecat53/bitwarden-menu" // unstable "nixpkgs";
fw-fanctrl = flake "github:TamtamHero/fw-fanctrl/packaging/nix" // unstable "nixpkgs";
hypridle = flake "github:hyprwm/hypridle" // unstable "nixpkgs";
#// hyprland = flake "git+https://github.com/hyprwm/Hyprland?submodules=1" // unstable "nixpkgs";
hyprland =
flake "git+https://github.com/hyprwm/Hyprland?ref=refs/tags/v0.43.0&submodules=1"
// unstable "nixpkgs";
#// hyprland =
#// flake "git+https://github.com/UjinT34/Hyprland?ref=vrr-cursor-fix&submodules=1"
#// // unstable "nixpkgs";
hyprland-contrib = flake "github:hyprwm/contrib" // unstable "nixpkgs";
hyprland-plugins =
flake "github:hyprwm/hyprland-plugins" // unstable "nixpkgs" // follows "hyprland";
hyprlock = flake "github:hyprwm/hyprlock" // unstable "nixpkgs";
hyprpaper = flake "github:hyprwm/hyprpaper" // unstable "nixpkgs";
hyprpicker = flake "github:hyprwm/hyprpicker" // unstable "nixpkgs";
nix-flatpak = flake "github:gmodena/nix-flatpak?ref=v0.4.1";
nix-vscode-extensions = flake "github:nix-community/nix-vscode-extensions" // unstable "nixpkgs";
nixd = flake "github:nix-community/nixd" // unstable "nixpkgs";
xdg-desktop-portal-hyprland =
flake "github:hyprwm/xdg-desktop-portal-hyprland"
// unstable "nixpkgs";
# Server flakes
conduwuit = flake "github:Myned/conduwuit" // unstable "nixpkgs";
### Staging
nixpkgs-staging-next = flake "github:NixOS/nixpkgs/staging-next";
### Development
nixpkgs-local = flake "git+file:///home/myned/.dev/nixpkgs?ref=7849cd48822de4dc0515c787b20dc85de30acdca";
#// hyprland = flake "git+file:///home/myned/.dev/Hyprland?submodules=1";
### Source code
firefox-gnome-theme = source "github:rafaelmardojai/firefox-gnome-theme/v128";
lifx-cli = source "github:Rawa/lifx-cli";
steamtinkerlaunch = source "github:sonic2kk/steamtinkerlaunch";
thunderbird-gnome-theme = source "github:rafaelmardojai/thunderbird-gnome-theme";
virtio-win = source "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.262-2/virtio-win.iso";
}; };
in {
#?? branch = "git+https://REPO?ref=BRANCH"
#?? commit = "git+https://REPO?ref=BRANCH&rev=COMMIT"
#?? tag = "git+https://REPO?ref=refs/tags/TAG"
### Standalone
nixos-hardware = flake "github:NixOS/nixos-hardware";
### Stable
nixpkgs-stable = flake "github:NixOS/nixpkgs/nixos-24.05";
# Common flakes
home-manager-stable = flake "github:nix-community/home-manager/release-24.05" // stable "nixpkgs";
nix-index-database-stable = flake "github:nix-community/nix-index-database" // stable "nixpkgs";
# Desktop flakes
aagl-gtk-on-nix-stable = flake "github:ezKEa/aagl-gtk-on-nix/release-24.05" // stable "nixpkgs";
### Unstable
nixpkgs-unstable = flake "github:NixOS/nixpkgs/nixos-unstable";
# Common flakes
agenix = flake "github:ryantm/agenix" // unstable "nixpkgs";
arion = flake "github:hercules-ci/arion" // unstable "nixpkgs";
compose2nix = flake "github:aksiksi/compose2nix" // unstable "nixpkgs";
disko = flake "github:nix-community/disko" // unstable "nixpkgs";
home-manager-unstable = flake "github:nix-community/home-manager" // unstable "nixpkgs";
nix-index-database-unstable = flake "github:nix-community/nix-index-database" // unstable "nixpkgs";
# Console flakes
jovian-nixos = flake "github:Jovian-Experiments/Jovian-NixOS" // unstable "nixpkgs";
# Desktop flakes
aagl-gtk-on-nix-unstable = flake "github:ezKEa/aagl-gtk-on-nix" // unstable "nixpkgs";
ags = flake "github:Aylur/ags" // unstable "nixpkgs";
anyrun = flake "github:Kirottu/anyrun" // unstable "nixpkgs";
bitwarden-menu = flake "github:firecat53/bitwarden-menu" // unstable "nixpkgs";
fw-fanctrl = flake "github:TamtamHero/fw-fanctrl/packaging/nix" // unstable "nixpkgs";
hypridle = flake "github:hyprwm/hypridle" // unstable "nixpkgs";
#// hyprland = flake "git+https://github.com/hyprwm/Hyprland?submodules=1" // unstable "nixpkgs";
hyprland =
flake "git+https://github.com/hyprwm/Hyprland?ref=refs/tags/v0.43.0&submodules=1"
// unstable "nixpkgs";
#// hyprland =
#// flake "git+https://github.com/UjinT34/Hyprland?ref=vrr-cursor-fix&submodules=1"
#// // unstable "nixpkgs";
hyprland-contrib = flake "github:hyprwm/contrib" // unstable "nixpkgs";
hyprland-plugins =
flake "github:hyprwm/hyprland-plugins" // unstable "nixpkgs" // follows "hyprland";
hyprlock = flake "github:hyprwm/hyprlock" // unstable "nixpkgs";
hyprpaper = flake "github:hyprwm/hyprpaper" // unstable "nixpkgs";
hyprpicker = flake "github:hyprwm/hyprpicker" // unstable "nixpkgs";
nix-flatpak = flake "github:gmodena/nix-flatpak?ref=v0.4.1";
nix-vscode-extensions = flake "github:nix-community/nix-vscode-extensions" // unstable "nixpkgs";
nixd = flake "github:nix-community/nixd" // unstable "nixpkgs";
xdg-desktop-portal-hyprland =
flake "github:hyprwm/xdg-desktop-portal-hyprland"
// unstable "nixpkgs";
# Server flakes
conduwuit = flake "github:Myned/conduwuit" // unstable "nixpkgs";
### Staging
nixpkgs-staging-next = flake "github:NixOS/nixpkgs/staging-next";
### Development
nixpkgs-local = flake "git+file:///home/myned/SYNC/dev/repo/nixpkgs";
#// hyprland = flake "git+file:///home/myned/SYNC/dev/repo/Hyprland?submodules=1";
### Source code
firefox-gnome-theme = source "github:rafaelmardojai/firefox-gnome-theme/v128";
lifx-cli = source "github:Rawa/lifx-cli";
steamtinkerlaunch = source "github:sonic2kk/steamtinkerlaunch";
thunderbird-gnome-theme = source "github:rafaelmardojai/thunderbird-gnome-theme";
virtio-win = source "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.262-2/virtio-win.iso";
};
outputs = inputs: { outputs = inputs: {
# TODO: Use forAllSystems # TODO: Use forAllSystems
@ -106,35 +103,37 @@
# https://github.com/kamadorueda/alejandra/blob/main/STYLE.md # https://github.com/kamadorueda/alejandra/blob/main/STYLE.md
formatter.x86_64-linux = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.alejandra; formatter.x86_64-linux = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.alejandra;
nixosConfigurations = nixosConfigurations = let
let # TODO: Use inline modules instead of specialArgs
# TODO: Use inline modules instead of specialArgs # https://jade.fyi/blog/flakes-arent-real#nixos-modules
# https://jade.fyi/blog/flakes-arent-real#nixos-modules # Boilerplate systems with global imports
# Boilerplate systems with global imports #!! There is no default nixpkgs, inputs.<nixpkgs|home-manager>-BRANCH must exist
#!! There is no default nixpkgs, inputs.<nixpkgs|home-manager>-BRANCH must exist #?? branch = common "BRANCH" "ARCHITECTURE" [ MODULES ]
#?? branch = common "BRANCH" "ARCHITECTURE" [ MODULES ] common = branch: arch: modules:
common = inputs."nixpkgs-${branch}".lib.nixosSystem {
branch: arch: modules: system = arch;
inputs."nixpkgs-${branch}".lib.nixosSystem {
system = arch;
specialArgs = { specialArgs = {
inherit inputs; inherit inputs;
}; };
# TODO: Clean up optional attributes with each new release # TODO: Clean up optional attributes with each new release
#!! Options will diverge between branches over time #!! Options will diverge between branches over time
#?? with lib; optionalAttrs (versionAtLeast version "VERSION") { ... }; #?? with lib; optionalAttrs (versionAtLeast version "VERSION") { ... };
modules = modules ++ [ modules =
modules
++ [
./options ./options
./configuration.nix ./configuration.nix
#!! Avoid globally importing modules that are not guarded by .enable #!! Avoid globally importing modules that are not guarded by .enable
# https://github.com/NixOS/nixpkgs/issues/137168 # https://github.com/NixOS/nixpkgs/issues/137168
( (
{ config, inputs, ... }:
{ {
config,
inputs,
...
}: {
imports = [ imports = [
inputs."aagl-gtk-on-nix-${branch}".nixosModules.default inputs."aagl-gtk-on-nix-${branch}".nixosModules.default
inputs."home-manager-${branch}".nixosModules.home-manager inputs."home-manager-${branch}".nixosModules.home-manager
@ -152,44 +151,43 @@
} }
) )
]; ];
}; };
#?? system = branch "ARCHITECTURE" [ MODULES ] #?? system = branch "ARCHITECTURE" [ MODULES ]
stable = arch: modules: common "stable" "${arch}-linux" modules; stable = arch: modules: common "stable" "${arch}-linux" modules;
unstable = arch: modules: common "unstable" "${arch}-linux" modules; unstable = arch: modules: common "unstable" "${arch}-linux" modules;
in in {
{ ### Stable
### Stable myarm = stable "aarch64" [
myarm = stable "aarch64" [ ./profiles/server
./profiles/server ./machines/myarm
./machines/myarm ];
];
myne = stable "x86_64" [ myne = stable "x86_64" [
./profiles/server ./profiles/server
./machines/myne ./machines/myne
]; ];
mypi3 = stable "aarch64" [ mypi3 = stable "aarch64" [
./profiles/sbc ./profiles/sbc
./machines/mypi3 ./machines/mypi3
]; ];
### Unstable ### Unstable
myeck = unstable "x86_64" [ myeck = unstable "x86_64" [
./profiles/console ./profiles/console
./machines/myeck ./machines/myeck
]; ];
mynix = unstable "x86_64" [ mynix = unstable "x86_64" [
./profiles/desktop ./profiles/desktop
./machines/mynix ./machines/mynix
]; ];
myork = unstable "x86_64" [ myork = unstable "x86_64" [
./profiles/laptop ./profiles/laptop
./machines/myork ./machines/myork
]; ];
}; };
}; };
} }

View file

@ -113,7 +113,7 @@
url = "github:nix-community/nixd"; url = "github:nix-community/nixd";
}; };
nixos-hardware.url = "github:NixOS/nixos-hardware"; nixos-hardware.url = "github:NixOS/nixos-hardware";
nixpkgs-local.url = "git+file:///home/myned/.dev/nixpkgs?ref=7849cd48822de4dc0515c787b20dc85de30acdca"; nixpkgs-local.url = "git+file:///home/myned/SYNC/dev/repo/nixpkgs";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05"; nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs-staging-next.url = "github:NixOS/nixpkgs/staging-next"; nixpkgs-staging-next.url = "github:NixOS/nixpkgs/staging-next";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";

View file

@ -10,10 +10,20 @@
height = 1440; height = 1440;
}; };
boot.kernelParams = [ boot = {
# https://gitlab.freedesktop.org/drm/amd/-/issues/2516#note_2119750 # Enable hibernation with a swapfile on btrfs
#// "gpu_sched.sched_policy=0" # Attempt to fix stutter # https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file
]; #?? findmnt -no UUID -T /swap/swapfile
resumeDevice = "/dev/disk/by-uuid/5df5028b-a3ba-4f07-80ef-fd5abd542a81";
kernelParams = [
#?? sudo btrfs inspect-internal map-swapfile -r /swap/swapfile
"resume_offset=533760"
# https://gitlab.freedesktop.org/drm/amd/-/issues/2516#note_2119750
#// "gpu_sched.sched_policy=0" # Attempt to fix stutter
];
};
# _._ _,-'""`-._ # _._ _,-'""`-._
# (,-.`._,'( |\`-/| # (,-.`._,'( |\`-/|

View file

@ -55,14 +55,14 @@ in
services.keyd.keyboards.default.settings.main.rightcontrol = "layer(altgr)"; # No Ctrl_R services.keyd.keyboards.default.settings.main.rightcontrol = "layer(altgr)"; # No Ctrl_R
# Enable hibernation with a swapfile on btrfs
# https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file
#?? findmnt -no UUID -T /swap/swapfile
#?? sudo btrfs inspect-internal map-swapfile -r /swap/swapfile
boot = { boot = {
# Enable hibernation with a swapfile on btrfs
# https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file
#?? findmnt -no UUID -T /swap/swapfile
resumeDevice = "/dev/disk/by-uuid/f9416347-eff5-45d5-8dc3-93414c11ba6f"; resumeDevice = "/dev/disk/by-uuid/f9416347-eff5-45d5-8dc3-93414c11ba6f";
kernelParams = [ kernelParams = [
#?? sudo btrfs inspect-internal map-swapfile -r /swap/swapfile
"resume_offset=533760" "resume_offset=533760"
# Fix battery drain with suspend-then-hibernate # Fix battery drain with suspend-then-hibernate

View file

@ -114,7 +114,7 @@ in {
(key "Backspace" "Super" "changegroupactive" "f") (key "Backspace" "Super" "changegroupactive" "f")
(key "Backspace" "Super+Ctrl" "togglegroup" null) (key "Backspace" "Super+Ctrl" "togglegroup" null)
(key "Backspace" "Super+Ctrl+Shift" "lockactivegroup" "toggle") (key "Backspace" "Super+Ctrl+Shift" "lockactivegroup" "toggle")
(key "Backspace" "Super+Shift" "changegroupactive" "b") (key "Backspace" "Super+Shift" "movegroupwindow" null)
(key "Bracketleft" "Super" "layoutmsg" "orientationprev") (key "Bracketleft" "Super" "layoutmsg" "orientationprev")
(key "Bracketleft" "Super+Shift" "splitratio" "-0.1") (key "Bracketleft" "Super+Shift" "splitratio" "-0.1")
(key "Bracketright" "Super" "layoutmsg" "orientationnext") (key "Bracketright" "Super" "layoutmsg" "orientationnext")
@ -124,12 +124,14 @@ in {
#// (key "Delete" "Super" "exec" "left") #// (key "Delete" "Super" "exec" "left")
(key "Delete" "Super+Shift" "exec" "vrr") (key "Delete" "Super+Shift" "exec" "vrr")
(key "Down" "Super" "movewindoworgroup" "d") (key "Down" "Super" "movewindow" "d")
(key "Down" "Super+Shift" "movewindoworgroup" "d")
(key "Equal" "Super" "exec" "audio Normalizer") (key "Equal" "Super" "exec" "audio Normalizer")
(key "Escape" "Super" "togglefloating" null) (key "Escape" "Super" "togglefloating" null)
(key "Escape" "Super+Alt" "exec" "lifx state --color red") (key "Escape" "Super+Alt" "exec" "lifx state --color red")
(key "Escape" "Super+Shift" "centerwindow" null) (key "Escape" "Super+Shift" "centerwindow" null)
(key "Left" "Super" "movewindoworgroup" "l") (key "Left" "Super" "movewindow" "l")
(key "Left" "Super+Shift" "movewindoworgroup" "l")
(key "Minus" "Super" "exec" "audio") (key "Minus" "Super" "exec" "audio")
(key "Print" "Shift" "exec" "screenshot -d") (key "Print" "Shift" "exec" "screenshot -d")
(key "Print" "Super" "exec" "screenshot -e") (key "Print" "Super" "exec" "screenshot -e")
@ -137,7 +139,8 @@ in {
(key "Print" null "exec" "screenshot") (key "Print" null "exec" "screenshot")
(key "Return" "Super" "fullscreen" "1") # Maximize (key "Return" "Super" "fullscreen" "1") # Maximize
(key "Return" "Super+Shift" "fullscreen" "0") # Fullscreen (key "Return" "Super+Shift" "fullscreen" "0") # Fullscreen
(key "Right" "Super" "movewindoworgroup" "r") (key "Right" "Super" "movewindow" "r")
(key "Right" "Super+Shift" "movewindoworgroup" "r")
(key "Space" "Ctrl" "exec" (concatStringsSep " " [ (key "Space" "Ctrl" "exec" (concatStringsSep " " [
"toggle" "toggle"
"--focus" "--focus"
@ -155,56 +158,57 @@ in {
"--workspace special:pip" "--workspace special:pip"
])) ]))
(key "Space" "Super" "togglespecialworkspace" "scratchpad") (key "Space" "Super" "togglespecialworkspace" "scratchpad")
(key "Space" "Super+Ctrl" "movetoworkspacesilent" "special:scratchpad") (key "Space" "Super+Shift" "movetoworkspacesilent" "special:scratchpad")
(key "Tab" "Super" "cyclenext" "tiled") (key "Tab" "Super" "cyclenext" "tiled")
(key "Tab" "Super+Shift" "alterzorder" "top") (key "Tab" "Super+Shift" "alterzorder" "top")
(key "Tab" "Super+Shift" "cyclenext" "floating") (key "Tab" "Super+Shift" "cyclenext" "floating")
(key "Up" "Super" "movewindoworgroup" "u") (key "Up" "Super" "movewindow" "u")
(key "Up" "Super+Shift" "movewindoworgroup" "u")
(key "0" "Super" "workspace" "10") (key "0" "Super" "workspace" "10")
(key "0" "Super+Ctrl" "movetoworkspacesilent" "10") (key "0" "Super+Shift" "movetoworkspacesilent" "10")
(key "1" "Ctrl+Alt" "exec" "lifx state --brightness 0.01") (key "1" "Ctrl+Alt" "exec" "lifx state --brightness 0.01")
(key "1" "Super" "workspace" "1") (key "1" "Super" "workspace" "1")
(key "1" "Super+Alt" "exec" "lifx state --kelvin 1500") (key "1" "Super+Alt" "exec" "lifx state --kelvin 1500")
(key "1" "Super+Ctrl" "movetoworkspacesilent" "1") (key "1" "Super+Shift" "movetoworkspacesilent" "1")
(key "2" "Ctrl+Alt" "exec" "lifx state --brightness 0.25") (key "2" "Ctrl+Alt" "exec" "lifx state --brightness 0.25")
(key "2" "Super" "workspace" "2") (key "2" "Super" "workspace" "2")
(key "2" "Super+Alt" "exec" "lifx state --kelvin 2500") (key "2" "Super+Alt" "exec" "lifx state --kelvin 2500")
(key "2" "Super+Ctrl" "movetoworkspacesilent" "2") (key "2" "Super+Shift" "movetoworkspacesilent" "2")
(key "3" "Ctrl+Alt" "exec" "lifx state --brightness 0.50") (key "3" "Ctrl+Alt" "exec" "lifx state --brightness 0.50")
(key "3" "Super" "workspace" "3") (key "3" "Super" "workspace" "3")
(key "3" "Super+Alt" "exec" "lifx state --kelvin 3000") (key "3" "Super+Alt" "exec" "lifx state --kelvin 3000")
(key "3" "Super+Ctrl" "movetoworkspacesilent" "3") (key "3" "Super+Shift" "movetoworkspacesilent" "3")
(key "4" "Ctrl+Alt" "exec" "lifx state --brightness 0.75") (key "4" "Ctrl+Alt" "exec" "lifx state --brightness 0.75")
(key "4" "Super" "workspace" "4") (key "4" "Super" "workspace" "4")
(key "4" "Super+Alt" "exec" "lifx state --kelvin 4000") (key "4" "Super+Alt" "exec" "lifx state --kelvin 4000")
(key "4" "Super+Ctrl" "movetoworkspacesilent" "4") (key "4" "Super+Shift" "movetoworkspacesilent" "4")
(key "5" "Ctrl+Alt" "exec" "lifx state --brightness 1.00") (key "5" "Ctrl+Alt" "exec" "lifx state --brightness 1.00")
(key "5" "Super" "workspace" "5") (key "5" "Super" "workspace" "5")
(key "5" "Super+Alt" "exec" "lifx state --kelvin 5000") (key "5" "Super+Alt" "exec" "lifx state --kelvin 5000")
(key "5" "Super+Ctrl" "movetoworkspacesilent" "5") (key "5" "Super+Shift" "movetoworkspacesilent" "5")
(key "6" "Super" "workspace" "6") (key "6" "Super" "workspace" "6")
(key "6" "Super+Ctrl" "movetoworkspacesilent" "6") (key "6" "Super+Shift" "movetoworkspacesilent" "6")
(key "7" "Super" "workspace" "7") (key "7" "Super" "workspace" "7")
(key "7" "Super+Ctrl" "movetoworkspacesilent" "7") (key "7" "Super+Shift" "movetoworkspacesilent" "7")
(key "8" "Super" "workspace" "8") (key "8" "Super" "workspace" "8")
(key "8" "Super+Ctrl" "movetoworkspacesilent" "8") (key "8" "Super+Shift" "movetoworkspacesilent" "8")
(key "9" "Super" "workspace" "9") (key "9" "Super" "workspace" "9")
(key "9" "Super+Ctrl" "movetoworkspacesilent" "9") (key "9" "Super+Shift" "movetoworkspacesilent" "9")
(key "A" "Ctrl+Alt" "exec" "${waydroid} session stop") (key "A" "Ctrl+Alt" "exec" "${waydroid} session stop")
(key "A" "Super" "togglespecialworkspace" "android") (key "A" "Super" "togglespecialworkspace" "android")
(key "A" "Super+Ctrl" "movetoworkspacesilent" "android") (key "A" "Super+Shift" "movetoworkspacesilent" "android")
(key "B" "Super" "exec" "[group new lock; tile] ${firefox-esr}") (key "B" "Super" "exec" "[group new lock; tile] ${firefox-esr}")
(key "C" "Super" "exec" codium) (key "C" "Super" "exec" codium)
(key "E" "Super" "exec" gnome-text-editor) (key "E" "Super" "exec" gnome-text-editor)
(key "F" "Super" "exec" nautilus) (key "F" "Super" "exec" nautilus)
(key "G" "Super" "workspace" "name:game") (key "G" "Super" "workspace" "name:game")
(key "G" "Super+Alt" "workspace" "name:gamescope") (key "G" "Super+Alt" "workspace" "name:gamescope")
(key "G" "Super+Ctrl" "movetoworkspacesilent" "name:game") (key "G" "Super+Shift" "movetoworkspacesilent" "name:game")
(key "G" "Super+Ctrl+Alt" "exec" "${pkill} gamescope") (key "G" "Super+Ctrl+Alt" "exec" "${pkill} gamescope")
(key "K" "Super" "exec" obsidian) (key "K" "Super" "exec" obsidian)
(key "M" "Super" "togglespecialworkspace" "music") (key "M" "Super" "togglespecialworkspace" "music")
(key "M" "Super+Ctrl" "movetoworkspacesilent" "music") (key "M" "Super+Shift" "movetoworkspacesilent" "music")
(key "O" "Super" "togglespecialworkspace" "office") (key "O" "Super" "togglespecialworkspace" "office")
(key "P" "Super" "exec" "${hyprpicker} --autocopy") (key "P" "Super" "exec" "${hyprpicker} --autocopy")
(key "P" "Super+Shift" "exec" "${hyprpicker} --autocopy --format rgb") (key "P" "Super+Shift" "exec" "${hyprpicker} --autocopy --format rgb")
@ -213,11 +217,11 @@ in {
(key "Q" "Super" "killactive" null) (key "Q" "Super" "killactive" null)
(key "S" "Ctrl+Alt" "exec" "${pkill} steam") (key "S" "Ctrl+Alt" "exec" "${pkill} steam")
(key "S" "Super" "togglespecialworkspace" "steam") (key "S" "Super" "togglespecialworkspace" "steam")
(key "S" "Super+Ctrl" "movetoworkspacesilent" "steam") (key "S" "Super+Shift" "movetoworkspacesilent" "steam")
(key "S" "Super+Shift" "exec" steam) (key "S" "Super+Shift" "exec" steam)
(key "T" "Ctrl+Alt" "exec" "${pkill} kitty") (key "T" "Ctrl+Alt" "exec" "${pkill} kitty")
(key "T" "Super" "togglespecialworkspace" "terminal") (key "T" "Super" "togglespecialworkspace" "terminal")
(key "T" "Super+Ctrl" "movetoworkspacesilent" "terminal") (key "T" "Super+Shift" "movetoworkspacesilent" "terminal")
(key "T" "Super+Shift" "exec" kitty) (key "T" "Super+Shift" "exec" kitty)
(key "V" "Super" "exec" "${kitty} --app-id clipboard --override font_size=12 ${clipse}") (key "V" "Super" "exec" "${kitty} --app-id clipboard --override font_size=12 ${clipse}")
(key "V" "Super+Shift" "exec" "${clipse} -clear && ${notify-send} clipse 'Clipboard cleared' --urgency low") (key "V" "Super+Shift" "exec" "${clipse} -clear && ${notify-send} clipse 'Clipboard cleared' --urgency low")
@ -227,12 +231,12 @@ in {
then "/scale:140 +f" then "/scale:140 +f"
else "" else ""
}") }")
(key "W" "Super+Ctrl" "movetoworkspacesilent" "vm") (key "W" "Super+Shift" "movetoworkspacesilent" "vm")
(key "W" "Super+Ctrl+Shift" "exec" "vm ${virt-manager} --show-domain-console myndows") (key "W" "Super+Ctrl+Shift" "exec" "vm ${virt-manager} --show-domain-console myndows")
(key "X" "Super" "workspace" "+1") (key "X" "Super" "workspace" "+1")
(key "X" "Super+Ctrl" "movetoworkspacesilent" "+1") (key "X" "Super+Shift" "movetoworkspacesilent" "+1")
(key "Z" "Super" "workspace" "-1") (key "Z" "Super" "workspace" "-1")
(key "Z" "Super+Ctrl" "movetoworkspacesilent" "-1") (key "Z" "Super+Shift" "movetoworkspacesilent" "-1")
]; ];
}; };
}; };

View file

@ -167,6 +167,7 @@ in {
flatten [ flatten [
### Defaults ### Defaults
(class ".*" ["float" "suppressevent maximize" "syncfullscreen"]) (class ".*" ["float" "suppressevent maximize" "syncfullscreen"])
(floating false ["noshadow"])
(floating true ["bordercolor rgb(073642)"]) (floating true ["bordercolor rgb(073642)"])
(fullscreen true ["idleinhibit focus"]) (fullscreen true ["idleinhibit focus"])
(pinned true ["bordercolor rgb(073642) rgb(073642)"]) (pinned true ["bordercolor rgb(073642) rgb(073642)"])

View file

@ -181,7 +181,7 @@ in
float_switch_override_focus = 0; # Disable float to tile hover focus float_switch_override_focus = 0; # Disable float to tile hover focus
focus_on_close = 1; # Focus window under mouse focus_on_close = 1; # Focus window under mouse
follow_mouse = 1; # Hover focus follow_mouse = 1; # Hover focus
mouse_refocus = false; #// mouse_refocus = false;
repeat_delay = 300; repeat_delay = 300;
repeat_rate = 40; repeat_rate = 40;
sensitivity = 0.5; sensitivity = 0.5;

View file

@ -5,17 +5,13 @@
pkgs, pkgs,
... ...
}: }:
with lib; let
with lib;
let
cfg = config.custom.programs.anyrun; cfg = config.custom.programs.anyrun;
in in {
{ options.custom.programs.anyrun.enable = mkOption {default = false;};
options.custom.programs.anyrun.enable = mkOption { default = false; };
config.home-manager.users.${config.custom.username} = mkIf cfg.enable { config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
imports = [ inputs.anyrun.home-managerModules.default ]; imports = [inputs.anyrun.homeManagerModules.default];
# https://github.com/Kirottu/anyrun # https://github.com/Kirottu/anyrun
programs.anyrun = { programs.anyrun = {
@ -27,8 +23,7 @@ in
applications applications
dictionary dictionary
#// kidex # File search #// kidex # File search
#// randr # Hyprland only\{ #// randr # Hyprland only
rink # Calculator rink # Calculator
shell shell
#// stdin # Entries from input, aka dmenu #// stdin # Entries from input, aka dmenu

View file

@ -1,7 +1,5 @@
#! /usr/bin/env bash #! /usr/bin/env bash
set -x
# Toggle pinned window, launch if needed # Toggle pinned window, launch if needed
#?? toggle --type TYPE --expression EXPRESSION --workspace WORKSPACE [COMMAND] #?? toggle --type TYPE --expression EXPRESSION --workspace WORKSPACE [COMMAND]
#!! Regex may need to be double-escaped #!! Regex may need to be double-escaped