From b850b78adbf170132cb58213b311023c93be7646 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 19 Feb 2025 19:41:07 +0900 Subject: bumping to v2.3.12 --- config/waybar/ModulesCustom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/waybar/ModulesCustom') diff --git a/config/waybar/ModulesCustom b/config/waybar/ModulesCustom index fe00d254..ba9c77ba 100644 --- a/config/waybar/ModulesCustom +++ b/config/waybar/ModulesCustom @@ -133,7 +133,7 @@ }, "custom/power": { - "format": "⏻ ", + "format": " ⏻ ", "on-click": "$HOME/.config/hypr/scripts/Wlogout.sh", "on-click-right": "$HOME/.config/hypr/scripts/ChangeBlur.sh", "tooltip": true, -- cgit v1.2.3 From c35b1026d16cff151b763ee484d9fc773952aeb1 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 21 Feb 2025 16:14:38 +0900 Subject: pushing for monitor profiles, changed the version to dev first indicating still in dev branch. Enhance functionality of KooL Quick Settings --- config/hypr/Monitor_Profiles/README | 9 +++ config/hypr/Monitor_Profiles/default.conf | 52 ++++++++++++++++ config/hypr/UserConfigs/UserKeybinds.conf | 2 +- config/hypr/UserConfigs/WindowRules.conf | 10 ++-- config/hypr/UserScripts/Kool_Quick_Settings.sh | 83 ++++++++++++++++++++++++++ config/hypr/UserScripts/QuickEdit.sh | 72 ---------------------- config/hypr/hyprland.conf | 4 +- config/hypr/scripts/KeyHints.sh | 2 +- config/hypr/scripts/MonitorProfiles.sh | 42 +++++++++++++ config/hypr/v2.3.12 | 5 -- config/hypr/v2.3.12-dev | 5 ++ config/rofi/config-Monitors.rasi | 41 +++++++++++++ config/rofi/config-edit.rasi | 3 +- config/waybar/ModulesCustom | 4 +- 14 files changed, 245 insertions(+), 89 deletions(-) create mode 100644 config/hypr/Monitor_Profiles/README create mode 100644 config/hypr/Monitor_Profiles/default.conf create mode 100755 config/hypr/UserScripts/Kool_Quick_Settings.sh delete mode 100755 config/hypr/UserScripts/QuickEdit.sh create mode 100755 config/hypr/scripts/MonitorProfiles.sh delete mode 100644 config/hypr/v2.3.12 create mode 100644 config/hypr/v2.3.12-dev create mode 100644 config/rofi/config-Monitors.rasi (limited to 'config/waybar/ModulesCustom') 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/Kool_Quick_Settings.sh b/config/hypr/UserScripts/Kool_Quick_Settings.sh new file mode 100755 index 00000000..7b2f7f0e --- /dev/null +++ b/config/hypr/UserScripts/Kool_Quick_Settings.sh @@ -0,0 +1,83 @@ +#!/bin/bash +# /* ---- πŸ’« https://github.com/JaKooLit πŸ’« ---- */ ## +# Rofi menu for Quick Edit/View of Settings (SUPER SHIFT E) + +# Define preferred text editor and terminal +edit=${EDITOR:-nano} +tty=kitty + +# variables +configs="$HOME/.config/hypr/configs" +UserConfigs="$HOME/.config/hypr/UserConfigs" +rofi_theme="~/.config/rofi/config-edit.rasi" +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() { + cat </dev/null; then + notify-send -i "$iDIR/ja.png" "Missing nwg-displays" "Install nwg-displays first" + exit 1 + fi + nwg-displays ;; + 11) if ! command -v nwg-displays &>/dev/null; then + notify-send -i "$iDIR/ja.png" "Missing nwg-displays" "Install nwg-displays first" + 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 + + # Open the selected file in the terminal with the text editor + if [ -n "$file" ]; then + $tty -e $edit "$file" + fi +} + +# Check if rofi is already running +if pidof rofi > /dev/null; then + pkill rofi +fi + +main \ No newline at end of file diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh deleted file mode 100755 index 2964ef3d..00000000 --- a/config/hypr/UserScripts/QuickEdit.sh +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/bash -# /* ---- πŸ’« https://github.com/JaKooLit πŸ’« ---- */ ## -# Rofi menu for Quick Edit/View of Settings (SUPER E) - -# Define preferred text editor and terminal -edit=${EDITOR:-nano} -tty=kitty - -# variables -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 ⁉️' -iDIR="$HOME/.config/swaync/images" - -# Function to display the menu options -menu() { - cat </dev/null; then - notify-send -i "$iDIR/ja.png" "Missing nwg-displays" "Install nwg-displays first" - exit 1 - fi - nwg-displays ;; - 11) if ! command -v nwg-displays &>/dev/null; then - notify-send -i "$iDIR/ja.png" "Missing nwg-displays" "Install nwg-displays first" - exit 1 - fi - nwg-displays ;; - *) return ;; # Do nothing for invalid choices - esac - - # Open the selected file in the terminal with the text editor - if [ -n "$file" ]; then - $tty -e $edit "$file" - fi -} - -# Check if rofi is already running -if pidof rofi > /dev/null; then - pkill rofi -fi - -main \ No newline at end of file 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 deleted file mode 100644 index 31b3414d..00000000 --- a/config/hypr/v2.3.12 +++ /dev/null @@ -1,5 +0,0 @@ -### https://github.com/JaKooLit ### -## https://github.com/JaKooLit/Hyprland-Dots -## This is to have a reference of which version would be - -## note that this will always be higher than the released versions \ No newline at end of file diff --git a/config/hypr/v2.3.12-dev b/config/hypr/v2.3.12-dev new file mode 100644 index 00000000..31b3414d --- /dev/null +++ b/config/hypr/v2.3.12-dev @@ -0,0 +1,5 @@ +### https://github.com/JaKooLit ### +## https://github.com/JaKooLit/Hyprland-Dots +## This is to have a reference of which version would be + +## note that this will always be higher than the released versions \ No newline at end of file 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": { -- cgit v1.2.3 From 7ca1cc2089d50600b561d329af0c5d1a8e239e42 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 22 Feb 2025 12:49:47 +0900 Subject: updated env and default weather provider is now the python based weather app since it takes lat and long automatically. Thanks to latest MR --- config/hypr/UserConfigs/ENVariables.conf | 2 +- config/waybar/ModulesCustom | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'config/waybar/ModulesCustom') diff --git a/config/hypr/UserConfigs/ENVariables.conf b/config/hypr/UserConfigs/ENVariables.conf index 7dde28c4..09ae1bdb 100644 --- a/config/hypr/UserConfigs/ENVariables.conf +++ b/config/hypr/UserConfigs/ENVariables.conf @@ -6,7 +6,7 @@ # environment-variables # Toolkit Backend Variables -env = GDK_BACKEND,wayland,x11 +env = GDK_BACKEND,wayland,x11,* env = QT_QPA_PLATFORM,wayland;xcb env = CLUTTER_BACKEND,wayland diff --git a/config/waybar/ModulesCustom b/config/waybar/ModulesCustom index 06feedfe..9237af27 100644 --- a/config/waybar/ModulesCustom +++ b/config/waybar/ModulesCustom @@ -11,9 +11,9 @@ "format-alt-click": "click", "interval": 3600, "return-type": "json", - "exec": "$HOME/.config/hypr/UserScripts/Weather.sh", - //"exec": "$HOME/.config/hypr/UserScripts/Weather.py", - "exec-if": "ping wttr.in -c1", + "exec": "$HOME/.config/hypr/UserScripts/Weather.py", + //"exec": "$HOME/.config/hypr/UserScripts/Weather.sh", + //"exec-if": "ping wttr.in -c1", "tooltip": true, }, -- cgit v1.2.3