diff --git a/hypr/autostart.conf b/hypr/autostart.conf index 067cdf5..91ce799 100644 --- a/hypr/autostart.conf +++ b/hypr/autostart.conf @@ -16,6 +16,9 @@ exec-once = systemctl enable --user --now hyprpaper exec-once = sh $HOME/.config/hypr/scripts/gen-pywal.sh exec-once = sh $HOME/.config/hypr/scripts/night-light-check.sh +# Other +exec-once = ags run --log-file $HOME/ags.log + # Apps -exec-once = /usr/bin/env discord-canary --start-minimized +exec-once = /usr/bin/env vesktop --start-minimized exec-once = /usr/bin/env steam -silent diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 47bee99..747bb98 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -3,6 +3,10 @@ ## Retrozinndev's Hyprland Configurations! ## ############################################# +# From https://github.com/retrozinndev/Hyprland-Dots +# Made with lots of love 󰋑 , by retrozinndev +# Licensed under the MIT License + # Nvidia Settings source = ~/.config/hypr/nvidia.conf @@ -18,20 +22,14 @@ source = ~/.config/hypr/layout.conf # Input source = ~/.config/hypr/input.conf -# Devices -# source = ~/.config/hypr/devices.conf # Uncomment this line to apply file, remember to make it first! - -# Plugins (you can comment if you want pure Hyprland) -source = ~/.config/hypr/plugins.conf - # Appearance source = ~/.config/hypr/decorations.conf -# Autostart -source = ~/.config/hypr/autostart.conf +# Rules +source = ~/.config/hypr/rules.conf # Bindings source = ~/.config/hypr/bindings.conf -# Rules -source = ~/.config/hypr/rules.conf +# Autostart +source = ~/.config/hypr/autostart.conf diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf index 7ab55c5..eb1cedf 100644 --- a/hypr/hyprlock.conf +++ b/hypr/hyprlock.conf @@ -43,6 +43,10 @@ label { text = cmd[update:30000] echo -e "$(date +"%R")" # 24-hours # text = cmd[update:30000] echo -e "$(date +"%I:%M %p")" # 12-hours (AM/PM) color = $foreground + shadow_passes = 1 + shadow_size = 2 + shadow_color = $background + shadow_boost = 0.4 font_size = 120 font_family = $clockFont position = 0, -60 @@ -55,6 +59,10 @@ label { monitor = text = cmd[update:43200000] echo -e "$(date +"%A, %d %B %Y")" color = $foreground + shadow_passes = 1 + shadow_size = 2 + shadow_color = $background + shadow_boost = 0.4 font_size = 20 font_family = $font position = 0, -250 @@ -74,17 +82,21 @@ label { position = 0, 5 } -# 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 -#} +Media +label { + monitor = + font_size = 12 + font_family = Cantarell + color = $foreground + text = cmd[update:1000] bash -c 'playerctl metadata && echo -e "󰎇 $(playerctl metadata title) - $(playerctl metadata artist)"' | tail -n 1 + shadow_passes = 1 + shadow_size = 2 + shadow_color = $background + shadow_boost = 0.4 + halign = center + valign = center + position = 0, 180 +} # Avatar image { @@ -92,9 +104,14 @@ image { path = ~/.face size = 72 border_color = $color2 + border_size = 2 position = 0, 100 halign = center valign = bottom + shadow_passes = 1 + shadow_size = 2 + shadow_color = $background + shadow_boost = 0.4 } # Input (password) @@ -118,4 +135,8 @@ input-field { position = 0, 40 halign = center valign = bottom + shadow_passes = 1 + shadow_size = 2 + shadow_color = $background + shadow_boost = 0.2 } diff --git a/hypr/nvidia.conf b/hypr/nvidia.conf index cd76c83..d9c6128 100644 --- a/hypr/nvidia.conf +++ b/hypr/nvidia.conf @@ -4,10 +4,9 @@ ##################### env = LIBVA_DRIVER_NAME, nvidia -env = GBM_BACKEND, nvidia-drm env = __GLX_VENDOR_LIBRARY_NAME, nvidia -env = _VK_LAYER_NV_optimus, NVIDIA_only -env = __NV_PRIME_RENDER_OFFLOAD, 1 +env = NVD_BACKEND, direct +env = ELECTRON_OZONE_PLATFORM_HINT, auto cursor { # Set to true if you have issues diff --git a/hypr/plugins.conf b/hypr/plugins.conf deleted file mode 100644 index ff04f36..0000000 --- a/hypr/plugins.conf +++ /dev/null @@ -1,15 +0,0 @@ -#################### -# HYPRLAND 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 - #hyprbars { - # bar_height = 24 - # hyprbars-button = rgb(ff4040), 16, 󰖭, hyprctl dispatch killactive - # hyprbars-button = rgb(eeee11), 16, , hyprctl dispatch fullscreen 1 - #} -} diff --git a/hypr/scripts/clipboard-menu.sh b/hypr/scripts/clipboard-menu.sh index 3d54c22..648ff01 100644 --- a/hypr/scripts/clipboard-menu.sh +++ b/hypr/scripts/clipboard-menu.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash -cliphist list | anyrun --plugins libstdin.so | read pipe +selection=$(cliphist list | anyrun --plugins libstdin.so | cliphist decode) -if [[ ! -z "$pipe" ]]; then - echo $pipe | cliphist decode | wl-copy +if [[ ! -z "$selection" ]]; then + echo -e $selection | sed -e 's/\n$//g' | wl-copy fi