1
0

New wallpaper selection. No more random. also minor updates to swaync and a lot of fixing to wofi tehe oops.

This commit is contained in:
Eli Fouts 2025-01-07 18:25:52 -05:00
parent e684c48f73
commit 2e98507ff4
5 changed files with 32 additions and 42 deletions

View File

@ -12,7 +12,7 @@ monitor = DP-1, 2560x1440@165, 0x0, 1
################### ###################
# See https://wiki.hyprland.org/Configuring/Keywords/ # See https://wiki.hyprland.org/Configuring/Keywords/
$terminal = kitty $terminal = kitty
$fileManager = GTK_THEME=Adwaita:dark thunar $fileManager = thunar
$menu = wofi --show drun $menu = wofi --show drun
################# #################
### AUTOSTART ### ### AUTOSTART ###
@ -21,7 +21,7 @@ exec-once = hypridle
exec-once = waybar exec-once = waybar
exec-once = swww-daemon exec-once = swww-daemon
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = swaync exec-once = swaync && swaync-client -df
############################# #############################
### ENVIRONMENT VARIABLES ### ### ENVIRONMENT VARIABLES ###
############################# #############################

View File

@ -1,7 +1,13 @@
#!/bin/bash #!/bin/bash
WALLPAPER_DIR="/home/eli/wallpapers/walls" WALLPAPER_DIR="/home/eli/wallpapers/walls"
SPECIFIC_IMAGE=$(find "$WALLPAPER_DIR" -type f \( -iname "*.jpg" -o -iname "*.png" -o -iname "*.jpeg" \) | shuf -n 1) SELECTED_WALLPAPER=$(find "$WALLPAPER_DIR" -type f -exec basename {} \; | wofi -c ~/.config/wofi/config1 --show dmenu --prompt "Select Wallpaper:")
swww img "$SPECIFIC_IMAGE" --transition-type outer --transition-pos "$(hyprctl cursorpos)" --transition-fps 60 --transition-duration 1
wal -i "$SPECIFIC_IMAGE" -not-set --cols16 FULL_PATH=$(find "$WALLPAPER_DIR" -type f -name "$SELECTED_WALLPAPER")
swww img "$FULL_PATH" --transition-type any --transition-fps 60 --transition-duration .5
wal -i "$FULL_PATH" -n --cols16
swaync-client --reload-css swaync-client --reload-css
cat ~/.cache/wal/colors-kitty.conf > ~/.config/kitty/current-theme.conf cat ~/.cache/wal/colors-kitty.conf > ~/.config/kitty/current-theme.conf
pywalfox update

View File

@ -301,7 +301,7 @@
} }
.widget-buttons-grid > flowbox > flowboxchild > button.toggle:checked { .widget-buttons-grid > flowbox > flowboxchild > button.toggle:checked {
background: alpha(@mycolor,.5); background: @mycolor;
} }
.widget-menubar > box > .menu-button-bar > button { .widget-menubar > box > .menu-button-bar > button {

12
.config/wofi/config1 Normal file
View File

@ -0,0 +1,12 @@
[config]
allow_images=true
show=drun
width=1000
height=500
always_parse_args=true
show_all=true
term=kitty
hide_scroll=true
print_command=true
insensitive=true
columns=3

View File

@ -7,9 +7,12 @@
* { * {
font-family: 'CodeNewRoman Nerd Font Mono', monospace; font-family: 'CodeNewRoman Nerd Font Mono', monospace;
font-size: 17px; font-size: 18px;
outline: none; outline: none;
border: none; border: none;
text-shadow:none;
background-color:transparent;
} }
window { window {
@ -17,8 +20,6 @@ window {
padding: 20px; padding: 20px;
border-radius: 10px; border-radius: 10px;
background-color: alpha(@background,.5); background-color: alpha(@background,.5);
} }
/* Slide In */ /* Slide In */
@keyframes slideIn { @keyframes slideIn {
@ -35,34 +36,17 @@ window {
margin: 2px; margin: 2px;
padding: 5px; padding: 5px;
border: none; border: none;
background-color: @base;
animation: slideIn 1.5s ease-in-out; animation: slideIn 1.5s ease-in-out;
} }
/* Fade In */
/* Outer Box */
#outer-box { #outer-box {
border-radius: .5em; border: none;
border: none
background-color: @base;
} }
/* Scroll */
#scroll { #scroll {
margin: 0px; margin: 0px;
padding: 30px; padding: 30px;
border: none; border: none;
background-color: @base;
} }
/* Input */
#input { #input {
all:unset; all:unset;
margin-left:20px; margin-left:20px;
@ -72,20 +56,17 @@ window {
border: none; border: none;
outline: none; outline: none;
color: @text; color: @text;
background-color: @base;
animation: slideIn 1s ease-in-out; animation: slideIn 1s ease-in-out;
box-shadow: 1px 1px 5px rgba(0, 0, 0, .2); box-shadow: 1px 1px 5px rgba(0, 0, 0, .2);
border-radius:10; border-radius:10;
} }
#input image { #input image {
border: none; border: none;
color: @red; color: @red;
outline: none; outline: none;
} }
#input * { #input * {
border: none; border: none; border: none;
outline: none; outline: none;
} }
#input:focus { #input:focus {
@ -94,38 +75,29 @@ window {
box-shadow: 1px 1px 5px rgba(0, 0, 0, .2); box-shadow: 1px 1px 5px rgba(0, 0, 0, .2);
border-radius:10; border-radius:10;
} }
#text { #text {
margin: 5px; margin: 5px;
border: none; border: none;
color: @text; color: @text;
outline: none; outline: none;
} }
/* Entry */
#entry { #entry {
background-color: @base;
border: none; border: none;
} }
#entry arrow { #entry arrow {
border: none; border: none;
color: @lavender; color: @lavender;
} }
/* Selected Entry */
#entry:selected { #entry:selected {
box-shadow: 1px 1px 5px rgba(255,255,255, .03); box-shadow: 1px 1px 5px rgba(255,255,255, .03);
border: none; border: none;
border-radius:20; border-radius: 20px;
background-color:transparent;
} }
#entry:selected #text { #entry:selected #text {
color: @mauve; color: @mauve;
} }
#entry:drop(active) { #entry:drop(active) {
background-color: @lavender !important; background-color: @lavender !important;
animation: fadeIn 1s ease-in-out; animation: fadeIn 1s ease-in-out;
} }