From 28c28da83a99cbefb4f35ac4fd6cbe2691958adb Mon Sep 17 00:00:00 2001 From: Honney Date: Tue, 9 Jun 2026 15:12:12 +0200 Subject: [PATCH] A lot of repairs and small changes --- .gitignore | 3 +- config/autostart.conf | 10 ++--- config/bind.conf | 5 ++- config/monitor.conf | 22 ++++++----- config/theme.conf | 6 +-- config/workspaces.conf | 40 +++++++++---------- hyprland.conf | 4 +- hyprlock.conf.example | 67 ++++++++++++++++++++++++++++++++ hyprpaper.conf.example | 5 +++ install.sh | 19 +++++++++ scripts/autostart/floorp.sh | 4 +- scripts/autostart/keepass.sh | 4 +- scripts/install/wallpaper_dir.sh | 21 ++++++++++ user_config/monitor.conf.example | 23 +++++++++++ 14 files changed, 187 insertions(+), 46 deletions(-) create mode 100755 hyprlock.conf.example create mode 100755 hyprpaper.conf.example create mode 100755 install.sh create mode 100755 scripts/install/wallpaper_dir.sh create mode 100644 user_config/monitor.conf.example diff --git a/.gitignore b/.gitignore index cb35453..de37d6d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.save *.log hyprlock.conf -hyprpaper.conf \ No newline at end of file +hyprpaper.conf +user_config/monitor.conf \ No newline at end of file diff --git a/config/autostart.conf b/config/autostart.conf index 02d996a..09aaf3e 100755 --- a/config/autostart.conf +++ b/config/autostart.conf @@ -7,12 +7,12 @@ exec-once = bash -c 'sleep 2 && ~/.config/hypr/scripts/wallpapers/random_wallpap exec-once = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' exec-once = tmux new-session -d -s keyring '/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg' # exec-once = sleep 1 && ~/.config/hypr/scripts/wallpapers/wallpaper.sh -exec-once = ~/.config/hypr/scripts/goxlr/goxlr-start.sh +# exec-once = ~/.config/hypr/scripts/goxlr/goxlr-start.sh exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = systemctl --user start hyprpolkitagent -exec-once = tmux new-session -d -s carla 'carla -n /home/honney/Downloads/test.carxp' +# exec-once = tmux new-session -d -s carla 'carla -n /home/honney/Downloads/test.carxp' # exec-once = udiskie -t -exec-once = tmux new-session -d -s fah 'cd ~/.local/share/fah && fah-client' +# exec-once = tmux new-session -d -s fah 'cd ~/.local/share/fah && fah-client' exec-once = tmux new-session -d -s ollama '/usr/bin/ollama serve' exec-once = tmux new-session -d -s ydotool 'ydotoold' exec-once = sleep 2 && hyprctl reload @@ -26,8 +26,8 @@ exec-once = bash -c '~/.config/hypr/scripts/autostart/keepass.sh > ~/.config/hyp # Monitor RT exec-once = bash -c '~/.config/hypr/scripts/autostart/floorp.sh > ~/.config/hypr/scripts/autostart/floorp.log' -exec-once = librewolf -exec-once = thunderbird +# exec-once = librewolf +# exec-once = thunderbird # exec-once = alacritty -e /usr/bin/ollama serve # Monitor LB diff --git a/config/bind.conf b/config/bind.conf index c867022..26745a9 100755 --- a/config/bind.conf +++ b/config/bind.conf @@ -17,8 +17,11 @@ bind = $mod, B, exec, killall -SIGUSR1 waybar # wallpaper/swww # bind = $mod SHIFT, W, exec, ~/.config/hypr/scripts/wallpapers/wallpaper.sh + +# quickshell bind = $mod SHIFT, W, global, quickshell:Wallpaper bind = $mod SHIFT, J, global, quickshell:JLearner +bind = $mod SHIFT, L, global, quickshell:WLogout bind = , Esc, global, quickshell:Closer # wlogout @@ -129,4 +132,4 @@ bind = $mod SHIFT, V, exec, vscodium bind = $mod CTRL, left, layoutmsg, focus l bind = $mod CTRL, right, layoutmsg, focus r bind = $mod CTRL SHIFT, left, layoutmsg, swapcol l -bind = $mod CTRL SHIFT, right, layoutmsg, swapcol r \ No newline at end of file +bind = $mod CTRL SHIFT, right, layoutmsg, swapcol r diff --git a/config/monitor.conf b/config/monitor.conf index 6216b35..16a53e0 100644 --- a/config/monitor.conf +++ b/config/monitor.conf @@ -44,20 +44,22 @@ monitor = desc:LG Electronics LG ULTRAGEAR 107MAKR2RE65, 1920x1080@144, -1920x-1 monitor = desc:Dell Inc. DELL P2419H D4CN3Q2, 1920x1080@60, -1920x-2160, 1 +monitor = desc:BOE 0x08A8, 1920x1080@60, 0x0, 1 + # Workspaces on Monitor 1 -workspace = 1, monitor:desc:BNQ BenQ EX2710U Y8P00876019, layout:scrolling, layoutopt:direction:right +workspace = 1, monitor:desc:BOE 0x08A8 # Workspaces on Monitor 2 -workspace = 2, monitor:desc:ASUSTek COMPUTER INC PA279CRV S5LMSB007609, layout:scrolling, layoutopt:direction:right -workspace = 200, monitor:desc:ASUSTek COMPUTER INC PA279CRV S5LMSB007609 +# workspace = 2, monitor:desc:ASUSTek COMPUTER INC PA279CRV S5LMSB007609, layout:scrolling, layoutopt:direction:right +# workspace = 200, monitor:desc:ASUSTek COMPUTER INC PA279CRV S5LMSB007609 # Workspaces on Monitor 3 -workspace = 3, monitor:desc:LG Electronics LG ULTRAFINE 503NTKF3L437 -workspace = 300, monitor:desc:LG Electronics LG ULTRAFINE 503NTKF3L437 -workspace = 301, monitor:desc:LG Electronics LG ULTRAFINE 503NTKF3L437 -workspace = 302, monitor:desc:LG Electronics LG ULTRAFINE 503NTKF3L437 +# workspace = 3, monitor:desc:LG Electronics LG ULTRAFINE 503NTKF3L437 +# workspace = 300, monitor:desc:LG Electronics LG ULTRAFINE 503NTKF3L437 +# workspace = 301, monitor:desc:LG Electronics LG ULTRAFINE 503NTKF3L437 +# workspace = 302, monitor:desc:LG Electronics LG ULTRAFINE 503NTKF3L437 # Workspaces on Monitor 4 -workspace = 4, monitor:desc:LG Electronics LG ULTRAGEAR 107MAKR2RE65 -workspace = 400, monitor:desc:LG Electronics LG ULTRAGEAR 107MAKR2RE65 -workspace = 401, monitor:desc:LG Electronics LG ULTRAGEAR 107MAKR2RE65 +# workspace = 4, monitor:desc:LG Electronics LG ULTRAGEAR 107MAKR2RE65 +# workspace = 400, monitor:desc:LG Electronics LG ULTRAGEAR 107MAKR2RE65 +# workspace = 401, monitor:desc:LG Electronics LG ULTRAGEAR 107MAKR2RE65 diff --git a/config/theme.conf b/config/theme.conf index f5f178d..af020ea 100644 --- a/config/theme.conf +++ b/config/theme.conf @@ -26,9 +26,9 @@ env = GTK_ICON_THEME,BeautyLine-Garuda # Icons & Cursor env = HYPRCURSOR_THEME,DJ-FOX-C -env = HYPRCURSOR_SIZE,48 +env = HYPRCURSOR_SIZE,24 env = XCURSOR_THEME,DJ-FOX-C -env = XCURSOR_SIZE,48 +env = XCURSOR_SIZE,24 cursor { no_hardware_cursors = true @@ -60,7 +60,7 @@ decoration { } input { - kb_layout = us + kb_layout = de kb_variant = kb_model = kb_options = diff --git a/config/workspaces.conf b/config/workspaces.conf index 313baa8..fdbde6a 100755 --- a/config/workspaces.conf +++ b/config/workspaces.conf @@ -8,11 +8,11 @@ # Apps on Monitor 1 # Apps on Monitor 2 -windowrule { - name = VirtualBox - match:class = .*VirtualBox.* - workspace = 200 -} +#windowrule { +# name = VirtualBox +# match:class = .*VirtualBox.* +# workspace = 200 +#} # Apps on Monitor 3 # windowrule { @@ -21,23 +21,23 @@ windowrule { # workspace = 3 # } -windowrule { - name = Librewolf - match:class = .*librewolf.* - workspace = 300 -} +#windowrule { +# name = Librewolf +# match:class = .*librewolf.* +# workspace = 300 +#} -windowrule { - name = Thunderbird - match:class = .*org.mozilla.Thunderbird.* - workspace = 301 -} +#windowrule { +# name = Thunderbird +# match:class = .*org.mozilla.Thunderbird.* +# workspace = 301 +#} -windowrule { - name = Alacritty - match:class = .*Alacritty.* - workspace = 302 -} +#windowrule { +# name = Alacritty +# match:class = .*Alacritty.* +# workspace = 302 +#} # Apps on Monitor 4 windowrule { diff --git a/hyprland.conf b/hyprland.conf index 70cca78..5728c43 100755 --- a/hyprland.conf +++ b/hyprland.conf @@ -10,10 +10,10 @@ source = ~/.config/hypr/config/autostart.conf # -- monitor -- source = ~/.config/hypr/config/monitor.conf -monitor=,preferred,auto,auto +source = ~/.config/hypr/user_config/monitor.conf # -- pywal colors -- -source = ~/.config/wal/templates/colors-hyprland +#source = ~/.config/wal/templates/colors-hyprland # -- programs -- $terminal = kitty diff --git a/hyprlock.conf.example b/hyprlock.conf.example new file mode 100755 index 0000000..b6f8c9e --- /dev/null +++ b/hyprlock.conf.example @@ -0,0 +1,67 @@ +general { + hide_cursor = true + no_fade_in = false + grace = 0 + disable_loading_bar = true +} + +background { + monitor = + path = ~/Pictures/Wallpapers/Static/blurred.jpg + blur_passes = 0 +} + +# -- time -- +label { + monitor = + text = cmd[update:1000] echo "$(date +"%H:%M")" + color = 0xFFceca75 + font_size = 80 + font_family = JetBrains Mono ExtraBold + position = 0, 140 + halign = center + valign = center +} + +# -- quote -- +label { + monitor = + text = - PAIN IS REAL, BUT SO IS HOPE - + color = 0xFFa5d0bb + font_size = 12 + font_family = JetBrains Mono ExtraLight + position = 0, 80 + halign = center + valign = center +} + +# -- greeting -- +label { + monitor = + text = Heya $USER :3 + color = 0xFFceca75 + font_size = 20 + font_family = JetBrains Mono Light + position = 0, 0 + halign = center + valign = center +} + +# -- password input -- +input-field { + monitor = + size = 230, 40 + outline_thickness = 0 + dots_size = 0.2 + dots_spacing = 0.4 + dots_center = true + inner_color = 0xFF4b4900 + font_color = 0xFFceca75 + fade_on_empty = false + placeholder_text = unlock the magic... + fail_color = 0xFFffb4ab + hide_input = false + position = 0, -50 + halign = center + valign = center +} diff --git a/hyprpaper.conf.example b/hyprpaper.conf.example new file mode 100755 index 0000000..078cfe8 --- /dev/null +++ b/hyprpaper.conf.example @@ -0,0 +1,5 @@ +wallpaper { + monitor = * + path = /home/honney/Pictures/Wallpapers/Japanes_tempel_dark.png + fit_mode = cover +} \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..2ea845a --- /dev/null +++ b/install.sh @@ -0,0 +1,19 @@ +SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" +WALLPAPER_DIR=$(scripts/install/wallpaper_dir.sh) + +if [ -e "$SCRIPT_DIR/user_config/monitor.conf" ]; then + echo "User monitor.conf allready exists" +else + echo "Creating User monitor.conf" + cp "$SCRIPT_DIR/user_config/monitor.conf.example" "$SCRIPT_DIR/user_config/monitor.conf" +fi + +if [ -e "$SCRIPT_DIR/hyprlock.conf" ]; then + echo "User hyprlock.conf allready exists" +else + echo "Creating User monitor.conf" + cp "$SCRIPT_DIR/hyprlock.conf.example" "$SCRIPT_DIR/hyprlock.conf" +fi + +echo "The script will now install dependencies via pacman" +sudo pacman -S --needed hyprland-qt-support hyprcursor hypridle hyprlock hypridle \ No newline at end of file diff --git a/scripts/autostart/floorp.sh b/scripts/autostart/floorp.sh index 5919c14..c5d4dfb 100755 --- a/scripts/autostart/floorp.sh +++ b/scripts/autostart/floorp.sh @@ -7,7 +7,7 @@ floorp & NAME="Floorp" CLASS="floorp" -WORKSPACE=3 +WORKSPACE=2 while true; do WIN=$(hyprctl clients -j | jq -r '.[] | select(.class == "'$CLASS'") | .address') @@ -38,4 +38,4 @@ while true; do echo "Waiting for focus..." sleep $((RANDOM % 3)) -done \ No newline at end of file +done diff --git a/scripts/autostart/keepass.sh b/scripts/autostart/keepass.sh index 7f3162b..f48d9d6 100755 --- a/scripts/autostart/keepass.sh +++ b/scripts/autostart/keepass.sh @@ -7,7 +7,7 @@ keepassxc & NAME="KeePassXC" CLASS="org.keepassxc.KeePassXC" -WORKSPACE=401 +WORKSPACE=10 while true; do WIN=$(hyprctl clients -j | jq -r '.[] | select(.class == "'$CLASS'") | .address') @@ -38,4 +38,4 @@ while true; do echo "Waiting for focus..." sleep $((RANDOM % 3)) -done \ No newline at end of file +done diff --git a/scripts/install/wallpaper_dir.sh b/scripts/install/wallpaper_dir.sh new file mode 100755 index 0000000..da50adf --- /dev/null +++ b/scripts/install/wallpaper_dir.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# Setting wallpaper_dir + +WALLPAPER_DIR="${XDG_PICTURES_DIR:-}" + +# 2. If empty, use xdg-user-dir (most reliable) +if [ -z "$WALLPAPER_DIR" ]; then + if command -v xdg-user-dir >/dev/null 2>&1; then + WALLPAPER_DIR="$(xdg-user-dir PICTURES 2>/dev/null)" + fi +fi + +# 3. Final fallback (hardcoded default) +if [ -z "$WALLPAPER_DIR" ] || [ ! -d "$WALLPAPER_DIR" ]; then + WALLPAPER_DIR="$HOME/Pictures" +fi + +# 4. Your wallpaper subfolder +WALLPAPER_DIR="$WALLPAPER_DIR/Wallpapers" + +echo $WALLPAPER_DIR \ No newline at end of file diff --git a/user_config/monitor.conf.example b/user_config/monitor.conf.example new file mode 100644 index 0000000..6cec1c1 --- /dev/null +++ b/user_config/monitor.conf.example @@ -0,0 +1,23 @@ +monitor=,preferred,auto,auto + +# Getting monitor info: +# hyprctl monitors -j +# +# +# Example: +# monitorv2 { +# output = desc:BNQ BenQ EX2710U Y8P00876019 +# mode = 3840x2160@144 +# position = 0x0 +# scale = 1 +# bitdepth = 10 +# supports_hdr = 1 +# transform = 0 +# supports_wide_color = 1 +# sdr_min_luminance = 1000 +# sdr_max_luminance = 400 +# } +# +# monitor = desc:LG Electronics LG ULTRAFINE 503NTKF3L437, 3840x2160@60, 0x-2160, 1, transform, 2, bitdepth, 10, cm, wide +# +# monitor = desc:LG Electronics LG ULTRAGEAR 107MAKR2RE65, 1920x1080@144, -1920x-1080, 1, transform, 2 \ No newline at end of file