From f79f0a1dad43628eea867ca433fa13edd2296936 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 20 Feb 2025 10:25:02 +0900 Subject: integrated nwg-display --- config/hypr/UserConfigs/UserDecorations.conf | 6 ++-- config/hypr/UserConfigs/WindowRules.conf | 5 +++ config/hypr/UserScripts/QuickEdit.sh | 35 ++++++++++--------- config/hypr/monitors.conf | 52 ++++++++++++++++++++++++++++ config/hypr/workspaces.conf | 28 +++++++++++++++ 5 files changed, 107 insertions(+), 19 deletions(-) create mode 100644 config/hypr/monitors.conf create mode 100644 config/hypr/workspaces.conf (limited to 'config') diff --git a/config/hypr/UserConfigs/UserDecorations.conf b/config/hypr/UserConfigs/UserDecorations.conf index b69f26ec..0b450904 100644 --- a/config/hypr/UserConfigs/UserDecorations.conf +++ b/config/hypr/UserConfigs/UserDecorations.conf @@ -10,8 +10,8 @@ source = $HOME/.config/hypr/wallust/wallust-hyprland.conf general { border_size = 2 - gaps_in = 4 - gaps_out = 6 + gaps_in = 2 + gaps_out = 4 col.active_border = $color12 col.inactive_border = $color10 @@ -55,4 +55,4 @@ group { groupbar { col.active = $color0 } -} \ No newline at end of file +} diff --git a/config/hypr/UserConfigs/WindowRules.conf b/config/hypr/UserConfigs/WindowRules.conf index 4c1e5dc6..05db62f1 100644 --- a/config/hypr/UserConfigs/WindowRules.conf +++ b/config/hypr/UserConfigs/WindowRules.conf @@ -14,6 +14,8 @@ 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)$ + # terminal tags windowrulev2 = tag +terminal, class:^(Alacritty|kitty|kitty-dropterm)$ @@ -82,6 +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, title:^(Keybindings)$ windowrulev2 = center, class:^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pwvucontrol)$ windowrulev2 = center, class:^([Ww]hatsapp-for-linux|ZapZap|com.rtosta.zapzap)$ @@ -114,6 +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, class:([Zz]oom|onedriver|onedriver-launcher)$ windowrulev2 = float, class:(org.gnome.Calculator), title:(Calculator) windowrulev2 = float, class:^(mpv|com.github.rafostar.Clapper)$ @@ -123,6 +127,7 @@ windowrulev2 = float, class:^([Ff]erdium)$ windowrulev2 = float, title:^(Picture-in-Picture)$ #windowrulev2 = float, title:^(Firefox)$ + #windowrule v2 - float popups and dialogue windowrulev2 = float, title:^(Authentication Required)$ windowrulev2 = center, title:^(Authentication Required)$ diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh index 09530881..12db89b4 100755 --- a/config/hypr/UserScripts/QuickEdit.sh +++ b/config/hypr/UserScripts/QuickEdit.sh @@ -15,17 +15,17 @@ msg=' ⁉️ Choose which config to View or Edit ⁉️' # Function to display the menu options menu() { cat < /dev/null; then fi main + diff --git a/config/hypr/monitors.conf b/config/hypr/monitors.conf new file mode 100644 index 00000000..b3b75847 --- /dev/null +++ b/config/hypr/monitors.conf @@ -0,0 +1,52 @@ +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # + +# WARN!!! THIS WILL BE OVERWRITTEN by NWG-DISPLAY + +# 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/workspaces.conf b/config/hypr/workspaces.conf new file mode 100644 index 00000000..37471b3e --- /dev/null +++ b/config/hypr/workspaces.conf @@ -0,0 +1,28 @@ +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # + +# WARN THIS WILL BE OVERWRITTEN by NWG-DISPLAY + +# 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. Below are just examples +# workspace = 1, monitor:eDP-1 +# workspace = 2, monitor:eDP-1 +# workspace = 3, monitor:eDP-1 +# workspace = 4, monitor:eDP-1 +# workspace = 5, monitor:DP-2 +# workspace = 6, monitor:DP-2 +# workspace = 7, monitor:DP-2 +# workspace = 8, 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 -- cgit v1.2.3