diff --git a/apps/hyprland/hypr/default.nix b/apps/hyprland/hypr/default.nix index e4e9614..62b9064 100644 --- a/apps/hyprland/hypr/default.nix +++ b/apps/hyprland/hypr/default.nix @@ -8,7 +8,7 @@ programs.hyprland.enable = true; programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland; users.users.delta.packages = with pkgs; [ - swww stable.waybar stable.swaynotificationcenter cliphist fzf hyprshot slurp grim swaylock hypridle libnotify brightnessctl pamixer python3 + swww stable.waybar stable.swaynotificationcenter cliphist fzf hyprshot slurp grim swaylock hypridle libnotify brightnessctl pamixer python3 grimblast networkmanagerapplet ]; # environment.systemPackages = [ # inputs.hyprland-contrib.packages.${pkgs.system}.grimblast.override { license = licenses.gpl3; } diff --git a/apps/hyprland/hypr/hypridle.conf b/apps/hyprland/hypr/hypridle.conf index 28d0de7..ab0534a 100644 --- a/apps/hyprland/hypr/hypridle.conf +++ b/apps/hyprland/hypr/hypridle.conf @@ -4,8 +4,8 @@ general { } listener { - timeout = 245 - before_sleep_cmd = notify-send -h string:x-canonical-private-synchronous:sys-notify -t 2400 -i face-yawn-symbolic 'Sleep' 'will inhibit in minute' + timeout = 200z + before_sleep_cmd = notify-send -h string:x-canonical-private-synchronous:sys-notify -t 2400 -i face-yawn-symbolic 'Sleep' 'will inhibit soon' } ` listener { diff --git a/apps/hyprland/hypr/hyprland.conf b/apps/hyprland/hypr/hyprland.conf index 6674c0a..dda448a 100644 --- a/apps/hyprland/hypr/hyprland.conf +++ b/apps/hyprland/hypr/hyprland.conf @@ -29,9 +29,11 @@ exec-once = swww init exec-once = sh -c "sleep 1 && swww clear" #exec-once = swww img Downloads/PC\ Wallpapers/gifpixel/rooftop.gif #exec-once = mpvpaper '*' -o "video-scale-y=1.1 --gpu-context=wayland --vo=gpu --hwdec=vaapi-copy" videowork/bgloop.webm -exec-once = gtk-launch autostart +# exec-once = gtk-launch autostart +exec-once = exec-once = waybar -c ~/.config/waybar/config-online.jsonc #exec-once = ags +exec-once = nm-applet exec-once = swaync @@ -82,6 +84,8 @@ input { follow_mouse = 1 mouse_refocus = false + accel_profile = adaptive + touchpad { natural_scroll = no #disable_while_typing = false @@ -98,7 +102,7 @@ general { border_size = 1 no_border_on_floating = true cursor_inactive_timeout = 3 - #no_cursor_warps = true + no_cursor_warps = true #col.active_border = rgba(7287fdee) rgba(179299ee) 45deg col.active_border = rgba(7287fdee) @@ -190,7 +194,7 @@ master { gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more - #workspace_swipe_direction_lock = off + # workspace_swipe_direction_lock = off workspace_swipe = true workspace_swipe_fingers = 3 workspace_swipe_cancel_ratio = 0.15 @@ -202,6 +206,7 @@ gestures { # sensitivity = -0.5 # } + # Example windowrule v1 #windowrule = float, ^(kitty)$ windowrule = float,^(pavucontrol)$ @@ -238,10 +243,10 @@ windowrulev2 = stayfocused,class:^(swlauncher)$ windowrulev2 = center,class:^(swlauncher)$ windowrulev2 = size 28% 50%,class:^(swlauncher)$ -windowrulev2 = size 100% 100%,class:^(kitty_drop)$ -windowrulev2 = minsize 100%,100%,class:^(kitty_drop)$ -windowrulev2 = maxsize 100%,100%,class:^(kitty_drop)$ -windowrulev2 = center,class:^(kitty_drop)$ +# windowrulev2 = size 100% 100%,class:^(kitty_drop)$ +# windowrulev2 = minsize 100%,100%,class:^(kitty_drop)$ +# windowrulev2 = maxsize 100%,100%,class:^(kitty_drop)$ +# windowrulev2 = center,class:^(kitty_drop)$ windowrulev2 = float,class:^(clipmanager)$ windowrulev2 = noanim,class:^(clipmanager)$ @@ -252,9 +257,10 @@ windowrulev2 = size 60% 45%,class:^(clipmanager)$ #foot clipboard-manager windowrulev2 = float,title:^(clipboard_manager)$ windowrulev2 = noanim,title:^(clipboard_manager)$ -windowrulev2 = stayfocused,title:^(clipboard_manager)$ +# windowrulev2 = stayfocused,title:^(clipboard_manager)$ windowrulev2 = center,title:^(clipboard_manager)$ windowrulev2 = size 45% 45%,title:^(clipboard_manager)$ +windowrulev2 = pin,title:^(clipboard_manager)$ # windowrulev2 = opacity 0.7,title:^(clipboard_manager)$ @@ -283,7 +289,11 @@ windowrulev2 = noblur, class:^(steam)$ windowrulev2 = noshadow, class:^(steam)$ windowrule = noblur,^(firefox)$ # disables blur for firefox + windowrule = noblur,^(kitty_drop)$ +windowrulev2 = float,class:^(kitty_drop)$ +windowrulev2 = noanim,class:^(kitty_drop)$ +windowrulev2 = stayfocused,class:^(kitty_drop)$ #layerrules #layerrule = noanim, swaync-notification-window @@ -308,11 +318,11 @@ bind = $mainMod, U, togglesplit # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more #bind = $mainMod, Q, exec, kitty #open the terminal #bind = $mainMod, RETURN, exec, footclient #open the terminal -bind = ALT, RETURN, exec, sh -c "/home/delta/.config/hypr/hdrop -p t -f kitty --class kitty_drop" bind = $mainMod, RETURN, exec, footclient bind = $mainMod, Q, exec, footclient -bind = SHIFT ALT, X, exec, sh -c "/home/delta/.config/hypr/hdrop -h '60' -f 'keepassxc_lite' --class org.keepassxc.KeePassXC" -bind = ALT, T, exec, sh -c "/home/delta/.config/hypr/hdrop -h '60' -f 'telegram-desktop' --class org.telegram.desktop" +bind = ALT, RETURN, exec, sh -c "/home/delta/.config/hypr/hdrop -g '30' -h '98' -p t -f kitty --class kitty_drop" +bind = SHIFT ALT, X, exec, sh -c "/home/delta/.config/hypr/hdrop -g '30' -h '60' -f 'keepassxc_lite' --class org.keepassxc.KeePassXC" +bind = ALT, T, exec, sh -c "QT_QPA_PLATFORM=xcb /home/delta/.config/hypr/hdrop -h '60' -g '30' -f 'telegram-desktop' --class org.telegram.desktop" #bind = $mainMod SHIFT, RETURN, exec, alacritty #open the terminal # bind = $mainMod, Q, exec, wezterm #open the terminal #bind = $mainMod, Q, exec, alacritty #open the terminal @@ -350,8 +360,9 @@ bind = ALT, SPACE, exec, pypr shift_monitors +1 # K R A S I V O bind = $mainMod, P, pseudo, # dwindle #bind = $mainMod, J, togglesplit, # dwindle #bind = $mainMod, S, exec, grim -g "$(slurp)" - | tee >(swappy -f -) | wl-copy # take a screenshot -bind = $mainMod, S, exec, hyprshot -m region --clipboard-only -s # take a screenshot -bind = $mainMod, Print, exec, /home/delta/scripts/screenshoter.sh # take a screenshot +bind = $mainMod, S, exec, grimblast --freeze copy area # take a screenshot +bind = $mainMod, Print, exec, /home/delta/.config/hypr/grimblast.sh # take a screenshot +# bind = $mainMod, Print, exec, /home/delta/scripts/screenshoter.sh # take a screenshot bind = ,Print , exec, wl-paste | swappy -f - # take a screenshot #bind = $mainMod, S, exec, /home/delta/screenshoter.sh # take a screenshot #bind = $mainMod, S, exec, hyprshot -m output -s -c --clipboard-only # take a screenshot diff --git a/home/home.nix b/home/home.nix index 2f13b9b..5d7c0a9 100644 --- a/home/home.nix +++ b/home/home.nix @@ -118,7 +118,7 @@ background = "#171717"; foreground = "#DCDCCC"; background_opacity = "0.8"; - remember_window_size = "yes"; + remember_window_size = "no"; hide_window_decorations = "yes"; remote_control_password = "kitty-notification-password-fish ls"; allow_remote_control = "password";