feat: added glance

This commit is contained in:
Nick 2025-05-24 02:45:00 -05:00
parent 93efd494ca
commit a0de2dba92
15 changed files with 268 additions and 64 deletions

View file

@ -71,6 +71,7 @@ in
theming
printManager
finamp
lingot
;
};
};

View file

@ -1,5 +1,5 @@
{
"Reddit" = {
"reddit" = {
definedAliases = [
"@re"
];
@ -8,7 +8,7 @@
{ template = "https://www.reddit.com/search/?q={searchTerms}"; }
];
};
"YouTube" = {
"youtube" = {
definedAliases = [
"@yo"
];

View file

@ -0,0 +1,12 @@
{
pkgs,
...
}:
{
home.packages = builtins.attrValues {
inherit (pkgs)
lingot
tonelib-gfx
;
};
}

View file

@ -21,17 +21,17 @@ let
"Z, exec, obsidian"
"H, exec, feishin"
"G, exec, scrcpy"
"L, exec, thunar"
"R, exec, thunar"
"S, exec, steam"
"R, exec, ghostty -e zellij a dotfiles"
"E, exec, ghostty -e y"
"N, exec, signal-desktop"
"T, exec, zeditor"
"B, exec, floorp"
"X, exec, freetube"
"Y, exec, freetube"
"V, exec, vesktop"
"M, exec, element-desktop"
"D, exec, ghostty"
"P, exec, bitwarden"
"W, exec, bitwarden"
# Workspaces
"1, workspace, 1"
"2, workspace, 2"
@ -39,55 +39,40 @@ let
"4, workspace, 4"
"5, workspace, 5"
# Windows
"Tab, killactive"
"X, killactive"
"F, togglefloating"
"Backspace, layoutmsg, togglesplit"
"Tab, fullscreen, 0"
# Window Focus
"C, movefocus, l"
"A, movefocus, u"
"E, movefocus, d"
"I, movefocus, r"
"F, splitratio, 0.33"
"O, splitratio, -0.33"
"Left, movefocus, l"
"Up, movefocus, u"
"Down, movefocus, d"
"Right, movefocus, r"
"bracketleft, splitratio, -0.33"
"bracketright, splitratio, 0.33"
# Audio
"Page_Up, exec, playerctl next"
"Page_Down, exec, playerctl previous"
"Home, exec, playerctl play-pause"
"Space, exec, fuzzel"
];
superShiftBinds = builtins.map (x: "SUPER SHIFT, " + x) [
# Super+shift binds
# Quick Action
"T, exec, ghostty"
"S, exec, flameshot gui"
"period, exec, emote"
"Tab, fullscreen, 0"
"Backspace, layoutmsg, togglesplit"
"P, pin, enable"
"F, togglefloating"
# "Print, exec, grim -g \"$(slurp)\""
# Utility
"End, exec, shutdown now"
"Insert, exec, systemctl reboot"
"Home, exec, swaylock"
];
superShiftBinds = builtins.map (x: "SUPER SHIFT, " + x) [
# Super+shift binds
"S, exec, flameshot gui"
"period, exec, emote"
# "Print, exec, grim -g \"$(slurp)\""
];
superCtrlBinds = builtins.map (x: "SUPER CTRL, " + x) [
# Super+shift binds
];
altBinds = builtins.map (x: "CTRL ALT, " + x) [
# Alt binds
"1, movetoworkspacesilent, 1"
"2, movetoworkspacesilent, 2"
"3, movetoworkspacesilent, 3"
"4, movetoworkspacesilent, 4"
"5, movetoworkspacesilent, 5"
# Window Move
"C, movewindow, l"
"A, movewindow, u"
"E, movewindow, d"
"I, movewindow, r"
];
shiftBinds = builtins.map (x: "SHIFT, " + x) [
@ -100,7 +85,17 @@ let
ctrlShiftBinds = builtins.map (x: "CTRL SHIFT, " + x) [
# Ctrl+shift binds
# "End, exec, shutdown now"
# Window
"1, movetoworkspacesilent, 1"
"2, movetoworkspacesilent, 2"
"3, movetoworkspacesilent, 3"
"4, movetoworkspacesilent, 4"
"5, movetoworkspacesilent, 5"
# Window Move
"Left, movewindow, l"
"Up, movewindow, u"
"Down, movewindow, d"
"Right, movewindow, r"
];
functionBinds = builtins.map (x: " , " + x) [

View file

@ -1,7 +1,7 @@
let
blueman = "(.blueman-manager-wrapped)";
calculator = "(org.gnome.Calculator)";
easyeffects = "(com.github.wwmm.easyeffects)";
pavucontrol = "(org.pulseaudio.pavucontrol)";
floorp = "(floorp)";
nomacs = "(org.nomacs.ImageLounge)";
mpv = "(mpv)";
@ -27,7 +27,6 @@ let
maxsizeWindows = [
"maxsize 720 400, class:^${blueman}$"
"maxsize 360 500, class:^${calculator}$"
"maxsize 720 400, class:^${easyeffects}$"
# "maxsize 720 400, class:^${scrcpy}$"
"maxsize 720 400, class:^${mpv}$"
"maxsize 720 400, class:^${vlc}$"
@ -40,13 +39,14 @@ let
"maxsize 1280 720, title:^${battle}$"
"minsize 1280 720, title:^${battle}$"
"maxsize 1280 720, title:^${upload}$"
"minsize 1280 720, class:^${pavucontrol}$"
"minsize 1280 720, title:^${upload}$"
];
floatWindows = builtins.map (x: "float, " + x) [
"class:^${blueman}$"
"class:^${calculator}$"
"class:^${easyeffects}$"
"class:^${pavucontrol}$"
"class:^${emote}$"
"class:^${mpv}$"
"class:^${vlc}$"
@ -95,7 +95,7 @@ let
centerWindows = builtins.map (x: "center, " + x) [
"class:^${blueman}$"
"class:^${calculator}$"
"class:^${easyeffects}$"
"class:^${pavucontrol}$"
"class:^${emote}$"
"class:^${mpv}$"
"class:^${vlc}$"

View file

@ -29,26 +29,29 @@ in
"Super+l".action = niri.spawn "slack";
"Super+h".action = niri.spawn "feishin";
"Super+g".action = niri.spawn "scrcpy";
"Super+k".action = niri.spawn "ghostty -e nu -e y";
"Super+e".action = niri.spawn "ghostty -e nu -e y";
"Super+s".action = niri.spawn "steam";
"Super+r".action = niri.spawn "ghostty -e zellij a dotfiles";
"Super+n".action = niri.spawn "signal-desktop";
"Super+t".action = niri.spawn "zeditor";
"Super+r".action = niri.spawn "thunar";
"Super+b".action = niri.spawn "floorp";
"Super+x".action = niri.spawn "freetube";
"Super+y".action = niri.spawn "freetube";
"Super+v".action = niri.spawn "vesktop";
"Super+m".action = niri.spawn "element-desktop";
"Super+d".action = niri.spawn "ghostty";
"Super+p".action = niri.spawn "bitwarden";
"Super+w".action = niri.spawn "bitwarden";
"Super+Space".action = niri.spawn "fuzzel";
"Super+Tab".action = niri.close-window;
"Super+u".action = niri.maximize-column;
"Super+comma".action = niri.focus-workspace-down;
"Super+period".action = niri.focus-workspace-up;
"Super+f".action = niri.swap-window-left;
"Super+o".action = niri.swap-window-right;
"Super+w".action = niri.switch-preset-column-width;
"Super+left".action = niri.move-column-left;
"Super+right".action = niri.move-column-right;
"Super+f".action = niri.fullscreen-window;
"Super+q".action = niri.switch-preset-column-width;
"Super+minus".action = niri.set-column-width "-10%";
"Super+plus".action = niri.set-column-width "+10%";
# "Ctrl+Alt+1".action = niri.move-window-to-workspace workspaceStrings.workspace0
# "Ctrl+Alt+2".action = niri.move-window-to-workspace workspaceStrings.workspace1
@ -68,15 +71,8 @@ in
"Super+3".action = niri.focus-window-or-workspace-down;
"Super+4".action = niri.focus-column-or-monitor-right;
"Super+Shift+t".action = niri.spawn "ghostty";
"Super+Shift+s".action = niri.spawn "flameshot gui";
"Super+Shift+period".action = niri.spawn "emote";
"Super+Shift+Tab".action = niri.fullscreen-window;
"Ctrl+Alt+c".action = niri.move-column-left;
"Ctrl+Alt+i".action = niri.move-column-right;
"Ctrl+Alt+f".action = niri.set-column-width "-10%";
"Ctrl+Alt+o".action = niri.set-column-width "+10%";
"XF86MonBrightnessUp".action = niri.spawn "brightnessctl -d ${deviceLogic "amdgpu_bl1" ""} s +10%";
"XF86MonBrightnessDown".action =

View file

@ -1,3 +1,3 @@
{
services.easyeffects.enable = true;
services.easyeffects.enable = false;
}

View file

@ -0,0 +1,11 @@
{
pkgs,
...
}:
{
home.packages = builtins.attrValues {
inherit (pkgs)
pavucontrol
;
};
}

View file

@ -104,7 +104,7 @@ in
format = "{icon} {volume}%";
tooltip = false;
format-muted = " Muted";
on-click = "easyeffects";
on-click = "pavucontrol";
on-scroll-up = "pactl set-sink-volume @DEFAULT_SINK@ +5%";
on-scroll-down = "pactl set-sink-volume @DEFAULT_SINK@ -5%";
scroll-step = 5;