lots
This commit is contained in:
44
modules/home/programs/ags/default.nix
Normal file
44
modules/home/programs/ags/default.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.home.programs.ags;
|
||||
in {
|
||||
imports = [inputs.ags.homeManagerModules.default];
|
||||
options = {
|
||||
home.programs.ags.enable = mkEnableOption "Enables ags";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.ags = {
|
||||
enable = true;
|
||||
|
||||
# symlink to ~/.config/ags
|
||||
configDir = ../ags;
|
||||
|
||||
# additional packages to add to gjs's runtime
|
||||
extraPackages = with pkgs; [
|
||||
inputs.ags.packages.${pkgs.system}.battery
|
||||
fzf
|
||||
io
|
||||
astal3
|
||||
astal4
|
||||
apps
|
||||
auth
|
||||
battery
|
||||
bluetooth
|
||||
greet
|
||||
hyprland
|
||||
mpris
|
||||
network
|
||||
notifd
|
||||
powerprofiles
|
||||
tray
|
||||
wireplumber
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -46,19 +46,13 @@ in {
|
||||
scale = 0.95;
|
||||
};
|
||||
};
|
||||
animations = {
|
||||
enabled = true;
|
||||
bezier = [
|
||||
"myBezier,0.19, 1, 0.22, 1"
|
||||
];
|
||||
animation = [
|
||||
"windows, 1, 3, myBezier"
|
||||
"windowsOut, 1, 3, default, popin 80%"
|
||||
"border, 1, 2, default"
|
||||
"workspaces, 1, 2, default, slide"
|
||||
"specialWorkspace, 1, 2, default, fade"
|
||||
];
|
||||
};
|
||||
animations.enabled = true;
|
||||
animation = [
|
||||
"border, 1, 2, default"
|
||||
"fade, 1, 4, default"
|
||||
"windows, 1, 3, default, popin 80%"
|
||||
"workspaces, 1, 2, default, slide"
|
||||
];
|
||||
dwindle = {
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
pseudotile = true; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
|
||||
@@ -18,7 +18,7 @@ in {
|
||||
map (
|
||||
m: "${m.name},${
|
||||
if m.enabled
|
||||
then "${toString m.width}x${toString m.height}@${toString m.refreshRate},${m.position},1${
|
||||
then "${toString m.width}x${toString m.height}@${toString m.refreshRate},${m.position},${toString m.scale},transform,${toString m.transform}${
|
||||
if m.bitDepth != null
|
||||
then ",bitdepth,${toString m.bitDepth}"
|
||||
else ""
|
||||
|
||||
@@ -82,8 +82,6 @@ in {
|
||||
",Insert, exec, ${runOnce "grimblast"} --notify --freeze copysave area"
|
||||
"SHIFT, Insert, exec, ${runOnce "grimblast"} --notify --freeze copysave output"
|
||||
"ALT, Insert, exec, ${runOnce "grimblast"} --freeze save area - | ${runOnce "tesseract"} - - | wl-copy && ${runOnce "notify-send"} -t 3000 'OCR result copied to buffer'"
|
||||
"$mod, S, togglespecialworkspace, magic"
|
||||
"$mod SHIFT, S, movetoworkspace, special:magic"
|
||||
];
|
||||
|
||||
bindm = [
|
||||
|
||||
@@ -59,8 +59,21 @@ in {
|
||||
"float, class:^(org.gnome.Calculator)$"
|
||||
"float, class:^(com.github.hluk.copyq)$"
|
||||
"float, class:^(blueman-manager)$"
|
||||
|
||||
# === WORKSPACE RULES ===
|
||||
"workspace 5 silent, class:^(discord)$"
|
||||
];
|
||||
windowrule = [];
|
||||
workspace = [
|
||||
"name:2,monitor:DP-3"
|
||||
"name:3,monitor:DP-3"
|
||||
"name:4,monitor:DP-3"
|
||||
"name:6,monitor:DP-3"
|
||||
"name:7,monitor:DP-3"
|
||||
"name:8,monitor:DP-3"
|
||||
"name:9,monitor:DP-3"
|
||||
"name:10,monitor:DP-3"
|
||||
];
|
||||
layerrule = [
|
||||
"animation fade,hyprpicker"
|
||||
"animation fade,selection"
|
||||
|
||||
@@ -21,7 +21,7 @@ in {
|
||||
};
|
||||
# a monitor of resources
|
||||
btop = {
|
||||
enable = false;
|
||||
enable = true;
|
||||
package = pkgs.btop.override {rocmSupport = true;};
|
||||
settings = {
|
||||
color_theme = "gruvbox_material_dark";
|
||||
|
||||
@@ -77,7 +77,7 @@ in {
|
||||
zig.enable = false;
|
||||
ocaml.enable = false;
|
||||
nu.enable = false;
|
||||
python.enable = true;
|
||||
python.enable = false; # pyright wont build
|
||||
dart.enable = false;
|
||||
lua.enable = true;
|
||||
bash.enable = true;
|
||||
|
||||
@@ -23,6 +23,7 @@ in {
|
||||
settings = [
|
||||
{
|
||||
height = 25;
|
||||
output = ["DP-3"];
|
||||
|
||||
modules-left = [
|
||||
"group/system"
|
||||
|
||||
Reference in New Issue
Block a user