diff --git a/home/default.nix b/home/default.nix index 4687c04..e581aaa 100644 --- a/home/default.nix +++ b/home/default.nix @@ -9,6 +9,7 @@ ./kitty.nix ./librewolf.nix ./neovim.nix + ./swaylock.nix ./waybar.nix ./xcursor.nix ./xresources.nix diff --git a/home/hyprland.nix b/home/hyprland.nix index 99212af..9ed4ebe 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -58,12 +58,12 @@ in { dwindle { preserve_split = yes - pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below - +# pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below } master { new_is_master = true + new_on_top = no } misc { @@ -91,12 +91,12 @@ in { bindm = $SUPER, mouse:272, movewindow bindm = $SUPER, mouse:273, resizewindow -# # Change volume with keys -# bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && notify-send -t 2000 "Muted" "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" -# bindl=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ && notify-send -t 2000 "Raised volume to" "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | tail -c 3)%" -# bindl=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && notify-send -t 2000 "Lowered volume to" "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | tail -c 3)%" -# bindl=, XF86MonBrightnessDown, exec, brightnessctl set 5%- && notify-send -t 2000 "Decreased brightness to" "$(brightnessctl get)" -# bindl=, XF86MonBrightnessUp, exec, brightnessctl set +5% && notify-send -t 2000 "Increased brightness to" "$(brightnessctl get)" + # Change volume with keys + bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && notify-send -t 2000 "Muted" "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)" + bindl=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ && notify-send -t 2000 "Raised volume to" "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | tail -c 3)%" + bindl=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && notify-send -t 2000 "Lowered volume to" "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | tail -c 3)%" + bindl=, XF86MonBrightnessDown, exec, brightnessctl set 5%- && notify-send -t 2000 "Decreased brightness to" "$(brightnessctl get)" + bindl=, XF86MonBrightnessUp, exec, brightnessctl set +5% && notify-send -t 2000 "Increased brightness to" "$(brightnessctl get)" ''; } diff --git a/home/swaylock.nix b/home/swaylock.nix new file mode 100644 index 0000000..773e58c --- /dev/null +++ b/home/swaylock.nix @@ -0,0 +1,21 @@ +{ pkgs, ... }: + +{ + programs.swaylock = { + package = pkgs."swaylock-effects"; + + settings = { + show-keyboard-layout = true; + daemonize = true; + effect-blur = "20x2"; + clock = true; + indicator = true; + font-size = 25; + indicator-radius = 85; + indicator-thickness = 16; + screenshots = true; + fade-in = 1; + }; + }; +} +