diff --git a/.config/hypr/20250929_23h07m35s_grim.png b/.config/hypr/20250929_23h07m35s_grim.png new file mode 100644 index 0000000..c4a07a2 Binary files /dev/null and b/.config/hypr/20250929_23h07m35s_grim.png differ diff --git a/.config/hypr/default-layout-home.sh b/.config/hypr/default-layout-home.sh new file mode 100644 index 0000000..af3a41c --- /dev/null +++ b/.config/hypr/default-layout-home.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +hyprctl dispatch focuswindow class:Spotify +hyprctl dispatch movetoworkspacesilent 10 +hyprctl dispatch moveworkspacetomonitor 10 DP-7 + +hyprctl dispatch focuswindow class:brave-browser +hyprctl dispatch movetoworkspacesilent 2 +hyprctl dispatch moveworkspacetomonitor 2 DP-7 diff --git a/.config/hypr/hypridle.conf b/.config/hypr/hypridle.conf new file mode 100644 index 0000000..24fbac9 --- /dev/null +++ b/.config/hypr/hypridle.conf @@ -0,0 +1,34 @@ +general { + lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. + before_sleep_cmd = loginctl lock-session # lock before suspend. + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. +} + +listener { + timeout = 150 # 2.5min. + on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor. + on-resume = brightnessctl -r # monitor backlight restore. +} + +# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight. +listener { + timeout = 150 # 2.5min. + on-timeout = brightnessctl -sd phy0-led set 0 # turn off keyboard backlight. + on-resume = brightnessctl -rd phy0-led # turn on keyboard backlight. +} + +listener { + timeout = 300 # 5min + on-timeout = loginctl lock-session # lock screen when timeout has passed +} + +listener { + timeout = 330 # 5.5min + on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed + on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired. +} + +listener { + timeout = 1800 # 30min + on-timeout = systemctl suspend # suspend pc +} diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 7d14597..c19ac9a 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -33,6 +33,10 @@ $sudomenu = rofi -modi drun,run -show drun -run-command 'lxsu {cmd}' # Autostart necessary processes (like notifications daemons, status bars, etc.) # Or execute your favorite apps at launch like this: +# + +exec-once = eval $(gnome-keyring-daemon --start) +exec-once = export SSH_AUTH_SOCK exec-once = $terminal exec = kanshi @@ -40,11 +44,14 @@ exec = hyprpaper exec-once = nm-applet & exec-once = waybar exec-once = copyq -exec-once = brave +exec-once = brave --password-store=gnome exec-once = spotify -exec-once = blueman-manager exec-once = obsidian exec-once = streamdeck -n +exec-once = hypridle +exec-once = nm-applet --indicator +exec-once = blueman-applet +exec-once = export shutter --min_at_startup #exec = $XDG_CONFIG_HOME/hypr/set_workspace.sh ############################# @@ -68,13 +75,14 @@ env = XDG_SESSION_DESKTOP,Hyprland # https://wiki.hyprland.org/Configuring/Variables/#general general { gaps_in = 5 - gaps_out = 20 + gaps_out = 7 border_size = 2 # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors - col.active_border = rgba(C90E6Fee) rgba(6A00DFee) 45deg - col.inactive_border = rgba(595959aa) + #col.active_border = rgba(8839efFF) + col.active_border = rgba(ff3c86FF) + col.inactive_border = rgba(b8c0e0bb) # Set to true enable resizing windows by clicking and dragging on borders and gaps resize_on_border = false @@ -87,17 +95,17 @@ general { # https://wiki.hyprland.org/Configuring/Variables/#decoration decoration { - rounding = 5 + rounding = 0 # Change transparency of focused and unfocused windows active_opacity = 1.0 - inactive_opacity = 1.0 + inactive_opacity = 0.9 # https://wiki.hyprland.org/Configuring/Variables/#blur blur { enabled = true size = 3 - passes = 1 + passes = 2 vibrancy = 0.1696 } @@ -222,6 +230,7 @@ bind = $mainMod, 7, workspace, 7 bind = $mainMod, 8, workspace, 8 bind = $mainMod, 9, workspace, 9 bind = $mainMod, 0, workspace, 10 +bind = $mainMod&Control_L, G, workspace, 99 # Move active window to a workspace with mainMod + SHIFT + [0-9] bind = $mainMod SHIFT, 1, movetoworkspace, 1 @@ -234,6 +243,7 @@ bind = $mainMod SHIFT, 7, movetoworkspace, 7 bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 0, movetoworkspace, 10 +bind = $mainMod Control_L&SHIFT, G, movetoworkspace, 99 # Example special workspace (scratchpad) bind = $mainMod, S, togglespecialworkspace, magic @@ -250,7 +260,7 @@ bindm = $mainMod, mouse:273, resizewindow bind = ALT_L, L, exec, hyprlock #bind = ALT_L $mainmod, L, exec, hyprlock & systemctl suspend -bind = , Print, exec, hyprshot -m window -z -o ~/pictures/screenshots +bind = , Print, exec, grim -g "$(slurp)" - | copyq copy image/png - ############################## ### WINDOWS AND WORKSPACES ### ############################## diff --git a/.config/hypr/toggle-media.sh b/.config/hypr/toggle-media.sh index 2690322..4b7f3b0 100755 --- a/.config/hypr/toggle-media.sh +++ b/.config/hypr/toggle-media.sh @@ -1,2 +1,16 @@ #!/bin/bash -qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause + +case "$1" in + next) + qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next + ;; + + prev) + qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous + ;; + + playpause) + qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause + ;; + +esac