hypr: update stuff

This commit is contained in:
retrozinndev
2025-02-04 21:45:47 -03:00
parent 80969071c4
commit 8bd3245dab
6 changed files with 49 additions and 43 deletions
+4 -1
View File
@@ -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
+8 -10
View File
@@ -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
+32 -11
View File
@@ -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
}
+2 -3
View File
@@ -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
-15
View File
@@ -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
#}
}
+3 -3
View File
@@ -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