mirror of
https://github.com/deltathetawastaken/dotfiles.git
synced 2025-12-06 07:16:37 +03:00
many hyprland upd
This commit is contained in:
parent
867aa72e7d
commit
1aa4b9437c
|
|
@ -94,6 +94,8 @@ in {
|
||||||
# overrides.input-fonts
|
# overrides.input-fonts
|
||||||
stable.peazip
|
stable.peazip
|
||||||
element-desktop
|
element-desktop
|
||||||
|
qrtool
|
||||||
|
appimage-run
|
||||||
]);
|
]);
|
||||||
|
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
|
|
@ -187,6 +189,7 @@ in {
|
||||||
programs.xfconf.enable = true;
|
programs.xfconf.enable = true;
|
||||||
programs.virt-manager.enable = true;
|
programs.virt-manager.enable = true;
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
programs.steam.gamescopeSession.enable = true;
|
||||||
programs.gamemode.enable = true;
|
programs.gamemode.enable = true;
|
||||||
programs.thunar.enable = true;
|
programs.thunar.enable = true;
|
||||||
# programs.thunar.plugins = with pkgs.xfce; [
|
# programs.thunar.plugins = with pkgs.xfce; [
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
* {
|
* {
|
||||||
transition: 200ms ease;
|
transition: 200ms ease;
|
||||||
font-family: "Iosevka Nerd Font";
|
font-family: "Iosevka Diosevka";
|
||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,14 @@ general {
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
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'
|
before_sleep_cmd = notify-send -h string:x-canonical-private-synchronous:sys-notify -t 2400 -i face-yawn-symbolic 'Sleep' 'will inhibit soon'
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
listener {
|
listener {
|
||||||
timeout = 250 # in seconds
|
timeout = 230 # in seconds
|
||||||
on-timeout = brightnessctl -d platform::kbd_backlight s 0 # command to run when timeout has passed
|
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 = brightnessctl -d platform::kbd_backlight s 1 # command to run when activity is detected after timeout has fired.
|
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 {
|
listener {
|
||||||
|
|
|
||||||
|
|
@ -257,7 +257,7 @@ windowrulev2 = size 60% 45%,class:^(clipmanager)$
|
||||||
#foot clipboard-manager
|
#foot clipboard-manager
|
||||||
windowrulev2 = float,title:^(clipboard_manager)$
|
windowrulev2 = float,title:^(clipboard_manager)$
|
||||||
windowrulev2 = noanim,title:^(clipboard_manager)$
|
windowrulev2 = noanim,title:^(clipboard_manager)$
|
||||||
# windowrulev2 = stayfocused,title:^(clipboard_manager)$
|
windowrulev2 = stayfocused,title:^(clipboard_manager)$
|
||||||
windowrulev2 = center,title:^(clipboard_manager)$
|
windowrulev2 = center,title:^(clipboard_manager)$
|
||||||
windowrulev2 = size 45% 45%,title:^(clipboard_manager)$
|
windowrulev2 = size 45% 45%,title:^(clipboard_manager)$
|
||||||
windowrulev2 = pin,title:^(clipboard_manager)$
|
windowrulev2 = pin,title:^(clipboard_manager)$
|
||||||
|
|
@ -289,14 +289,17 @@ windowrulev2 = noblur, class:^(steam)$
|
||||||
windowrulev2 = noshadow, class:^(steam)$
|
windowrulev2 = noshadow, class:^(steam)$
|
||||||
|
|
||||||
windowrule = noblur,^(firefox)$ # disables blur for firefox
|
windowrule = noblur,^(firefox)$ # disables blur for firefox
|
||||||
|
windowrule = noblur,^(TelegramDesktop)$
|
||||||
|
|
||||||
|
|
||||||
windowrule = noblur,^(kitty_drop)$
|
windowrule = noblur,^(kitty_drop)$
|
||||||
windowrulev2 = float,class:^(kitty_drop)$
|
windowrulev2 = float,class:^(kitty_drop)$
|
||||||
windowrulev2 = noanim,class:^(kitty_drop)$
|
windowrulev2 = noanim,class:^(kitty_drop)$
|
||||||
windowrulev2 = stayfocused,class:^(kitty_drop)$
|
windowrulev2 = stayfocused,class:^(kitty_drop)$
|
||||||
|
windowrulev2 = center 1,class:^(kitty_drop)$
|
||||||
|
|
||||||
#layerrules
|
#layerrules
|
||||||
#layerrule = noanim, swaync-notification-window
|
layerrule = noanim, swaync-notification-window
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
|
|
@ -321,8 +324,8 @@ bind = $mainMod, U, togglesplit
|
||||||
bind = $mainMod, RETURN, exec, footclient
|
bind = $mainMod, RETURN, exec, footclient
|
||||||
bind = $mainMod, Q, 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 = 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, 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, 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 SHIFT, RETURN, exec, alacritty #open the terminal
|
||||||
# bind = $mainMod, Q, exec, wezterm #open the terminal
|
# bind = $mainMod, Q, exec, wezterm #open the terminal
|
||||||
#bind = $mainMod, Q, exec, alacritty #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, J, togglesplit, # dwindle
|
||||||
#bind = $mainMod, S, exec, grim -g "$(slurp)" - | tee >(swappy -f -) | wl-copy # take a screenshot
|
#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, 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/.config/hypr/grimblast.sh # take a screenshot
|
||||||
# bind = $mainMod, Print, exec, /home/delta/scripts/screenshoter.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 = ,Print , exec, wl-paste | swappy -f - # take a screenshot
|
||||||
|
|
|
||||||
31
apps/hyprland/scripts/DM/brightness-kbd.sh
Executable file
31
apps/hyprland/scripts/DM/brightness-kbd.sh
Executable file
|
|
@ -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
|
||||||
31
apps/hyprland/scripts/DM/brightness.sh
Executable file
31
apps/hyprland/scripts/DM/brightness.sh
Executable file
|
|
@ -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
|
||||||
|
|
@ -94,16 +94,7 @@ in {
|
||||||
name = "vesktop";
|
name = "vesktop";
|
||||||
paths = [ (unstable.vesktop.override {
|
paths = [ (unstable.vesktop.override {
|
||||||
electron = unstable.electron;
|
electron = unstable.electron;
|
||||||
vencord = unstable.vencord.overrideAttrs rec {
|
withSystemVencord = false;
|
||||||
version = "unstable-0bebc85";
|
|
||||||
gitHash = "0bebc85";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "Vendicated";
|
|
||||||
repo = "Vencord";
|
|
||||||
rev = "0bebc85";
|
|
||||||
hash = "sha256-Td+Juf7OhyNilowwKQL4Gw/HrVpzAwNzLR5Vi6S5Bys=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) ];
|
}) ];
|
||||||
buildInputs = [ pkgs.makeWrapper ];
|
buildInputs = [ pkgs.makeWrapper ];
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue