From 371976a4cfbe70ea871e8d32051dcfa5a5569faf Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Thu, 2 May 2024 09:47:40 +0900 Subject: [PATCH] added Windowrules.Conf - to assign workspace rules, ie, assigning specific workspace into a certain monitors --- config/hypr/UserConfigs/WorkspaceRules.conf | 20 +++++++++++++++++++ config/hypr/UserScripts/QuickEdit.sh | 10 +++++++--- config/hypr/hyprland.conf | 3 ++- config/rofi/config-compact.rasi | 2 +- .../rofi/resolution/1080p/config-compact.rasi | 2 +- .../rofi/resolution/1440p/config-compact.rasi | 4 ++-- 6 files changed, 33 insertions(+), 8 deletions(-) create mode 100644 config/hypr/UserConfigs/WorkspaceRules.conf diff --git a/config/hypr/UserConfigs/WorkspaceRules.conf b/config/hypr/UserConfigs/WorkspaceRules.conf new file mode 100644 index 0000000..8e98244 --- /dev/null +++ b/config/hypr/UserConfigs/WorkspaceRules.conf @@ -0,0 +1,20 @@ +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # + +# You can set workspace rules to achieve workspace-specific behaviors. +# For instance, you can define a workspace where all windows are drawn without borders or gaps. + +# https://wiki.hyprland.org/Configuring/Workspace-Rules/ + +# Assigning workspace to a certain monitor +# workspace = 1, monitor:eDP-1 +# workspace = 2, monitor:DP-2 + + +# example rules (from wiki) +# workspace = 3, rounding:false, decorate:false +# workspace = name:coding, rounding:false, decorate:false, gapsin:0, gapsout:0, border:false, decorate:false, monitor:DP-1 +# workspace = 8,bordersize:8 +# workspace = name:Hello, monitor:DP-1, default:true +# workspace = name:gaming, monitor:desc:Chimei Innolux Corporation 0x150C, default:true +# workspace = 5, on-created-empty:[float] firefox +# workspace = special:scratchpad, on-created-empty:foot \ No newline at end of file diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh index 658d7b0..af5c65d 100755 --- a/config/hypr/UserScripts/QuickEdit.sh +++ b/config/hypr/UserScripts/QuickEdit.sh @@ -12,8 +12,9 @@ menu(){ printf "5. view Monitors\n" printf "6. view Laptop-Keybinds\n" printf "7. view User-Settings\n" - printf "8. view Default-Settings\n" - printf "9. view Default-Keybinds\n" + printf "8. view Workspace-Rules\n" + printf "9. view Default-Settings\n" + printf "10. view Default-Keybinds\n" } main() { @@ -41,9 +42,12 @@ main() { kitty -e nano "$UserConfigs/UserSettings.conf" ;; 8) + kitty -e nano "$UserConfigs/WorkspaceRules.conf" + ;; + 9) kitty -e nano "$configs/Settings.conf" ;; - 9) + 10) kitty -e nano "$configs/Keybinds.conf" ;; *) diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 343b887..a8ae26f 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -16,4 +16,5 @@ source= $UserConfigs/Laptops.conf source= $UserConfigs/LaptopDisplay.conf source= $UserConfigs/WindowRules.conf source= $UserConfigs/UserKeybinds.conf -source= $UserConfigs/UserSettings.conf \ No newline at end of file +source= $UserConfigs/UserSettings.conf +source= $UserConfigs/WorkspaceRules.conf \ No newline at end of file diff --git a/config/rofi/config-compact.rasi b/config/rofi/config-compact.rasi index 2d68a6d..9cc7b03 100644 --- a/config/rofi/config-compact.rasi +++ b/config/rofi/config-compact.rasi @@ -110,7 +110,7 @@ entry { listview { enabled: true; columns: 1; - lines: 7; + lines: 10; spacing: 4px; dynamic: true; cycle: true; diff --git a/config/rofi/resolution/1080p/config-compact.rasi b/config/rofi/resolution/1080p/config-compact.rasi index 2d68a6d..9cc7b03 100644 --- a/config/rofi/resolution/1080p/config-compact.rasi +++ b/config/rofi/resolution/1080p/config-compact.rasi @@ -110,7 +110,7 @@ entry { listview { enabled: true; columns: 1; - lines: 7; + lines: 10; spacing: 4px; dynamic: true; cycle: true; diff --git a/config/rofi/resolution/1440p/config-compact.rasi b/config/rofi/resolution/1440p/config-compact.rasi index 825fff6..01ad456 100644 --- a/config/rofi/resolution/1440p/config-compact.rasi +++ b/config/rofi/resolution/1440p/config-compact.rasi @@ -39,7 +39,7 @@ window { enabled: true; border-radius: 15px; border-radius: 15px; - background-image: url("~/.config/rofi/.current_wallpaper", height); + background-image: url("~/.config/rofi/.current_wallpaper", height); } /* ---- Mainbox ---- */ @@ -110,7 +110,7 @@ entry { listview { enabled: true; columns: 1; - lines: 7; + lines: 10; spacing: 4px; dynamic: true; cycle: true;