chore: some package "cleanup"

this looks 100 times worse
This commit is contained in:
jacekpoz 2023-09-13 21:37:33 +02:00
parent 512eff90d2
commit 5ac326442d
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
3 changed files with 52 additions and 51 deletions

View file

@ -27,7 +27,7 @@
pad = "5x5 center";
resize-delay-ms = 100;
notify = "notify-send -a \${app-id} -i \${app-id} \${title} \${body}";
notify = "${pkgs.libnotify}/bin/notify-send -a \${app-id} -i \${app-id} \${title} \${body}";
bold-text-in-bright = "no";
word-delimiters = ",`|:\"'()[]{}<>";
@ -46,7 +46,7 @@
indicator-format = "line";
};
url = {
launch = "xdg-open \${url}";
launch = "${pkgs.xdg-utils}/bin/xdg-open \${url}";
label-letters = "sadfjklewcmpgh";
osc8-underline = "always";
protocols = "http, https, ftp, ftps, file, gemini, gopher, irc, ircs";

View file

@ -4,12 +4,23 @@
lib,
pkgs,
...
}: {
}: let
nixpkgs-wayland = inputs.nixpkgs-wayland.packages.${pkgs.system};
inherit (nixpkgs-wayland) foot;
inherit (nixpkgs-wayland) wl-clipboard;
inherit (nixpkgs-wayland) swww;
inherit (nixpkgs-wayland) wlsunset;
swaylock = nixpkgs-wayland.swaylock-effects;
inherit (inputs.anyrun.packages.${pkgs.system}) anyrun;
hyprcontrib = inputs.hyprcontrib.packages.${pkgs.system};
inherit (inputs.shadower.packages.${pkgs.system}) shadower;
inherit (inputs.hyprland.packages.${pkgs.system}) hyprland;
in {
wayland.windowManager.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
plugins = [
#inputs.hyprland-plugins.packages.${pkgs.system}.csgo-vulkan-fix
inputs.hyprland-plugins.packages.${pkgs.system}.csgo-vulkan-fix
inputs.split-monitor-workspaces.packages.${pkgs.system}.split-monitor-workspaces
];
extraConfig = ''
@ -141,13 +152,13 @@
windowrulev2 = float, class:^(org.keepassxc.KeePassXC)$
windowrulev2 = size 960 670, title:^(ROG Control Center)$
bind = SUPER, RETURN, exec, foot
bind = SUPER, RETURN, exec, ${foot}/bin/footclient
bind = SUPER, W, exec, ${lib.removeSuffix " %U" config.xdg.desktopEntries.firefox-schizo.exec}
bind = SUPERSHIFT, W, exec, ${lib.removeSuffix " %U" config.xdg.desktopEntries.firefox-unschizo.exec}
bind = SUPER, Q, killactive
bind = SUPER, F, fullscreen, 0
bind = SUPER, M, fullscreen, 1
bind = SUPER, D, exec, pkill anyrun || anyrun
bind = SUPER, D, exec, pkill anyrun || ${anyrun}/bin/anyrun
bind = SUPER, SPACE, togglefloating,
bind = SUPERSHIFT, C, centerwindow
bind = SUPER, R, bringactivetotop
@ -179,21 +190,21 @@
bind = SUPERSHIFT, 0, split-movetoworkspacesilent, 10
bindle = , XF86MonBrightnessUp, exec, ~/Scripts/notif_brightness.sh set +5%
bindle = , XF86MonBrightnessDown, exec, ~/Scripts/notif_brightness.sh set 5%-
bindl = , XF86AudioMedia, exec, playerctl play-pause
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioStop, exec, playerctl stop
bindl = , XF86AudioPrev, exec, playerctl previous
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioMedia, exec, ${pkgs.playerctl}/bin/playerctl play-pause
bindl = , XF86AudioPlay, exec, ${pkgs.playerctl}/bin/playerctl play-pause
bindl = , XF86AudioStop, exec, ${pkgs.playerctl}/bin/playerctl stop
bindl = , XF86AudioPrev, exec, ${pkgs.playerctl}/bin/playerctl previous
bindl = , XF86AudioNext, exec, ${pkgs.playerctl}/bin/playerctl next
bindle = , XF86AudioRaiseVolume, exec, ~/Scripts/notif_volume.sh -ui 5
bindle = , XF86AudioLowerVolume, exec, ~/Scripts/notif_volume.sh -ud 5
bindl = , XF86AudioMute, exec, ~/Scripts/notif_volume.sh --toggle-mute
bind = SUPER, S, exec, grimblast save area - | tee "$(xdg-user-dir PICTURES)/Screenshots/$(date +'screenshot-%Y%m%d%H%M%S.png')" | wl-copy && notify-send "Screenshot taken"
bind = SUPERSHIFT, S, exec, grimblast save area - | shadower | tee "$(xdg-user-dir PICTURES)/Screenshots/$(date +'screenshot-%Y%m%d%H%M%S.png')" | wl-copy && notify-send "Screenshot taken (shadower)"
bind = SUPERCONTROL, S, exec, grimblast save area - | swappy -f - -o - | tee "$(xdg-user-dir PICTURES)/Screenshots/$(date +'screenshot-%Y%m%d%H%M%S.png')" | wl-copy && notify-send "Screenshot taken"
bind = SUPERSHIFTCONTROL, S, exec, grimblast save area - | swappy -f - -o - | shadower | tee "$(xdg-user-dir PICTURES)/Screenshots/$(date +'screenshot-%Y%m%d%H%M%S.png')" | wl-copy && notify-send "Screenshot taken (shadower)"
bind = SUPER, S, exec, ${hyprcontrib.grimblast}/bin/grimblast save area - | ${pkgs.coreutils-full}/bin/tee "$(${pkgs.xdg-user-dirs}/bin/xdg-user-dir PICTURES)/Screenshots/$(date +'screenshot-%Y%m%d%H%M%S.png')" | ${wl-clipboard}/bin/wl-copy && ${pkgs.libnotify}/bin/notify-send "Screenshot taken"
bind = SUPERSHIFT, S, exec, ${hyprcontrib.grimblast}/bin/grimblast save area - | ${shadower}/bin/shadower | ${pkgs.coreutils-full}/bin/tee "$(${pkgs.xdg-user-dirs}/bin/xdg-user-dir PICTURES)/Screenshots/$(date +'screenshot-%Y%m%d%H%M%S.png')" | ${wl-clipboard}/bin/wl-copy && ${pkgs.libnotify}/bin/notify-send "Screenshot taken (shadower)"
bind = SUPERCONTROL, S, exec, ${hyprcontrib.grimblast}/bin/grimblast save area - | ${pkgs.swappy}/bin/swappy -f - -o - | ${pkgs.coreutils-full}/bin/tee "$(${pkgs.xdg-user-dirs}/bin/xdg-user-dir PICTURES)/Screenshots/$(date +'screenshot-%Y%m%d%H%M%S.png')" | ${wl-clipboard}/bin/wl-copy && ${pkgs.libnotify}/bin/notify-send "Screenshot taken"
bind = SUPERSHIFTCONTROL, S, exec, ${hyprcontrib.grimblast}/bin/grimblast save area - | ${pkgs.swappy}/bin/swappy -f - -o - | ${shadower}/bin/shadower | ${pkgs.coreutils-full}/bin/tee "$(${pkgs.xdg-user-dirs}/bin/xdg-user-dir PICTURES)/Screenshots/$(date +'screenshot-%Y%m%d%H%M%S.png')" | ${wl-clipboard}/bin/wl-copy && ${pkgs.libnotify}/bin/notify-send "Screenshot taken (shadower)"
bind = SUPERSHIFT, R, exec, hyprctl reload
bind = SUPERSHIFT, R, exec, ${hyprland}/bin/hyprctl reload
bind = SUPER, P, pin
bind = , XF86Launch1, exec, rog-control-center
binde = , XF86Launch3, exec, asusctl led-mode -n
@ -203,21 +214,17 @@
bind = , XF86TouchpadToggle, exec,
bind = SUPER, T, exec, grim -g "$(slurp)" -t ppm - | tesseract -l pol - - | wl-copy && notify-send "Copied text: " "\"$(wl-paste)\""
bind = SUPER, SEMICOLON, exec, ~/.config/rofi/powermenu/type-2/powermenu.sh
bind = SUPER, X, exec, keepassxc
bind = SUPERSHIFT, M, exec, ~/Scripts/man.sh
bind = SUPER, E, exec, wl-paste | spd-say -e -w -i 10
bind = SUPERCONTROL, E, exec, wl-paste | spd-say -e -w -i 10 -l pl
bind = SUPERSHIFT, E, exec, spd-say -C
bind = SUPER, X, exec, ${pkgs.keepassxc}/bin/keepassxc
bind = SUPER, G, togglegroup
binde = SUPERSHIFT, G, changegroupactive, f
bind = SUPERCONTROL, R, exec, replay-sorcery save
bind = SUPERCONTROL, X, exec, systemctl --user restart xdg-desktop-portal-hyprland
bind = SUPERSHIFT, X, exec, hyprctl kill
bind = SUPERCONTROL, X, exec, ${pkgs.systemd}/bin/systemctl --user restart xdg-desktop-portal-hyprland
bind = SUPERSHIFT, X, exec, ${hyprland}/bin/hyprctl kill
bind = SUPER, B, togglespecialworkspace, btop
bind = SUPER, A, togglespecialworkspace, amdgpu_top
bind = SUPER, V, togglespecialworkspace, helvum
bind = SUPER, N, togglespecialworkspace, nixos
bind = SUPER, C, exec, swaylock
bind = SUPER, C, exec, ${swaylock}/bin/swaylock
bindm = SUPER, mouse:272, movewindow
bindm = SUPER, mouse:273, resizewindow
@ -226,47 +233,41 @@
pass_mouse_when_bound=0
}
exec-once=systemctl start --user waybar.service
exec=systemctl restart --user waybar.service
exec-once=${pkgs.systemd}/bin/systemctl start --user waybar.service
exec=${pkgs.systemd}/bin/systemctl restart --user waybar.service
exec=pkill btop
exec=pkill amdgpu_top
exec=pkill helvum
exec=[workspace special:btop silent;tile] foot btop
exec=[workspace special:amdgpu_top silent] amdgpu_top --gui -i 0
exec=[workspace special:amdgpu_top silent] amdgpu_top --gui -i 1
exec=[workspace special:helvum silent] helvum
exec-once=[workspace special:nixos silent;tile] cd niksos; foot
exec=[workspace special:btop silent;tile] ${foot}/bin/foot ${pkgs.btop}/bin/btop
exec=[workspace special:amdgpu_top silent] ${pkgs.amdgpu_top}/bin/amdgpu_top --gui -i 0
exec=[workspace special:amdgpu_top silent] ${pkgs.amdgpu_top}/bin/amdgpu_top --gui -i 1
exec=[workspace special:helvum silent] ${pkgs.helvum}/bin/helvum
exec-once=[workspace special:nixos silent;tile] cd niksos; ${foot}/bin/foot
exec-once=foot --server
exec-once=hyprctl setcursor Bibata-Modern-Classic 24
exec-once=${foot}/bin/foot --server
exec-once=${hyprland}/bin/hyprctl setcursor Bibata-Modern-Classic 24
exec-once=wl-paste --watch cliphist store
#exec-once=${wl-clipboard}/bin/wl-paste --watch cliphist store
exec-once=swww init && sleep 0.5
exec=swww img -o eDP-1 ~/catppuccin-wall0.png
exec=swww img -o HDMI-A-1 ~/catppuccin-wall1.png
exec-once=${swww}/bin/swww init && sleep 0.5
exec=${swww}/bin/swww img -o eDP-1 ~/catppuccin-wall0.png
exec=${swww}/bin/swww img -o HDMI-A-1 ~/catppuccin-wall1.png
exec-once=rog-control-center
exec-once=wlsunset -S 06:00 -s 20:00
exec-once=${wlsunset}/bin/wlsunset -S 06:00 -s 20:00
exec-once=sleep 1 && keepassxc
exec-once=sleep 1 && ${pkgs.keepassxc}/bin/keepassxc
exec-once=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once=${pkgs.networkmanagerapplet}/bin/nm-applet --indicator
#exec-once=foot -e nvim ~/todo.md
exec-once=nm-applet --indicator
exec-once=blueman-applet
exec-once=$HOME/.local/share/hyprload/hyprload.sh
exec-once=${pkgs.blueman}/bin/blueman-applet
#exec-once=fcitx5 -d
exec-once=systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP
exec-once=${pkgs.systemd}/bin/systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once=${pkgs.dbus}/bin/dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP
# no black border on grimblast screenshots
layerrule = noanim, ^(selection)$

View file

@ -22,7 +22,7 @@
format-icons = {
default = ["󰕿" "󰖀" "󰕾"];
};
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
on-click = "${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
};
"hyprland/workspaces" = {
sort-by-name = true;
@ -213,7 +213,7 @@
signal = 8;
};
"custom/xwayland" = {
exec = "${pkgs.hyprland}/bin/hyprctl clients | ${pkgs.ripgrep}/bin/rg -e 'xwayland: [1]' | ${pkgs.coreutils-full}/bin/wc -l";
exec = "${inputs.hyprland.packages.${pkgs.system}.hyprland}/bin/hyprctl clients | ${pkgs.ripgrep}/bin/rg -e 'xwayland: [1]' | ${pkgs.coreutils-full}/bin/wc -l";
interval = 1;
format = "X {}";
};