From 8c8ca7b0f2c231d9df08abc03022dff34bc18f56 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Wed, 14 Jan 2026 11:28:55 +0100 Subject: [PATCH] updated dots --- fish/conf.d/fish_frozen_key_bindings.fish | 14 +++++++ fish/conf.d/fish_frozen_theme.fish | 49 +++++++++++++++++++++++ hypr/hyprlock.conf | 2 +- hypr/hyprpaper.conf | 9 +++-- hypr/modules/autostart.conf | 2 +- hypr/modules/keybinds.conf | 3 ++ hypr/modules/monitors.conf | 6 +-- hypr/modules/window_rules.conf | 8 +++- hypr/scripts/lid_handler.sh | 18 +++++++++ mimeapps.list | 2 + 10 files changed, 102 insertions(+), 11 deletions(-) create mode 100644 fish/conf.d/fish_frozen_key_bindings.fish create mode 100644 fish/conf.d/fish_frozen_theme.fish create mode 100755 hypr/scripts/lid_handler.sh diff --git a/fish/conf.d/fish_frozen_key_bindings.fish b/fish/conf.d/fish_frozen_key_bindings.fish new file mode 100644 index 0000000..dfed4d6 --- /dev/null +++ b/fish/conf.d/fish_frozen_key_bindings.fish @@ -0,0 +1,14 @@ +# This file was created by fish when upgrading to version 4.3, to migrate +# the 'fish_key_bindings' variable from its old default scope (universal) +# to its new default scope (global). We recommend you delete this file +# and configure key bindings in ~/.config/fish/config.fish if needed. + +set --global fish_key_bindings fish_vi_key_bindings + +# Prior to version 4.3, fish shipped an event handler that runs +# `set --universal fish_key_bindings fish_default_key_bindings` +# whenever the fish_key_bindings variable is erased. +# This means that as long as any fish < 4.3 is still running on this system, +# we cannot complete the migration. +# As a workaround, erase the universal variable at every shell startup. +set --erase --universal fish_key_bindings diff --git a/fish/conf.d/fish_frozen_theme.fish b/fish/conf.d/fish_frozen_theme.fish new file mode 100644 index 0000000..2008093 --- /dev/null +++ b/fish/conf.d/fish_frozen_theme.fish @@ -0,0 +1,49 @@ +# This file was created by fish when upgrading to version 4.3, to migrate +# theme variables from universal to global scope. +# Don't edit this file, as it will be written by the web-config tool (`fish_config`). +# To customize your theme, delete this file and see +# help interactive#syntax-highlighting +# or +# man fish-interactive | less +/^SYNTAX.HIGHLIGHTING +# for appropriate commands to add to ~/.config/fish/config.fish instead. +# See also the release notes for fish 4.3.0 (run `help relnotes`). + +set --global fish_color_autosuggestion 6c7086 +set --global fish_color_cancel f38ba8 +set --global fish_color_command 89b4fa +set --global fish_color_comment 7f849c +set --global fish_color_cwd f9e2af +set --global fish_color_cwd_root red +set --global fish_color_end fab387 +set --global fish_color_error f38ba8 +set --global fish_color_escape eba0ac +set --global fish_color_gray 6c7086 +set --global fish_color_history_current --bold +set --global fish_color_host 89b4fa +set --global fish_color_host_remote a6e3a1 +set --global fish_color_keyword f38ba8 +set --global fish_color_match --background=brblue +set --global fish_color_normal cdd6f4 +set --global fish_color_operator f5c2e7 +set --global fish_color_option a6e3a1 +set --global fish_color_param f2cdcd +set --global fish_color_quote a6e3a1 +set --global fish_color_redirection f5c2e7 +set --global fish_color_search_match --background=313244 +set --global fish_color_selection --background=313244 +set --global fish_color_status f38ba8 +set --global fish_color_user 94e2d5 +set --global fish_color_valid_path --underline +set --global fish_pager_color_background +set --global fish_pager_color_completion cdd6f4 +set --global fish_pager_color_description 6c7086 +set --global fish_pager_color_prefix f5c2e7 +set --global fish_pager_color_progress 6c7086 +set --global fish_pager_color_secondary_background +set --global fish_pager_color_secondary_completion +set --global fish_pager_color_secondary_description +set --global fish_pager_color_secondary_prefix +set --global fish_pager_color_selected_background +set --global fish_pager_color_selected_completion +set --global fish_pager_color_selected_description +set --global fish_pager_color_selected_prefix diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf index 7822f2a..ccda44d 100644 --- a/hypr/hyprlock.conf +++ b/hypr/hyprlock.conf @@ -12,7 +12,7 @@ general { # BACKGROUND background { monitor = - path = $HOME/Pictures/red_moon/red_moon-latte.jpg + path = $HOME/Pictures/city/wallpaper-oled.png blur_passes = 0 color = $base } diff --git a/hypr/hyprpaper.conf b/hypr/hyprpaper.conf index 1858595..1d32166 100644 --- a/hypr/hyprpaper.conf +++ b/hypr/hyprpaper.conf @@ -1,4 +1,5 @@ -# preload = ~/Pictures/red_moon/red_moon-latte.jpg -preload = ~/Pictures/red_moon/red_moon-latte.jpg -# wallpaper = ,~/Pictures/red_moon/red_moon-latte.jpg -wallpaper = , ~/Pictures/red_moon/red_moon-latte.jpg +wallpaper { + monitor = + path = ~/Pictures/city/wallpaper-oled.png + fit_mode = fill +} diff --git a/hypr/modules/autostart.conf b/hypr/modules/autostart.conf index 8abf164..4130237 100644 --- a/hypr/modules/autostart.conf +++ b/hypr/modules/autostart.conf @@ -6,7 +6,7 @@ # exec-once = uwsm app -- nextcloud --background exec-once = uwsm app -- nm-applet --indicator # exec-once = uwsm app -- rclone mount google_drive: ~/gdrive -exec-once = uwsm app -- protonvpn-app +# exec-once = uwsm app -- protonvpn-app exec-once = uwsm app -- hyprpaper # exec-once = uwsm app -- /usr/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland --start-minimized &> /dev/null # exec-once = sleep 5 && ~/.config/hypr/scripts/replay-ctrl.sh start diff --git a/hypr/modules/keybinds.conf b/hypr/modules/keybinds.conf index 6681b9b..e11eab2 100644 --- a/hypr/modules/keybinds.conf +++ b/hypr/modules/keybinds.conf @@ -1,6 +1,9 @@ $mainMod = SUPER # Sets "Windows" key as main modifier +bindl=,switch:on:Lid Switch,exec,~/.config/hypr/scripts/lid_handler.sh close +bindl=,switch:off:Lid Switch,exec,~/.config/hypr/scripts/lid_handler.sh open + bindr = ALT, m, exec, cliphist list | fuzzel --dmenu | cliphist decode | wl-copy bind = , PRINT, exec, grim -g "$(slurp)" - | wl-copy bindr = ALT SHIFT, z, exec, ~/.config/hypr/scripts/replay-ctrl.sh save diff --git a/hypr/modules/monitors.conf b/hypr/modules/monitors.conf index 3339f1d..5d3d72b 100644 --- a/hypr/modules/monitors.conf +++ b/hypr/modules/monitors.conf @@ -1,5 +1,5 @@ -# monitor = desc:Samsung Electric Company LC27G7xT H4ZRA00734, 2560x1440@144, 0x0, 1 -monitor = desc:Samsung Electric Company LC27G7xT H4ZRA00734, 1920x1080@144, 0x-1080, 1 +# monitor = desc:Samsung Electric Company LC27G7xT H4ZRA00734, 2560x1440@240, 0x-1440, 1 +monitor = desc:Samsung Electric Company LC27G7xT H4ZRA00734, 2560x1440@90, 0x-1440, 1, bitdepth, 10 +# monitor = desc:Samsung Electric Company LC27G7xT H4ZRA00734, 1920x1080@90, 0x-1080, 1 monitor = eDP-1, 1920x1080@60, 0x0, 1 -monitor = desc:Ancor Communications Inc VN279 E6LMQS072137, 1920x1080@60, 0x-1080, 1 diff --git a/hypr/modules/window_rules.conf b/hypr/modules/window_rules.conf index 4a29c00..0a59e79 100644 --- a/hypr/modules/window_rules.conf +++ b/hypr/modules/window_rules.conf @@ -3,10 +3,10 @@ # See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules # Ignore maximize requests from apps. You'll probably like this. -windowrule = suppressevent maximize, class:.* +# windowrule = suppressevent maximize, class:.* # Fix some dragging issues with XWayland -windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 +# windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 windowrulev2=noblur,class:^()$,title:^()$ @@ -17,6 +17,7 @@ windowrulev2=float,title:^(Open File)$ windowrulev2=float,title:^(Select a File)$ windowrulev2=float,title:^(Select Folder)$ windowrulev2=float,title:^(Choose a file)$ +windowrulev2=float,title:^(Open Form)$ windowrulev2=float,title:^(Open Workspace)$ windowrulev2=float,title:^(Choose Directory)$ windowrulev2=float,title:^(Save As)$ @@ -28,6 +29,7 @@ windowrulev2=float,title:^(File Operation Progress)$ windowrulev2=float,class:^(pavucontrol|blueman-manager|nm-connection-editor)$ # Center and Resize Windows +windowrulev2=size 800 600,title:^(Open Form)$ windowrulev2=size 800 600,title:^(Open File)$ windowrulev2=size 800 600,title:^(Select a File)$ windowrulev2=size 800 600,title:^(Choose a file)$ @@ -40,6 +42,7 @@ windowrulev2=size 800 600,title:^(pinentry-gtk-2)$ windowrulev2=size 800 600,title:^(Confirm to replace files)$ windowrulev2=size 800 600,title:^(File Operation Progress)$ windowrulev2=size 800 600,class:^(pavucontrol|blueman-manager|nm-connection-editor)$ +windowrulev2=center,title:^(Open Form)$ windowrulev2=center,title:^(Open File)$ windowrulev2=center,title:^(Select a File)$ windowrulev2=center,title:^(Choose a file)$ @@ -52,6 +55,7 @@ windowrulev2=center,title:^(pinentry-gtk-2)$ windowrulev2=center,title:^(Confirm to replace files)$ windowrulev2=center,title:^(File Operation Progress)$ windowrulev2=center,class:^(pavucontrol|blueman-manager|nm-connection-editor)$ +windowrulev2=noblur,title:^(Open Form)$ windowrulev2=noblur,title:^(Open File)$ windowrulev2=noblur,title:^(Select a File)$ windowrulev2=noblur,title:^(Choose a file)$ diff --git a/hypr/scripts/lid_handler.sh b/hypr/scripts/lid_handler.sh new file mode 100755 index 0000000..6e2cf61 --- /dev/null +++ b/hypr/scripts/lid_handler.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# ~/.config/hypr/scripts/lid_handler.sh + +if [[ "$1" == "close" ]]; then + # Lid closed: disable laptop screen if any DP-* monitor is present + # Using 'all' to detect monitors even if they are currently disabled + if hyprctl monitors all | grep -q "Monitor DP-"; then + hyprctl keyword monitor "eDP-1, disable" # Disable laptop display + + # Enable all detected DP-* monitors + for monitor in $(hyprctl monitors all | grep "Monitor DP-" | awk '{print $2}'); do + hyprctl keyword monitor "$monitor, enable" + done + fi +elif [[ "$1" == "open" ]]; then + # Lid opened: re-enable laptop screen + hyprctl keyword monitor "eDP-1, enable" +fi \ No newline at end of file diff --git a/mimeapps.list b/mimeapps.list index 2fcc8e1..60e6093 100644 --- a/mimeapps.list +++ b/mimeapps.list @@ -14,6 +14,7 @@ application/x-extension-xhtml=zen.desktop application/x-extension-xht=zen.desktop x-scheme-handler/about=google-chrome.desktop x-scheme-handler/unknown=google-chrome.desktop +application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop [Added Associations] application/pdf=org.pwmt.zathura-pdf-poppler.desktop; @@ -23,3 +24,4 @@ x-scheme-handler/http=zen.desktop; x-scheme-handler/https=zen.desktop; text/html=zen.desktop; x-scheme-handler/chrome=zen.desktop; +application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop;