This commit is contained in:
Hadi
2024-03-13 19:26:10 +01:00
parent 7632c0fd10
commit a189d592ed
12 changed files with 71 additions and 111 deletions

View File

@@ -30,7 +30,8 @@
"$menu" = "menu";
"$powermenu" = "${pkgs.wlogout}/bin/wlogout";
exec-once = [ "hypridle" "hyprpaper"];
exec-once =
[ "${pkgs.hypridle}/bin/hypridle" "${pkgs.hyprpaper}/bin/hyprpaper" ];
monitor = [
"eDP-2,highres,0x0,1"
@@ -39,14 +40,14 @@
];
bind = [
"$mod, RETURN, exec, kitty"
"$mod, RETURN, exec, ${pkgs.kitty}/bin/kitty"
"$mod, Q, killactive,"
"$mod, E, exec, thunar"
"$mod, E, exec, ${pkgs.xfce.thunar}/bin/thunar"
"$mod, T, togglefloating,"
"$mod, F, fullscreen"
"$mod, B, exec, qutebrowser"
"$mod, C, exec, kitty --class floating peaclock"
"$mod, L, exec, hyprlock"
"$mod, B, exec, ${pkgs.qutebrowser}/bin/qutebrowser"
"$mod, C, exec, ${pkgs.kitty}/bin/kitty --class floating peaclock"
"$mod, L, exec, ${pkgs.hyprlock}/bin/hyprlock"
"$mod, SPACE, exec, $menu"
"$mod, X, exec, $powermenu"
"$mod, left, movefocus, l"
@@ -64,35 +65,34 @@
bindl = [
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle"
",switch:Lid Switch, exec, hyprlock"
",switch:Lid Switch, exec, ${pkgs.hyprlock}/bin/hyprlock"
];
bindle = [
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
", XF86MonBrightnessUp, exec, brightnessctl set 10%+"
", XF86MonBrightnessDown, exec, brightnessctl set 10%-"
", XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 10%+"
", XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 10%-"
];
env = [
"XCURSOR_SIZE,24"
"LIBVA_DRIVER_NAME,nvidia"
"XDG_SESSION_TYPE,wayland"
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
"WLR_NO_HARDWARE_CURSORS,1"
"QT_QPA_PLATFORMTHEME,qt5ct"
"SWWW_TRANSITION,wipe"
"WLR_DRM_DEVICES,/dev/dri/card0:/dev/dri/card1"
"XDG_SESSION_TYPE,wayland"
"XDG_CURRENT_DESKTOP,Hyprland"
"XDG_SESSION_TYPE,wayland"
"XDG_SESSION_DESKTOP,Hyprland"
"QT_QPA_PLATFORMTHEME,qt5ct"
"QT_AUTO_SCREEN_SCALE_FACTOR,1"
"QT_QPA_PLATFORM=wayland,xcb"
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
"QT_STYLE_OVERRIDE,Adwaita-Dark"
"T_QPA_PLATFORMTHEME,qt5ct"
"WLR_DRM_DEVICES,/dev/dri/card0:/dev/dri/card1"
"GTK_THEME,Adwaita:dark"
"GTK2_RC_FILES,/usr/share/themes/Adwaita-dark/gtk-2.0/gtkrc"
"QT_STYLE_OVERRIDE,Adwaita-Dark"
];
general = {

View File

@@ -1,23 +1,23 @@
{ pkgs, ... }: {
{ config, pkgs, ... }: {
home.packages = with pkgs; [ hypridle ];
xdg.configFile."hypr/hypridle.conf".text = ''
general {
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam)
ignore_dbus_inhibit = false
}
# Screenlock
listener {
timeout = 600 # in seconds
on-timeout = hyprlock # command to run when timeout has passed
on-resume = notify-send "Welcome back hadi!" # command to run when activity is detected after timeout has fired.
timeout = 600
on-timeout = ${pkgs.hyprlock}/bin/hyprlock
on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back ${config.home.username}!"
}
# Suspend
listener {
timeout = 660 # in seconds
on-timeout = systemctl suspend # command to run when timeout has passed
# on-resume = notify-send "Welcome back to your desktop!" # command to run when activity is detected after timeout has fired.
timeout = 660
on-timeout = systemctl suspend
# on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back to your desktop!"
}
'';
}

View File

@@ -5,14 +5,13 @@
xdg.configFile."hypr/hyprlock.conf".text = ''
background {
monitor =
path = $HOME/.config/wallpaper/default.png # only png supported for now
path = $HOME/.config/wallpaper/${config.theme.wallpaper}
color = rgb(${config.theme.colors.bg})
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
blur_size = 4
blur_passes = 3 # 0 disables blurring
blur_passes = 3
noise = 0.0117
contrast = 1.3000 # Vibrant!!!
contrast = 1.3000
brightness = 0.8000
vibrancy = 0.2100
vibrancy_darkness = 0.0

View File

@@ -2,7 +2,9 @@
home.packages = with pkgs; [ hyprpaper ];
xdg.configFile."hypr/hyprpaper.conf".text = ''
preload = ~/.config/wallpaper/${config.theme.wallpaper}
preload = ~/.config/wallpaper/${config.theme.wallpaper}
wallpaper = ,~/.config/wallpaper/${config.theme.wallpaper}
ipc=true
splash=false
'';
}