diff --git a/apps/apps.nix b/apps/apps.nix index 75c0680..2de1387 100644 --- a/apps/apps.nix +++ b/apps/apps.nix @@ -94,6 +94,8 @@ in { # overrides.input-fonts stable.peazip element-desktop + qrtool + appimage-run ]); programs.firefox = { @@ -187,6 +189,7 @@ in { programs.xfconf.enable = true; programs.virt-manager.enable = true; programs.steam.enable = true; + programs.steam.gamescopeSession.enable = true; programs.gamemode.enable = true; programs.thunar.enable = true; # programs.thunar.plugins = with pkgs.xfce; [ diff --git a/apps/hyprland/anyrun/default.nix b/apps/hyprland/anyrun/default.nix index d28da76..4321df9 100644 --- a/apps/hyprland/anyrun/default.nix +++ b/apps/hyprland/anyrun/default.nix @@ -41,7 +41,7 @@ * { transition: 200ms ease; - font-family: "Iosevka Nerd Font"; + font-family: "Iosevka Diosevka"; font-size: 1.3rem; } diff --git a/apps/hyprland/hypr/hypridle.conf b/apps/hyprland/hypr/hypridle.conf index ab0534a..b4aebb0 100644 --- a/apps/hyprland/hypr/hypridle.conf +++ b/apps/hyprland/hypr/hypridle.conf @@ -4,14 +4,14 @@ general { } listener { - timeout = 200z + timeout = 200 before_sleep_cmd = notify-send -h string:x-canonical-private-synchronous:sys-notify -t 2400 -i face-yawn-symbolic 'Sleep' 'will inhibit soon' } ` listener { - timeout = 250 # in seconds - on-timeout = brightnessctl -d platform::kbd_backlight s 0 # command to run when timeout has passed - on-resume = brightnessctl -d platform::kbd_backlight s 1 # command to run when activity is detected after timeout has fired. + timeout = 230 # in seconds + on-timeout = /home/delta/Documents/dotfiles/apps/hyprland/scripts/DM/brightness-kbd.sh on-timeout && /home/delta/Documents/dotfiles/apps/hyprland/scripts/DM/brightness.sh on-timeout # command to run when timeout has passed + on-resume = /home/delta/Documents/dotfiles/apps/hyprland/scripts/DM/brightness-kbd.sh on-resume && /home/delta/Documents/dotfiles/apps/hyprland/scripts/DM/brightness.sh on-resume # command to run when activity is detected after timeout has fired. } listener { diff --git a/apps/hyprland/hypr/hyprland.conf b/apps/hyprland/hypr/hyprland.conf index dda448a..2dccf40 100644 --- a/apps/hyprland/hypr/hyprland.conf +++ b/apps/hyprland/hypr/hyprland.conf @@ -257,7 +257,7 @@ 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)$ @@ -289,14 +289,17 @@ windowrulev2 = noblur, class:^(steam)$ windowrulev2 = noshadow, class:^(steam)$ windowrule = noblur,^(firefox)$ # disables blur for firefox +windowrule = noblur,^(TelegramDesktop)$ + windowrule = noblur,^(kitty_drop)$ windowrulev2 = float,class:^(kitty_drop)$ windowrulev2 = noanim,class:^(kitty_drop)$ windowrulev2 = stayfocused,class:^(kitty_drop)$ +windowrulev2 = center 1,class:^(kitty_drop)$ #layerrules -#layerrule = noanim, swaync-notification-window +layerrule = noanim, swaync-notification-window # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER @@ -321,8 +324,8 @@ bind = $mainMod, U, togglesplit bind = $mainMod, RETURN, exec, footclient bind = $mainMod, Q, exec, footclient 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 = 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 TelegramDesktop" #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 @@ -361,6 +364,7 @@ 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, grimblast --freeze copy area # take a screenshot +bind = $mainMod SHIFT, S, exec, grim -g "$(slurp)" - | qrtool decode | tee >(wl-copy) >(notify-send --icon=clipboard "QR Code Content" "$(cat)") 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 diff --git a/apps/hyprland/scripts/DM/brightness-kbd.sh b/apps/hyprland/scripts/DM/brightness-kbd.sh new file mode 100755 index 0000000..691f88e --- /dev/null +++ b/apps/hyprland/scripts/DM/brightness-kbd.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +old_brightness_file="/tmp/old_kbd_brightness" + +lower_brightness() { + brightnessctl -d platform::kbd_backlight get > "$old_brightness_file" + brightnessctl -d platform::kbd_backlight set 0 # Set keyboard backlight to minimum +} + +restore_brightness() { + echo "Restoring keyboard backlight brightness..." + if [[ -f "$old_brightness_file" ]]; then + old_brightness=$(cat "$old_brightness_file") + brightnessctl -d platform::kbd_backlight set "$old_brightness" + else + echo "No old keyboard backlight brightness level found." + fi +} + +case "$1" in + "on-timeout") + lower_brightness + ;; + "on-resume") + restore_brightness + ;; + *) + echo "Usage: $0 {on-timeout|on-resume}" + exit 1 + ;; +esac diff --git a/apps/hyprland/scripts/DM/brightness.sh b/apps/hyprland/scripts/DM/brightness.sh new file mode 100755 index 0000000..f0e6146 --- /dev/null +++ b/apps/hyprland/scripts/DM/brightness.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +old_brightness_file="/tmp/old_brightness" + +lower_brightness() { + brightnessctl get > "$old_brightness_file" + brightnessctl set 10% # Adjust percentage as desired +} + +restore_brightness() { + echo "Restoring brightness..." + if [[ -f "$old_brightness_file" ]]; then + old_brightness=$(cat "$old_brightness_file") + brightnessctl set "$old_brightness" + else + echo "No old brightness level found." + fi +} + +case "$1" in + "on-timeout") + lower_brightness + ;; + "on-resume") + restore_brightness + ;; + *) + echo "Usage: $0 {on-timeout|on-resume}" + exit 1 + ;; +esac diff --git a/apps/hyprland/scripts/default.nix b/apps/hyprland/scripts/default.nix index 9913631..facb35d 100644 --- a/apps/hyprland/scripts/default.nix +++ b/apps/hyprland/scripts/default.nix @@ -1,4 +1,4 @@ { ... }: { - -} \ No newline at end of file + +} diff --git a/apps/overrides.nix b/apps/overrides.nix index cf798ee..09df5ab 100644 --- a/apps/overrides.nix +++ b/apps/overrides.nix @@ -94,16 +94,7 @@ in { name = "vesktop"; paths = [ (unstable.vesktop.override { electron = unstable.electron; - vencord = unstable.vencord.overrideAttrs rec { - version = "unstable-0bebc85"; - gitHash = "0bebc85"; - src = pkgs.fetchFromGitHub { - owner = "Vendicated"; - repo = "Vencord"; - rev = "0bebc85"; - hash = "sha256-Td+Juf7OhyNilowwKQL4Gw/HrVpzAwNzLR5Vi6S5Bys="; - }; - }; + withSystemVencord = false; }) ]; buildInputs = [ pkgs.makeWrapper ]; postBuild = ''