1
0
Fork 0
mirror of https://git.sr.ht/~azikx/karbur synced 2024-10-30 09:26:20 +00:00

update 

This commit is contained in:
azikx 2024-10-22 21:32:05 +09:00
parent dc11d96595
commit e01aedb45d
9 changed files with 82 additions and 69 deletions

View file

@ -38,11 +38,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1729536995, "lastModified": 1729586408,
"narHash": "sha256-hGEP6lUG91rBLPlgXxBxW6GlHldR8inZddRXt2mHzm0=", "narHash": "sha256-AKwhtCoD5p+5hPYptTPC6FqHixxTx7vvhAvTxd8Yb4A=",
"owner": "ayugram-port", "owner": "ayugram-port",
"repo": "ayugram-desktop", "repo": "ayugram-desktop",
"rev": "fcc6ed09b3caf2a20f6379abf1fdb8088a818b07", "rev": "a9c2ab851ee62a7421e7215c61615f284b6bb7bb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -539,11 +539,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1728018373, "lastModified": 1729070438,
"narHash": "sha256-NOiTvBbRLIOe5F6RbHaAh6++BNjsb149fGZd1T4+KBg=", "narHash": "sha256-KOTTUfPkugH52avUvXGxvWy8ibKKj4genodIYUED+Kc=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "bc947f541ae55e999ffdb4013441347d83b00feb", "rev": "5785b6bb5eaae44e627d541023034e1601455827",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -8,7 +8,7 @@
space = "file_picker_in_current_directory"; space = "file_picker_in_current_directory";
f = "file_picker_in_current_directory"; f = "file_picker_in_current_directory";
F = "file_picker"; F = "file_picker";
"b: Buffers" = { b = {
b = "buffer_picker"; b = "buffer_picker";
n = ":buffer-next"; n = ":buffer-next";
p = ":buffer-previous"; p = ":buffer-previous";

View file

@ -1,8 +1,9 @@
{ pkgs, ... }: { { pkgs, ... }: {
home.packages = with pkgs; [ home.packages = with pkgs;
(callPackage ./anicliru/anicli-ru.nix { }) [
(callPackage ./ayugram/default.nix.nix { }) (callPackage ./anicliru/anicli-ru.nix { })
# (callPackage ./vivaldi/default.nix { }) # (callPackage ./ayugram/default.nix { })
# (callPackage ./torrserver/default.nix { }) # (callPackage ./vivaldi/default.nix { })
]; # (callPackage ./torrserver/default.nix { })
];
} }

View file

@ -5,7 +5,7 @@
vesktop vesktop
tor-browser tor-browser
qbittorrent-enhanced qbittorrent-enhanced
obsidian (obsidian.override { commandLineArgs = [ "--ozone-platform=wayland" ]; })
mousai mousai
komikku komikku
@ -29,6 +29,6 @@
}) })
inputs.zen-browser.packages."${system}".specific inputs.zen-browser.packages."${system}".specific
# inputs.ayugram-desktop.packages.${pkgs.system}.ayugram-desktop inputs.ayugram-desktop.packages.${pkgs.system}.ayugram-desktop
]; ];
} }

View file

@ -9,12 +9,10 @@
hyprcursor hyprcursor
hyprpicker hyprpicker
hyprpaper hyprpaper
kitty
mako
nwg-drawer nwg-drawer
grimblast
wf-recorder
light light
grimblast
wl-clipboard wl-clipboard
wf-recorder
]; ];
} }

View file

@ -6,6 +6,9 @@ let # WORKSPACES 1...10 + SHIFT
"$mod, ${ws}, workspace, ${toString (x + 1)}" "$mod, ${ws}, workspace, ${toString (x + 1)}"
"$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}" "$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}"
]) 10); ]) 10);
aud = "alsa_output.pci-0000_2b_00.1.hdmi-stereo.monitor";
pic = "$(xdg-user-dir PICTURES)/$(date +'scr_%d-%m-%y|%H:%M:%S.png')";
vid = "$(xdg-user-dir VIDEOS)/$(date +'vid_%d-%m-%y|%H:%M:%S.mp4')";
in { in {
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
# SHORTCUTS # SHORTCUTS
@ -31,14 +34,14 @@ in {
"$m, $sp, togglefloating" "$m, $sp, togglefloating"
"$m, Q, killactive" "$m, Q, killactive"
"$m, C, centerwindow" "$m, F, fullscreen"
"$m $s, F, fullscreen" "$m $s, F, centerwindow"
"$m, X, pseudo" "$m, X, pseudo"
"$m $s, X, pin" "$m $s, X, pin"
"$m, O, cyclenext" "$m, C, cyclenext"
"$m $s, O, swapnext " "$m $s, C, swapnext "
"$m, G, togglegroup" "$m, G, togglegroup"
"$m $s, G, changegroupactive" "$m $s, G, changegroupactive"
@ -83,14 +86,20 @@ in {
"$m, T, exec, bottles" "$m, T, exec, bottles"
"$m $s, T, exec, prismlauncher" "$m $s, T, exec, prismlauncher"
# PLAYER CONTROL
"$m, XF86WakeUp, exec, playerctl play-pause" "$m, XF86WakeUp, exec, playerctl play-pause"
"$m, XF86Go, exec, playerctl next" "$m, XF86Go, exec, playerctl next"
"$m, Cancel, exec, playerctl previous" "$m, Cancel, exec, playerctl previous"
", $p, exec, grimblast copysave area $(xdg-user-dir PICTURES)/$(date +'scr_%d-%m-%y|%H:%M:%S.png')" # SCREENSHOTTER & VIDEO
"$s, $p, exec, grimblast copysave output $(xdg-user-dir PICTURES)/$(date +'scr_%d-%m-%y|%H:%M:%S.png')" ", $p, exec, grimblast copysave area"
"$a, $p, exec, grimblast copysave active $(xdg-user-dir PICTURES)/$(date +'scr_%d-%m-%y|%H:%M:%S.png')" "$s, $p, exec, grimblast copysave output ${pic}"
"$a $s, $p, exec, hyprpicker -a" "$a, $p, exec, grimblast copysave active ${pic}"
"$c, $p, exec, hyprpicker -a"
"$m, R, exec, wf-recorder -a ${aud} -f ${vid}"
"$m $s, R, exec, bash ~/.config/hypr/wfrec"
"$m $a, R, exec, killall -s SIGINT wf-recorder"
] ++ workspaces; ] ++ workspaces;
# HOLDING BUTTONS # HOLDING BUTTONS
@ -159,4 +168,13 @@ in {
"$m $s, mouse:273, resizewindow 1" "$m $s, mouse:273, resizewindow 1"
]; ];
}; };
# SELECT AREA FOR VIDEO RECORD
xdg.configFile."hypr/wfrec" = {
text = ''
#!/usr/bin/env bash
wf-recorder -a ${aud} -f ${vid} -g "$(slurp -b '#181926CC' -c '#8bd5caFF' -w '3')"
'';
executable = true;
};
} }

View file

@ -1,43 +1,51 @@
{ config, ... }: { { config, ... }:
let
cl = "class:^";
tl = "title:^";
in {
wayland.windowManager.hyprland.settings = with config.lib.stylix.colors; { wayland.windowManager.hyprland.settings = with config.lib.stylix.colors; {
windowrulev2 = [ windowrulev2 = [
# WORKSPACE RULES # WORKSPACE RULES
"workspace 2 silent, class:^(firefox)$" "workspace 2 silent, ${cl}(firefox)$"
"workspace 2 silent, class:^(floorp)$" "workspace 2 silent, ${cl}(floorp)$"
"workspace 2 silent, class:^(zen-alpha)$" "workspace 2 silent, ${cl}(zen-alpha)$"
"workspace 3 silent, class:^(Spotify)$" "workspace 3 silent, ${cl}(Spotify)$"
"workspace 4 silent, class:^(com.ayugram)$" "workspace 4 silent, ${cl}(com.ayugram)$"
"workspace 4 silent, class:^(vesktop)$" "workspace 4 silent, ${cl}(vesktop)$"
"workspace 5 silent, class:^(obsidian)$" "workspace 5 silent, ${cl}(obsidian)$"
"workspace 6 silent, class:^(anicli)$" "workspace 6 silent, ${cl}(anicli)$"
# TERMINAL RULES # TERMINAL RULES
"float, class:^(termfloat)$" "float, ${cl}(termfloat)$"
"size 650 430, class:^(termfloat)$" "size 650 430, ${cl}(termfloat)$"
"move center, class:^(termfloat)$" "move center, ${cl}(termfloat)$"
# FILE MANAGER # FILE MANAGER
"float, class:^(tfm)$" "float, ${cl}(tfm)$"
"size 800 350, class:^(tfm)$" "size 800 350, ${cl}(tfm)$"
"move center, class:^(tfm)$" "move center, ${cl}(tfm)$"
# AYUGRAM # AYUGRAM
"minsize 540 680, class:^(com.ayugram)$" "minsize 540 680, ${cl}(com.ayugram)$"
"float, title:^(Media viewer)$" "float, ${tl}(Media viewer)$"
"fullscreen, title:^(Media viewer)$" "fullscreen, ${tl}(Media viewer)$"
"size 670 540, title:^(Media viewer)$" "size 670 540, ${tl}(Media viewer)$"
"float, title:^(Choose Files)$" "float, ${tl}(Choose Files)$"
"size 650 450, title:^Choose Files()$" "size 650 450, ${tl}(Choose Files)$"
# XDG # XDG
"float, class:^(xdg-desktop-portal-gtk)$" "float, ${cl}(xdg-desktop-portal-gtk)$"
"size 807 570, class:^(xdg-desktop-portal-gtk)$" "size 807 570, ${cl}(xdg-desktop-portal-gtk)$"
# MPV & ANIME # MPV & ANIME
"nodim, class:^(mpv)$" "nodim, ${cl}(mpv)$"
"float, class:^(anicliru)$" "float, ${cl}(anicliru)$"
"size 660 630, class:^(anicliru)$" "size 660 630, ${cl}(anicliru)$"
"bordercolor rgb(${base08}) rgb(${base09}) 45deg, class:^(anicliru)$" "bordercolor rgb(${base08}) rgb(${base09}) 45deg, ${cl}(anicliru)$"
# KOMIKKU
"size 700 980, ${cl}(info.febvre.Komikku)$"
"pseudo, ${cl}(info.febvre.Komikku)$"
]; ];
}; };
} }

View file

@ -1,14 +1,9 @@
{ config, lib, inputs, ... }: { config, lib, inputs, ... }: {
let wal = inputs.walls;
in {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
settings = with config.lib.stylix.colors; { settings = with config.lib.stylix.colors; {
monitor = ", 1920x1080@60, auto, 1"; monitor = ", 1920x1080@60, auto, 1";
env = [ "SLURP_ARGS, -b ${base00}CC -c ${base06}FF -B ${base0F}CC" ]; env = [ "SLURP_ARGS, -b ${base00}CC -c ${base0F}FF -B ${base02}CC" ];
exec-once = [ exec-once = [ "mako" ];
"mako"
# "swaybg -i ${config.stylix.image}"
];
# APPERANCE # APPERANCE
general = { general = {
@ -99,7 +94,6 @@ in {
pseudotile = true; pseudotile = true;
preserve_split = true; preserve_split = true;
smart_resizing = true; smart_resizing = true;
# no_gaps_when_only = true;
force_split = 2; force_split = 2;
}; };
@ -116,11 +110,5 @@ in {
background_color = lib.mkForce "rgb(${base00})"; background_color = lib.mkForce "rgb(${base00})";
}; };
}; };
extraConfig = ''
device {
name = tpps/2-elan-trackpoint
accel_profile = flat
}
'';
}; };
} }

Binary file not shown.