summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2025-08-29 22:54:30 +0300
committerKyren223 <contact@kyren.codes>2025-08-29 22:54:30 +0300
commit028f76c86d0f476341760934b8c48896c52c9468 (patch)
treedffe6839a1d6836d58e2d043eeb7f259f03fbdb5
parent3f9f234ec096681b47cdd2b04f40831afd29ed76 (diff)
Added notifications to hyprland
-rw-r--r--.config/hypr/hyprland.conf24
-rw-r--r--modules/apps.nix1
2 files changed, 16 insertions, 9 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf
index b196ec5..7f1c35f 100644
--- a/.config/hypr/hyprland.conf
+++ b/.config/hypr/hyprland.conf
@@ -24,8 +24,9 @@ $menu = wofi --show drun
# ctrl-c to copy from the flameshot gui gives warped images sometimes, but
# setting the env fixes it
$screenshot = XDG_CURRENT_DESKTOP=sway flameshot gui -p ~/Pictures/Screenshots/ -c
+$screenshotFull = XDG_CURRENT_DESKTOP=sway flameshot full -p ~/Pictures/Screenshots/ -c
$passwordmanager = keepassxc
-
+$notifications = swaync-client -t -sw
#################
### AUTOSTART ###
@@ -34,9 +35,11 @@ $passwordmanager = keepassxc
# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:
+# Plugins
exec-once = hyprctl plugin load "$HYPR_PLUGIN_DIR/lib/libhyprbars.so"
# exec-once = waybar & hyprpaper
+exec-once = swaync
#############################
@@ -248,9 +251,13 @@ bind = $mainMod, l, movefocus, r
bind = $mainMod, E, exec, $fileManager
bind = SUPER, E, exec, $fileManager
bind = $mainMod, S, exec, $screenshot
+bind = $mainMod, F, exec, $screenshotFull
+bind = SUPER, F, exec, $screenshotFull
bind = $mainMod, R, exec, $menu
bind = $mainMod, space, exec, $menu
bind = SUPER, SUPER_L, exec, $menu
+bind = $mainMod, N, exec, $notifications
+bind = SUPER, N, exec, $notifications
# Terminal
bind = $mainMod, 1, workspace, 1
@@ -328,27 +335,26 @@ windowrule = noanim, class:^(flameshot)$
windowrule = float, class:^(flameshot)$
windowrule = move 0 0, class:^(flameshot)$
windowrule = pin, class:^(flameshot)$
-windowrule = noinitialfocus, class:^(flameshot)$
# set this to your leftmost monitor id, otherwise you have to move your cursor to the leftmost monitor
# before executing flameshot
windowrule = monitor 1, class:^(flameshot)$
# List of programs to open as floating windows
windowrule = float, class:org.kde.dolphin
-windowrulev2 = persistentsize, class:org.kde.dolphin
+windowrule = persistentsize, class:org.kde.dolphin
# windowrulev2 = size 70% 70%, class:org.kde.dolphin
-windowrulev2 = float, class:eog
+windowrule = float, class:eog
#
-windowrulev2 = float, initialClass:zen-twilight, initialTitle:^$
-windowrulev2 = center, initialClass:zen-twilight, initialTitle:^$
-windowrulev2 = size 20% 20%, initialClass:zen-twilight, initialTitle:^$
+windowrule = float, initialClass:zen-twilight, initialTitle:^$
+windowrule = center, initialClass:zen-twilight, initialTitle:^$
+windowrule = size 20% 20%, initialClass:zen-twilight, initialTitle:^$
# Only show hyprbars for floating windows
-windowrulev2 = plugin:hyprbars:nobar, ^floating:0
+windowrule = plugin:hyprbars:nobar, ^floating:0
# Fix drag drop in keepassxc apparently? see https://github.com/hyprwm/Hyprland/discussions/10602
-windowrulev2 = noinitialfocus, class:KeePassXC windowrulev2 = noinitialfocus, class:GNS3
+windowrule = noinitialfocus, class:KeePassXC windowrulev2 = noinitialfocus, class:GNS3
###############
diff --git a/modules/apps.nix b/modules/apps.nix
index 60b13c5..081943f 100644
--- a/modules/apps.nix
+++ b/modules/apps.nix
@@ -72,6 +72,7 @@
kdePackages.qt6ct
kdePackages.breeze-icons
waybar
+ swaynotificationcenter # For notifications
# Communication
wasistlos # Whatsapp