diff --git a/hypr/autostart.conf b/hypr/autostart.conf index d7fdf2a..067cdf5 100644 --- a/hypr/autostart.conf +++ b/hypr/autostart.conf @@ -5,18 +5,17 @@ # Services/Daemons exec-once = systemctl enable --user --now hyprpolkitagent.service -exec-once = hypridle +exec-once = systemctl enable --user --now hypridle exec-once = wl-paste --type text --watch cliphist store exec-once = wl-paste --type image --watch cliphist store -exec-once = ags run # Tools -exec-once = hyprpaper +exec-once = systemctl enable --user --now hyprpaper # Scripts exec-once = sh $HOME/.config/hypr/scripts/gen-pywal.sh exec-once = sh $HOME/.config/hypr/scripts/night-light-check.sh -# Apps -exec-once = /bin/vesktop --start-minimized -exec-once = /bin/steam-runtime -silent +# Apps +exec-once = /usr/bin/env discord-canary --start-minimized +exec-once = /usr/bin/env steam -silent diff --git a/hypr/bindings.conf b/hypr/bindings.conf index 5c0f523..cc11e67 100644 --- a/hypr/bindings.conf +++ b/hypr/bindings.conf @@ -24,7 +24,7 @@ bind = $mainMod, F, togglefloating bind = $mainMod, SPACE, exec, $menu bind = $mainMod, P, pseudo, bind = $mainMod, J, togglesplit -bind = $mainMod, N, exec, sh $XDG_CONFIG_HOME/eww/scripts/eww-window.sh toggle control-center +bind = $mainMod, N, exec, astal toggle control-center bind = $mainMod, L, exec, $lockscreen bind = $mainMod, F11, fullscreen @@ -46,18 +46,13 @@ bind = , Print, exec, $screenshotSelect bind = $mainMod, Print, exec, $screenshotFull # Open clipboard -bind = $mainMod, V, exec, cliphist list | anyrun --plugins libstdin.so | read pipe | [[ $pipe == "" ]] || echo $pipe | cliphist decode | wl-copy +bind = $mainMod, V, exec, sh $XDG_CONFIG_HOME/hypr/scripts/clipboard-menu.sh # Open wallpaper menu bind = $mainMod, W, exec, sh $XDG_CONFIG_HOME/hypr/scripts/change-wallpaper.sh -# Reload binds -# Eww -bind = $mainMod, F7, exec, eww reload -# Hyprpaper (Wallpaper) -bind = $mainMod, F8, exec, pkill hyprpaper && hyprpaper -# Dunst (Notification daemon) -bind = $mainMod, F9, exec, pkill dunst && dunst +# Reload UI(Astal and AGS) +bind = $mainMod, F7, exec, ags request reload # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf index efc041d..ec54b0a 100644 --- a/hypr/hypridle.conf +++ b/hypr/hypridle.conf @@ -1,7 +1,7 @@ general { - lock_cmd = echo "Locked Hyprland Session" - unlock_cmd = echo "Unlocked Hyprland Session" + # lock_cmd = echo "Locked Hyprland Session" + unlock_cmd = notify-send "Welcome back to Hyprland, $USER!" ignore_dbus_inhibit = false ignore_systemd_inhibit = false } @@ -9,5 +9,5 @@ general { listener { timeout = 3600 # 1800 -> 30m | 3600 -> 1h | 7200 -> 2h on-timeout = hyprlock - on-resume = notify-send "Welcome back to Hyprland, $USER!" + # on-resume = notify-send "Welcome back to Hyprland, $USER!" } diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf index 1b93ce2..7ab55c5 100644 --- a/hypr/hyprlock.conf +++ b/hypr/hyprlock.conf @@ -74,17 +74,17 @@ label { position = 0, 5 } -# Media -label { - monitor = - font_size = 12 - font_family = Cantarell - color = $foreground - text = cmd[update:1000] JSON_MEDIA=$(eww get json_media | jq -c '.'); PLAYER=$(echo $JSON_MEDIA | jq -r ".player"); TITLE=$(echo $JSON_MEDIA | jq -r ".title"); ARTIST=$(echo $JSON_MEDIA | jq -r ".artist"); [[ "$JSON_MEDIA" == "" ]] || sh -c "echo -e $([[ $PLAYER =~ 'spotify' ]] && echo -e '󰓇' || echo -e '󰎇') $TITLE - $ARTIST" - halign = center - valign = center - position = 0, 180 -} +# Media # TODO rework for astal and ags +#label { +# monitor = +# font_size = 12 +# font_family = Cantarell +# color = $foreground +# text = cmd[update:1000] JSON_MEDIA=$(eww get json_media | jq -c '.'); PLAYER=$(echo $JSON_MEDIA | jq -r ".player"); TITLE=$(echo $JSON_MEDIA | jq -r ".title"); ARTIST=$(echo $JSON_MEDIA | jq -r ".artist"); [[ "$JSON_MEDIA" == "" ]] || sh -c "echo -e $([[ $PLAYER =~ 'spotify' ]] && echo -e '󰓇' || echo -e '󰎇') $TITLE - $ARTIST" +# halign = center +# valign = center +# position = 0, 180 +#} # Avatar image { diff --git a/hypr/nvidia.conf b/hypr/nvidia.conf index 7ea1013..cd76c83 100644 --- a/hypr/nvidia.conf +++ b/hypr/nvidia.conf @@ -11,5 +11,5 @@ env = __NV_PRIME_RENDER_OFFLOAD, 1 cursor { # Set to true if you have issues - no_hardware_cursors = true + no_hardware_cursors = false } diff --git a/hypr/plugins.conf b/hypr/plugins.conf index 7770f70..ff04f36 100644 --- a/hypr/plugins.conf +++ b/hypr/plugins.conf @@ -2,7 +2,8 @@ # HYPRLAND PLUGINS # #################### -# You can add your preferred plugins here. Get help on how to do so: https://wiki.hyprland.org/Plugins/Using-Plugins/ +# You can add your preferred plugins here. Get help on +# how to do so: https://wiki.hyprland.org/Plugins/Using-Plugins plugin { # Example plugin configuration diff --git a/hypr/rules.conf b/hypr/rules.conf index b88d404..7486ae6 100644 --- a/hypr/rules.conf +++ b/hypr/rules.conf @@ -69,11 +69,15 @@ layerrule = blur, eww-cc layerrule = blur, eww-volume layerrule = blur, eww-powermenu layerrule = blur, top-bar +layerrule = blur, osd +layerrule = blur, control-center layerrule = ignorealpha .6, eww-volume layerrule = ignorealpha .55, eww-bar layerrule = ignorealpha .5, eww-calendar layerrule = ignorealpha .7, eww-cc +layerrule = ignorealpha .4, osd layerrule = ignorealpha .55, top-bar +layerrule = ignorealpha .5, control-center # Workspace Rules #workspace = 1, persistent:true diff --git a/hypr/scripts/clipboard-menu.sh b/hypr/scripts/clipboard-menu.sh new file mode 100644 index 0000000..3d54c22 --- /dev/null +++ b/hypr/scripts/clipboard-menu.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +cliphist list | anyrun --plugins libstdin.so | read pipe + +if [[ ! -z "$pipe" ]]; then + echo $pipe | cliphist decode | wl-copy +fi