From 78c97c5d84abde5a3a4e07ebf2ce040e742d254c Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Thu, 12 Jun 2025 10:05:13 +0200 Subject: [PATCH] [Hypr] Add docked config --- config/hypr/hyprland_docked.conf | 58 ++++++++++++++++++++++++++++++++ config/hypr/hyprland_laptop.conf | 3 +- scripts/laptop-docked | 15 +++++++++ setup | 12 +++---- 4 files changed, 78 insertions(+), 10 deletions(-) create mode 100644 config/hypr/hyprland_docked.conf create mode 100755 scripts/laptop-docked diff --git a/config/hypr/hyprland_docked.conf b/config/hypr/hyprland_docked.conf new file mode 100644 index 0000000..4a2436b --- /dev/null +++ b/config/hypr/hyprland_docked.conf @@ -0,0 +1,58 @@ +#░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ +#░ ░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░ +#▒ ▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ +#▒ ▒▒▒▒ ▒ ▒▒▒ ▒ ▒ ▒▒▒ ▒ ▒ ▒▒▒▒ ▒▒▒▒▒ ▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒ ▒ ▒▒▒ ▒ ▒▒▒▒▒▒▒ ▒▒ +#▓ ▓▓ ▓ ▓▓ ▓▓ ▓▓▓ ▓▓▓▓ ▓▓ ▓▓ ▓▓▓ ▓▓ ▓▓ ▓ ▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓ ▓▓ ▓▓▓ ▓▓ ▓▓▓ ▓▓▓▓ ▓ ▓▓ +#▓ ▓▓▓▓ ▓▓▓▓ ▓▓▓ ▓▓▓ ▓▓ ▓▓▓▓ ▓ ▓▓▓ ▓▓▓ ▓▓ ▓ ▓▓▓ ▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓ ▓▓▓▓ ▓▓ ▓▓ ▓▓▓ ▓▓▓▓ ▓ ▓▓▓ +#▓ ▓▓▓▓ ▓▓▓▓▓ ▓▓▓ ▓ ▓▓▓ ▓▓▓▓ ▓ ▓▓▓ ▓▓▓ ▓▓ ▓ ▓▓▓ ▓▓▓▓▓▓▓▓▓ ▓▓▓ ▓▓ ▓▓ ▓▓▓ ▓▓ ▓▓▓ ▓▓▓▓ ▓ ▓ +#█ ████ ████ ████ ██████ ████ ███ █ █ ██ ██ █ ███████████ ██████ █████ ██ ███ ████ █████ █ +#██████████████ █████ ██████████████████████████████████████████████████████████████████████████████████████████████████████ ██ + + + + + +# ──────────────────────────────────────────────────────────────────── +# ╭────────────────────────────────────────────────╮ +# │ MONITORS │ +# ╰────────────────────────────────────────────────╯ +# ──────────────────────────────────────────────────────────────────── + +monitor=eDP-1, disable +monitor=,highres highrr, auto, 1 + + +source=./hyprland/binds.conf +source=./hyprland/general.conf +source=./hyprland/windowrules.conf + +# ┌ ┐ +# │ LAPTOP │ +# └ ┘ +exec = hyprctl setcursor oreo_spark_blue_cursors 36 +env = HYPRCURSOR_THEME, Oreo_spark_blue_cursor +env = X_CURSOR_THEME, Oreo_spark_blue_cursor +env = XCURSOR_SIZE,24 +env = XDG_SESSION_TYPE, wayland +env = QT_QPA_PLATFORM,wayland +env = ELECTRON_OZONE_PLATFORM_HINT,wayland +exec-once = hyprpm reload -nn + +xwayland { + force_zero_scaling = true +} + +# ── Volume control ────────────────────────────────────────────────── +bind = ,code:123, exec, pamixer -i 5 +bind = ,code:122, exec, pamixer -d 5 +bind = ,code:121, exec, pamixer -t + + +# ── Brightness-Control ────────────────────────────────────────────── +bind = ,code:232, exec, light -U 5 && notify-send 'Display brightness decreased by 5%' +bind = ,code:233, exec, light -A 5 && notify-send 'Display brightness increased by 5%' + + +# ── Vivado inversion ──────────────────────────────────────────────── +windowrule = plugin:invertwindow, class:Vivado +windowrule = tile, title:(.*)Vivado(.*) diff --git a/config/hypr/hyprland_laptop.conf b/config/hypr/hyprland_laptop.conf index f07b3b6..ef3eb66 100644 --- a/config/hypr/hyprland_laptop.conf +++ b/config/hypr/hyprland_laptop.conf @@ -19,7 +19,7 @@ # ──────────────────────────────────────────────────────────────────── monitor=eDP-1, 2880x1800@60, 0x0, 1.5 -# monitor=,highres highrr, auto, 1 +monitor=,highres highrr, auto, 1 # exec = swaybg -m fill -i /home/janis/Pictures/arch-bg.png @@ -68,7 +68,6 @@ bind = $mainMod CTRL, E, exec, hyprctl keyword monitor HDMI-A-1, 1920x1080@60, 1 bind = $mainMod ALT, E, exec, hyprctl keyword monitor eDP-1, 2880x1800@60, 0x0, 1.5 && cpupower-gui -b && notify-send 'Set to battery optimized settings' bind = $mainMod ALT, P, exec, hyprctl keyword monitor eDP-1, 2880x1800@120, 0x0, 1.5 && cpupower-gui -p && notify-send 'Set to performance optimized settings' - # ── Vivado inversion ──────────────────────────────────────────────── windowrule = plugin:invertwindow, class:Vivado windowrule = tile, title:(.*)Vivado(.*) diff --git a/scripts/laptop-docked b/scripts/laptop-docked new file mode 100755 index 0000000..d6b5d9c --- /dev/null +++ b/scripts/laptop-docked @@ -0,0 +1,15 @@ +#!/bin/sh + +cp -f ~/.config/hypr/hyprland_docked.conf ~/.config/hypr/hyprland.conf +cp -f ~/.config/rofi/config_desktop.rasi ~/.config/rofi/config.rasi + +echo " ==> Restarting ags... " +killall gjs +killall ags +sleep 5 +ags run -d ~/projects/active/dotfiles/config/astal --gtk4 & disown +sleep 2 +ags run -d ~/projects/active/dotfiles/config/ags/notifications & disown + + +echo " ==> Done! To revert to normal config, run change-wallpaper" diff --git a/setup b/setup index 935b1f0..3440959 100755 --- a/setup +++ b/setup @@ -59,16 +59,12 @@ cp -r ./config/rofi ~/.config/ # Depending on platform, remove one or the other config and rename remaining one if [[ "$platform" == "d" ]]; then echo "Running on desktop" - mv ~/.config/hypr/hyprland_desktop.conf ~/.config/hypr/hyprland.conf - rm ~/.config/hypr/hyprland_* - mv ~/.config/rofi/config_desktop.rasi ~/.config/rofi/config.rasi - rm ~/.config/rofi/config_* + cp -f ~/.config/hypr/hyprland_desktop.conf ~/.config/hypr/hyprland.conf + cp -f ~/.config/rofi/config_desktop.rasi ~/.config/rofi/config.rasi else echo "Running on laptop" - mv ~/.config/hypr/hyprland_laptop.conf ~/.config/hypr/hyprland.conf - rm ~/.config/hypr/hyprland_* - mv ~/.config/rofi/config_laptop.rasi ~/.config/rofi/config.rasi - rm ~/.config/rofi/config_* + cp -f ~/.config/hypr/hyprland_laptop.conf ~/.config/hypr/hyprland.conf + cp -f ~/.config/rofi/config_laptop.rasi ~/.config/rofi/config.rasi fi cp -r ./config/kitty ~/.config/