diff --git a/config/hypr/config/display.conf b/config/hypr/config/display.conf index 9d4a8c8..b4610eb 100644 --- a/config/hypr/config/display.conf +++ b/config/hypr/config/display.conf @@ -75,7 +75,7 @@ misc { initial_workspace_tracking = 0 new_window_takes_over_fullscreen = 1 disable_splash_rendering = false - font_family = Monaspace Neon + font_family = Geist } # Layer Rules @@ -85,6 +85,11 @@ layerrule = animation popin 70%, wofi layerrule = animation slide right, notifications layerrule = dimaround, wofi +layerrule = order -999, wl_shimeji +layerrule = order -10, wofi +layerrule = order -20, waybar + + # Window Rules windowrulev2 = float,class:^(blueman-manager-wrapped)$ windowrulev2 = size 900 500,class:^(blueman-manager-wrapped)$ diff --git a/config/hypr/config/keybindings/other.conf b/config/hypr/config/keybindings/other.conf index 45b821e..e977d3a 100644 --- a/config/hypr/config/keybindings/other.conf +++ b/config/hypr/config/keybindings/other.conf @@ -9,7 +9,7 @@ bind = $mainMod SHIFT, GRAVE, movetoworkspace, special:music bind = $mainMod SHIFT, B, exec, bash ~/config/scripts/hot-reload.sh # Wallpaper -# bind = $mainMod SHIFT, RETURN, exec, bash ~/config/scripts/select-wallpaper.sh +bind = $mainMod SHIFT, RETURN, exec, bash ~/config/scripts/select-wallpaper.sh # Screenshot keybinds bind = $mainMod, PRINT, exec, bash ~/config/scripts/screenshot-selection.sh diff --git a/config/wofi/config b/config/wofi/config new file mode 100644 index 0000000..a5f1cb2 --- /dev/null +++ b/config/wofi/config @@ -0,0 +1,7 @@ +[wofi] +prompt=Search +allow_images=true +allow_markup=true +term=ghostty +dynamic_lines=true +normal_window=false diff --git a/config/wofi/style.css b/config/wofi/style.css new file mode 100644 index 0000000..84f53d0 --- /dev/null +++ b/config/wofi/style.css @@ -0,0 +1,53 @@ +window { + background-color: #1e1e2e; + border: 1px solid #89b4fa; + border-radius: 12px; + padding: 8px; +} + +#entry { + background: transparent; + color: #c3d0ff; + border-radius: 8px; + padding: 6px 12px; + border: 1px solid transparent; +} + +#entry label { + padding-left: 16px; +} + +#entry expander arrow { + padding: -16px; + margin: -16px; + background: transparent; + color: transparent; +} + +#entry:selected { + border: 1px solid #89b4fa; +} + +#input { + margin: 8px; + background: #1e1e2e; + color: #c3d0ff; + border-radius: 8px; + padding: 6px 12px; + border: 1px solid #89b4fa; +} + +#scroll { + background: transparent; + margin-bottom: 8px; +} + +#scroll box { + margin-left: 8px; + margin-right: 8px; +} + +#scroll slider { + background: #89b4fa; + border-radius: 4px; +} diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index e53ee78..9b32147 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -241,6 +241,12 @@ recursive = true; }; + home.file.".config/wofi" = { + source = config.lib.file.mkOutOfStoreSymlink "/home/ocbwoy3/config/config/wofi"; + recursive = true; + }; + + # xdg.configHome = "/home/ocbwoy3/config/config"; services.mpris-proxy.enable = true; diff --git a/scripts/load-wallpaper.sh b/scripts/load-wallpaper.sh new file mode 100644 index 0000000..b6c91fa --- /dev/null +++ b/scripts/load-wallpaper.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +WALLPAPER=$(cat $HOME/.cache/.wallpaper) + +rm -r ~/.cache/wal + +# wal -stn -a 90 -i $HOME/wallpaper/$WALLPAPER + +swww img $WALLPAPER --transition-fps 120 --transition-duration 2 -t wipe & +bash ~/dotfiles/scripts/hot-reload.sh diff --git a/scripts/select-wallpaper.sh b/scripts/select-wallpaper.sh new file mode 100644 index 0000000..664635b --- /dev/null +++ b/scripts/select-wallpaper.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +WALLPAPER=$(ls $HOME/Pictures/Wallpapers/ | wofi --show dmenu) + +if [ ${#WALLPAPER} -gt 0 ] ; then + + rm -f $HOME/.cache/.wallpaper + + echo "$HOME/Pictures/Wallpapers/$WALLPAPER" >> $HOME/.cache/.wallpaper + + rm -rf $HOME/.cache/wal + + # notify-send -t 2000 -u low -h int:value:50 "OCbwoy3's Dotfiles" "Calculating color scheme" + + # wal -stn -a 90 -i $HOME/wallpaper/$WALLPAPER + + notify-send -t 2000 -u low "OCbwoy3's Dotfiles" "Setting wallpaper" + + swww img $HOME/Pictures/Wallpapers/$WALLPAPER --transition-fps 300 --transition-duration 2 & + # bash ~/dotfiles/scripts/hot-reload.sh + +else + printf "not changing wallpaper\n" +fi