diff options
| -rw-r--r-- | config/hypr/Monitor_Profiles/README | 9 | ||||
| -rw-r--r-- | config/hypr/Monitor_Profiles/default.conf | 52 | ||||
| -rw-r--r-- | config/hypr/UserConfigs/UserKeybinds.conf | 2 | ||||
| -rw-r--r-- | config/hypr/UserConfigs/WindowRules.conf | 10 | ||||
| -rwxr-xr-x | config/hypr/UserScripts/Kool_Quick_Settings.sh (renamed from config/hypr/UserScripts/QuickEdit.sh) | 15 | ||||
| -rw-r--r-- | config/hypr/hyprland.conf | 4 | ||||
| -rwxr-xr-x | config/hypr/scripts/KeyHints.sh | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/MonitorProfiles.sh | 42 | ||||
| -rw-r--r-- | config/hypr/v2.3.12-dev (renamed from config/hypr/v2.3.12) | 0 | ||||
| -rw-r--r-- | config/rofi/config-Monitors.rasi | 41 | ||||
| -rw-r--r-- | config/rofi/config-edit.rasi | 3 | ||||
| -rw-r--r-- | config/waybar/ModulesCustom | 4 |
12 files changed, 170 insertions, 14 deletions
diff --git a/config/hypr/Monitor_Profiles/README b/config/hypr/Monitor_Profiles/README new file mode 100644 index 00000000..b2e218c5 --- /dev/null +++ b/config/hypr/Monitor_Profiles/README @@ -0,0 +1,9 @@ +# Create a Monitor profile you want to on this directory + +# Create a unique file name i.e. Mirror, or Office, Scale, etc etc + +# tip: You can easily create a profile using nwg-displays +# after which, you can copy the ~/.config/hypr/monitors.conf file in this directory + +# Note, after selecting Profiles wanted, it will copy contents into ~/.config/hypr/monitors.conf + diff --git a/config/hypr/Monitor_Profiles/default.conf b/config/hypr/Monitor_Profiles/default.conf new file mode 100644 index 00000000..a96cac7d --- /dev/null +++ b/config/hypr/Monitor_Profiles/default.conf @@ -0,0 +1,52 @@ +# /* ---- π« https://github.com/JaKooLit π« ---- */ # +# default Monitor config + +# Monitor Configuration +# See Hyprland wiki for more details +# https://wiki.hyprland.org/Configuring/Monitors/ +# Configure your Display resolution, offset, scale and Monitors here, use `hyprctl monitors` to get the info. + +# Monitors +monitor=,preferred,auto,1 + +# High Refresh Rate +monitor=,highrr,auto,1 + +# High Resolution +monitor=,highres,auto,1 + +# NOTE: for laptop, kindly check notes in Laptops.conf regarding display +# Created this inorder for the monitor display to not wake up if not intended. +# See here: https://github.com/hyprwm/Hyprland/issues/4090 + +# Some examples to set your own monitor +#monitor = eDP-1, preferred, auto, 1 +#monitor = eDP-1, 2560x1440@165, 0x0, 1 #own screen +#monitor = DP-3, 1920x1080@240, auto, 1 +#monitor = DP-1, preferred, auto, 1 +#monitor = HDMI-A-1, preferred,auto,1 + +# QEMU-KVM, virtual box or vmware +#monitor = Virtual-1, 1920x1080@60,auto,1 + +# to disable a monitor +#monitor=name,disable + +# Mirror samples +#monitor=DP-3,1920x1080@60,0x0,1,mirror,DP-2 +#monitor=,preferred,auto,1,mirror,eDP-1 +#monitor=HDMI-A-1,2560x1440@144,0x0,1,mirror,eDP-1 + +# 10 bit monitor support - See wiki https://wiki.hyprland.org/Configuring/Monitors/#10-bit-support - See NOTES below +# NOTE: Colors registered in Hyprland (e.g. the border color) do not support 10 bit. +# NOTE: Some applications do not support screen capture with 10 bit enabled. (Screen captures like OBS may render black screen) +# monitor=,preferred,auto,1,bitdepth,10 + +#monitor=eDP-1,transform,0 +#monitor=eDP-1,addreserved,10,10,10,49 + +# workspaces - Monitor rules +# https://wiki.hyprland.org/Configuring/Workspace-Rules/ +# SUPER E - Workspace-Rules +# See ~/.config/hypr/UserConfigs/WorkspaceRules.conf + diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index 0538ee72..16557059 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -44,7 +44,7 @@ bind = $mainMod CTRL, B, exec, $scriptsDir/WaybarStyles.sh # Waybar Styles Menu bind = $mainMod ALT, B, exec, $scriptsDir/WaybarLayout.sh # Waybar Layout Menu # FEATURES / EXTRAS (UserScripts) -bind = $mainMod SHIFT, E, exec, $UserScripts/QuickEdit.sh # Quick Edit Hyprland Settings +bind = $mainMod SHIFT, E, exec, $UserScripts/Kool_Quick_Settings.sh # Settings Menu KooL Hyprland Settings bind = $mainMod SHIFT, M, exec, $UserScripts/RofiBeats.sh # online music using rofi bind = $mainMod, W, exec, $UserScripts/WallpaperSelect.sh # Select wallpaper to apply bind = $mainMod SHIFT, W, exec, $UserScripts/WallpaperEffects.sh # Wallpaper Effects by imagemagick diff --git a/config/hypr/UserConfigs/WindowRules.conf b/config/hypr/UserConfigs/WindowRules.conf index 05db62f1..faecbfa5 100644 --- a/config/hypr/UserConfigs/WindowRules.conf +++ b/config/hypr/UserConfigs/WindowRules.conf @@ -13,8 +13,8 @@ windowrulev2 = tag +browser, class:^(Brave-browser(-beta|-dev|-unstable)?)$ windowrulev2 = tag +browser, class:^([Tt]horium-browser|[Cc]achy-browser)$ windowrulev2 = tag +browser, class:^(zen-alpha|zen)$ windowrulev2 = tag +notif, class:^(swaync-control-center|swaync-notification-window|swaync-client|class)$ - -windowrulev2 = tag +nwg, class:^(nwg-displays|nwg-look)$ +windowrulev2 = tag +KooL_Settings, title:^(KooL Hyprland Settings)$ +windowrulev2 = tag +KooL-Settings, class:^(nwg-displays|nwg-look)$ # terminal tags windowrulev2 = tag +terminal, class:^(Alacritty|kitty|kitty-dropterm)$ @@ -69,7 +69,7 @@ windowrulev2 = tag +settings, title:(Kvantum Manager) windowrulev2 = tag +settings, class:^(file-roller|org.gnome.FileRoller)$ # archive manager windowrulev2 = tag +settings, class:^(nm-applet|nm-connection-editor|blueman-manager)$ windowrulev2 = tag +settings, class:^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pwvucontrol)$ -windowrulev2 = tag +settings, class:^(nwg-look|qt5ct|qt6ct|[Yy]ad)$ +windowrulev2 = tag +settings, class:^(qt5ct|qt6ct|[Yy]ad)$ windowrulev2 = tag +settings, class:(xdg-desktop-portal-gtk) windowrulev2 = tag +settings, class:^(org.kde.polkit-kde-authentication-agent-1)$ windowrulev2 = tag +settings, class:^([Rr]ofi)$ @@ -84,7 +84,7 @@ windowrulev2 = tag +viewer, class:^(eog|org.gnome.Loupe)$ # image viewer windowrulev2 = center, title:^(KooL Quick Cheat Sheet)$ windowrulev2 = center, class:([Tt]hunar), title:negative:(.*[Tt]hunar.*) windowrulev2 = center, title:^(ROG Control)$ -windowrulev2 = center, tag:nwg* +windowrulev2 = center, tag:KooL_Settings* windowrulev2 = center, title:^(Keybindings)$ windowrulev2 = center, class:^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pwvucontrol)$ windowrulev2 = center, class:^([Ww]hatsapp-for-linux|ZapZap|com.rtosta.zapzap)$ @@ -117,7 +117,7 @@ windowrulev2 = float, title:^(KooL Quick Cheat Sheet)$ windowrulev2 = float, tag:wallpaper* windowrulev2 = float, tag:settings* windowrulev2 = float, tag:viewer* -windowrulev2 = float, tag:nwg* +windowrulev2 = float, tag:KooL_Settings* windowrulev2 = float, class:([Zz]oom|onedriver|onedriver-launcher)$ windowrulev2 = float, class:(org.gnome.Calculator), title:(Calculator) windowrulev2 = float, class:^(mpv|com.github.rafostar.Clapper)$ diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/Kool_Quick_Settings.sh index 2964ef3d..7b2f7f0e 100755 --- a/config/hypr/UserScripts/QuickEdit.sh +++ b/config/hypr/UserScripts/Kool_Quick_Settings.sh @@ -1,6 +1,6 @@ #!/bin/bash # /* ---- π« https://github.com/JaKooLit π« ---- */ ## -# Rofi menu for Quick Edit/View of Settings (SUPER E) +# Rofi menu for Quick Edit/View of Settings (SUPER SHIFT E) # Define preferred text editor and terminal edit=${EDITOR:-nano} @@ -10,8 +10,10 @@ tty=kitty configs="$HOME/.config/hypr/configs" UserConfigs="$HOME/.config/hypr/UserConfigs" rofi_theme="~/.config/rofi/config-edit.rasi" -msg=' βοΈ Choose which config to View or Edit βοΈ' +msg=' βοΈ Choose what to do βοΈ' iDIR="$HOME/.config/swaync/images" +scriptsDir="$HOME/.config/hypr/scripts" +UserScripts="$HOME/.config/hypr/UserScripts" # Function to display the menu options menu() { @@ -27,6 +29,10 @@ menu() { 9. view/edit Default Keybinds 10. view/edit Monitors (via nwg-displays) 11. view/edit Workspace Rules (nwg-displays) +12. Choose Hyprland Animations +13. Choose Monitor Profiles +14. Choose Rofi Themes +15. Search for Keybinds EOF } @@ -55,6 +61,11 @@ main() { exit 1 fi nwg-displays ;; + 12) $scriptsDir/Animations.sh ;; + 13) $scriptsDir/MonitorProfiles.sh ;; + 14) $scriptsDir/RofiThemeSelector.sh ;; + 15) $scriptsDir/KeyBinds.sh ;; + *) return ;; # Do nothing for invalid choices esac diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 1469db06..0c6b7fc4 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -19,7 +19,7 @@ source= $UserConfigs/Startup_Apps.conf # put your start-up packages on this file source= $UserConfigs/ENVariables.conf # Environment variables to load -#source= $UserConfigs/Monitors.conf # Its all about your monitor config (old builds) +#source= $UserConfigs/Monitors.conf # Its all about your monitor config (old dots #source= $UserConfigs/WorkspaceRules.conf # Hyprland workspaces (old dots) source= $UserConfigs/Laptops.conf # For laptop related @@ -36,6 +36,6 @@ source= $UserConfigs/UserKeybinds.conf # Put your own keybinds here source= $UserConfigs/UserSettings.conf # Main Hyprland Settings. -# nwg displays +# nwg-displays source= $HOME/.config/hypr/monitors.conf source= $HOME/.config/hypr/workspaces.conf
\ No newline at end of file diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh index 60b2d689..973ca6b6 100755 --- a/config/hypr/scripts/KeyHints.sh +++ b/config/hypr/scripts/KeyHints.sh @@ -25,7 +25,7 @@ GDK_BACKEND=$BACKEND yad \ --timeout-indicator=bottom \ "ESC" "close this app" "ο" "ξ― = ο
Ί" "SUPER KEY (Windows Key Button)" "(SUPER KEY)" \ "ξ― SHIFT K" "Searchable Keybinds" "(Search all Keybinds via rofi)" \ -"ξ― SHIFT E" "View or EDIT Keybinds, Settings, Monitor" "" \ +"ξ― SHIFT E" "KooL Hyprland Settings Menu" "" \ "" "" "" \ "ξ― enter" "Terminal" "(kitty)" \ "ξ― SHIFT enter" "DropDown Terminal" "(Not available in Debian and Ubuntu)" \ diff --git a/config/hypr/scripts/MonitorProfiles.sh b/config/hypr/scripts/MonitorProfiles.sh new file mode 100755 index 00000000..ebab0144 --- /dev/null +++ b/config/hypr/scripts/MonitorProfiles.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# /* ---- π« https://github.com/JaKooLit π« ---- */ ## +# For applying Pre-configured Monitor Profiles + +# Check if rofi is already running +if pidof rofi > /dev/null; then + pkill rofi +fi + +# Variables +iDIR="$HOME/.config/swaync/images" +SCRIPTSDIR="$HOME/.config/hypr/scripts" +monitor_dir="$HOME/.config/hypr/Monitor_Profiles" +target="$HOME/.config/hypr/monitors.conf" +rofi_theme="~/.config/rofi/config-Monitors.rasi" +msg='βNOTE:β This will overwrite ~/.config/hypr/monitors.conf' + +# Define the list of files to ignore +ignore_files=( + "README" +) + +# list of Monitor Profiles, sorted alphabetically with numbers first +mon_profiles_list=$(find -L "$monitor_dir" -maxdepth 1 -type f | sed 's/.*\///' | sed 's/\.conf$//' | sort -V) + +# Remove ignored files from the list +for ignored_file in "${ignore_files[@]}"; do + mon_profiles_list=$(echo "$mon_profiles_list" | grep -v -E "^$ignored_file$") +done + +# Rofi Menu +chosen_file=$(echo "$mon_profiles_list" | rofi -i -dmenu -config $rofi_theme -mesg "$msg") + +# Check if a file was selected +if [[ -n "$chosen_file" ]]; then + full_path="$monitor_dir/$chosen_file.conf" + cp -r "$target" "$monitor_dir/Previous_Profile.conf" && cp "$full_path" "$target" + notify-send -u low -i "$iDIR/ja.png" "$chosen_file" "Monitor Profile Loaded" +fi + +sleep 1 +"$SCRIPTSDIR/RefreshNoWaybar.sh" diff --git a/config/hypr/v2.3.12 b/config/hypr/v2.3.12-dev index 31b3414d..31b3414d 100644 --- a/config/hypr/v2.3.12 +++ b/config/hypr/v2.3.12-dev diff --git a/config/rofi/config-Monitors.rasi b/config/rofi/config-Monitors.rasi new file mode 100644 index 00000000..4e9c2284 --- /dev/null +++ b/config/rofi/config-Monitors.rasi @@ -0,0 +1,41 @@ +/* ---- π« https://github.com/JaKooLit π« ---- */ +/* Monitor Profiles Menu */ + +@import "~/.config/rofi/config.rasi" + +/* ---- Mainbox ---- */ +mainbox { + children: + [ "inputbar", "message", "listview"]; +} + +/* ---- Window ---- */ +window { + width: 45%; + height: inherit; +} + +/* ---- Entry ---- */ +entry { + width: 43%; + placeholder: " π» Search / Choose which Monitor Profiles to load"; +} + +/* ---- Listview ---- */ +listview { + columns: 1; + lines: 5; + fixed-height: false; + margin: 10px; + scrollbar: true; +} + +/* ---- Elements ---- */ +element-icon { + size: 0%; +} +element-text { + horizontal-align: 0.0; + vertical-align: 0.0; + margin: 5px 30px 5px 30px; +} diff --git a/config/rofi/config-edit.rasi b/config/rofi/config-edit.rasi index 79fbbbd9..b8a90345 100644 --- a/config/rofi/config-edit.rasi +++ b/config/rofi/config-edit.rasi @@ -1,5 +1,5 @@ /* ---- π« https://github.com/JaKooLit π« ---- */ -/* Main Config (compact) */ +/* KooL Hyprland Edit Rofi Config */ @import "~/.config/rofi/config.rasi" @@ -27,6 +27,7 @@ listview { columns: 2; lines: 6; fixed-height: false; + scrollbar: true; } /* ---- Entry input ---- */ diff --git a/config/waybar/ModulesCustom b/config/waybar/ModulesCustom index ba9c77ba..06feedfe 100644 --- a/config/waybar/ModulesCustom +++ b/config/waybar/ModulesCustom @@ -40,9 +40,9 @@ "custom/settings": { "format": "ξ ", - "on-click": "$HOME/.config/hypr/UserScripts/QuickEdit.sh", + "on-click": "$HOME/.config/hypr/UserScripts/Kool_Quick_Settings.sh", "tooltip": true, - "tooltip-format": "Launch Quick Edit", + "tooltip-format": "Launch KooL Hyprland Settings Menu", }, "custom/cycle_wall": { |
