From be055e0a4e5aba025fb61cf648bd6cb8c56a919c Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Fri, 19 Jul 2024 01:14:02 +0545 Subject: [PATCH] updates --- config/hypr/UserConfigs/ENVariables.conf | 5 +- config/hypr/UserConfigs/UserKeybinds.conf | 8 +- config/hypr/UserConfigs/UserSettings.conf | 14 +- config/hypr/UserConfigs/WindowRules.conf | 16 +- config/hypr/UserConfigs/old win rule.conf | 211 ++++++++++++++++++++++ 5 files changed, 225 insertions(+), 29 deletions(-) create mode 100644 config/hypr/UserConfigs/old win rule.conf diff --git a/config/hypr/UserConfigs/ENVariables.conf b/config/hypr/UserConfigs/ENVariables.conf index 831823e9..cfd34ca8 100644 --- a/config/hypr/UserConfigs/ENVariables.conf +++ b/config/hypr/UserConfigs/ENVariables.conf @@ -12,10 +12,9 @@ env = XDG_SESSION_DESKTOP,Hyprland env = XDG_SESSION_TYPE,wayland env = SDL_VIDEODRIVEVER=wayland -env = GDK_SCALE,2 +env = GDK_SCALE,1 + -# vulkan -#env = WLR_RENDERER,vulkan # firefox env = MOZ_ENABLE_WAYLAND,1 firefox diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index 3b99fcce..2a6ad470 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -50,10 +50,10 @@ bind = ALT, COMMA, exec, pypr zoom +1 #! @description: "Increase Zoom" # AGS bind = $mainMod, D, exec, ags -r "toggleAppsWindow()" #! @description: "App Launcher"; @apps; bind = $mainMod SHIFT, Z, exec, ags -r "toggleMediaWindow()" #! @description: "Players"; @actions; -bind = ALT, R, exec, ags -t sidebar #! @description: "rightbar"; @actions; -bind = ALT, L, exec, ags -t sideleft #! @description: "leftbar"; @actions; -bind = $mainMod, PERIOD, exec, ags -r 'OpenEmojiPicker()' #! @description: "Emoji Picker"; @actions; -bind = SHIFT ALT, C, exec, ags -t cliphist #! @description: "Clipboard history"; @actions; +bind = ALT, R, exec, ags -t sidebar #! @description: "rightbar"; @actions; +bind = ALT, L, exec, ags -t sideleft #! @description: "leftbar"; @actions; +bind = $mainMod, PERIOD, exec, ags -r "OpenEmojiPicker()" #! @description: "Emoji Picker"; @actions; +bind = SHIFT ALT, C, exec, ags -r "toggleClipsWindow()" #! @description: "Clipboard history"; @actions; bind = $mainMod, W, exec, ags -r "OpenSettings('wallpaper')" #! @description: "Change wallpaper"; @actions; bind = $mainMod SHIFT, S, exec, ags -r 'OpenSettings()' #! @description: "Setting"; @actions; bind = ALT, F1, exec, ags -t cheatsheet #! @description: "List of keybindings"; @misc; diff --git a/config/hypr/UserConfigs/UserSettings.conf b/config/hypr/UserConfigs/UserSettings.conf index eef8aea0..d7656bde 100644 --- a/config/hypr/UserConfigs/UserSettings.conf +++ b/config/hypr/UserConfigs/UserSettings.conf @@ -2,8 +2,8 @@ # User Settings # refer to Hyprland wiki for more info https://wiki.hyprland.org/Configuring/Variables -# blurls = waybar -# blurls = rofi +# Sourcing colors generated by wallust +source = ~/.cache/wal/colors-hyprland.conf dwindle { pseudotile = yes @@ -28,8 +28,8 @@ general { border_size = 0 resize_on_border = true - col.active_border = rgb({#bdacc9.strip}) - col.inactive_border = rgb({#bdacc9.darken(10).strip}) + col.active_border = $border_color_active + col.inactive_border = $border_color_inactive layout = master } @@ -38,20 +38,20 @@ decoration { rounding = 24 active_opacity = 1 - inactive_opacity = 0.9 + inactive_opacity = 1 fullscreen_opacity = 1 dim_inactive = true dim_strength = 0.1 dim_special = 0.8 - drop_shadow = true + drop_shadow = false shadow_range = 10 shadow_render_power = 3 col.shadow = 0x66000000 blur { - enabled = true + enabled = false size = 4 passes = 3 ignore_opacity = true diff --git a/config/hypr/UserConfigs/WindowRules.conf b/config/hypr/UserConfigs/WindowRules.conf index 9f20eaf6..94aa581d 100644 --- a/config/hypr/UserConfigs/WindowRules.conf +++ b/config/hypr/UserConfigs/WindowRules.conf @@ -1,12 +1,6 @@ # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # Opacity Rules -windowrulev2 = opacity 0.9 0.6, class:^([Rr]ofi)$ -windowrulev2 = opacity 0.9 0.6, class:^(yad)$ -windowrulev2 = opacity 0.9 0.6, class:^(mousepad)$ -windowrulev2 = opacity 0.9 0.9, class:^(geany)$ -windowrulev2 = opacity 0.80 0.70,class:^(nm-applet)$ -windowrulev2 = opacity 0.80 0.70,class:^(nm-connection-editor)$ # Xwaylandvideobridge (if installed) windowrulev2 = opacity 0.0 override,class:^(xwaylandvideobridge)$ @@ -27,8 +21,7 @@ windowrulev2 = float, class:^(.*mpv.*) windowrulev2 = size 70% 70%, class:^(.*mpv.*) -# Do not lose focus when rofi or gnome polkit is opened -windowrulev2 = stayfocused, class:(rofi) +# Do not lose focus when gnome polkit is opened windowrulev2 = stayfocused, class:(polkit-gnome-authentication-agent-1) # Pavucontrol @@ -62,8 +55,6 @@ windowrulev2 = center, class:(com.obsproject.Studio), title:(Select Recording Di windowrulev2 = workspace 3, class:^(firefox)$ windowrulev2 = workspace 3, class:^(qutebrowser)$ windowrulev2 = workspace 3, class:^(Firefox-esr)$ -windowrulev2 = opacity 0.9 0.9, class:^(firefox)$ -windowrulev2 = opacity 0.95 0.95,title:^(Picture-in-Picture)$ windowrulev2 = pin,title:^(Picture-in-Picture)$ windowrulev2 = float, title:^(Picture-in-Picture)$ windowrulev2 = size 25% 25%,title:^(Picture-in-Picture)$ @@ -92,7 +83,6 @@ windowrulev2 = size 477 149, class:(thunar), title:(Create New Folder) windowrulev2 = center, class:(thunar), title:(Create New Folder) windowrulev2 = workspace 4, class:(thunar) -windowrulev2 = opacity 0.9 0.9, class:^([Tt]hunar)$ #windowrulev2 = float, class:(thunar) #windowrulev2 = size 1161 619, class:(thunar) #windowrulev2 = center, class:(thunar) @@ -111,13 +101,10 @@ windowrulev2 = center 1, $center-float-title # VS Code windowrulev2 = workspace 2, class:^(.*Code.*)$|(.*codium.*)$|(.*VSCodium.*) -windowrulev2 = opacity 0.9 0.9, class:^(.*Code.*)$|(.*codium.*)$|(.*codium-url-handler.*)$|(.*VSCodium.*) # Telegram # windowrulev2 = fullscreen, class:(org.telegram.desktop), title:(Media viewer) - -windowrulev2 = opacity 0.90, class:^(org.telegram.desktop)$ windowrulev2 = workspace 6, class:(org.telegram.desktop) windowrulev2 = size 833 455, class:(org.telegram.desktop), title:(Choose Files) windowrulev2 = center, class:(org.telegram.desktop), title:(Choose Files) @@ -146,7 +133,6 @@ windowrulev2 = center, class:(org.qbittorrent.qBittorrent), title:(.*qbittorrent # Kitty -windowrule = opacity 0.9 0.9,kitty windowrule = float, title:^(Kitty)$ windowrule = size 800 500, title:^(Kitty)$ windowrule = move center, title:^(Kitty)$ diff --git a/config/hypr/UserConfigs/old win rule.conf b/config/hypr/UserConfigs/old win rule.conf new file mode 100644 index 00000000..9f20eaf6 --- /dev/null +++ b/config/hypr/UserConfigs/old win rule.conf @@ -0,0 +1,211 @@ +# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more + +# Opacity Rules +windowrulev2 = opacity 0.9 0.6, class:^([Rr]ofi)$ +windowrulev2 = opacity 0.9 0.6, class:^(yad)$ +windowrulev2 = opacity 0.9 0.6, class:^(mousepad)$ +windowrulev2 = opacity 0.9 0.9, class:^(geany)$ +windowrulev2 = opacity 0.80 0.70,class:^(nm-applet)$ +windowrulev2 = opacity 0.80 0.70,class:^(nm-connection-editor)$ + +# Xwaylandvideobridge (if installed) +windowrulev2 = opacity 0.0 override,class:^(xwaylandvideobridge)$ +windowrulev2 = noanim,class:^(xwaylandvideobridge)$ +windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$ +windowrulev2 = maxsize 1 1,class:^(xwaylandvideobridge)$ +windowrulev2 = noblur,class:^(xwaylandvideobridge)$ + +# Workspace Rules +windowrule = workspace 5, ^(.*vlc*)$ + +#windowrule = stayfocused, ^(com.github.Aylur.ags)$ +windowrule = float, ^(com.github.Aylur.ags)$ + +# MPV +windowrule = workspace 5, ^(.*mpv*)$ +windowrulev2 = float, class:^(.*mpv.*) +windowrulev2 = size 70% 70%, class:^(.*mpv.*) + + +# Do not lose focus when rofi or gnome polkit is opened +windowrulev2 = stayfocused, class:(rofi) +windowrulev2 = stayfocused, class:(polkit-gnome-authentication-agent-1) + +# Pavucontrol +windowrulev2 = float, class:(pavucontrol) +windowrulev2 = size 533 533, class:(pavucontrol) +windowrulev2 = center, class:(pavucontrol) + +# Zathura +$zathura = class:^(.*zathura.*)$ +windowrulev2 = float, $zathura +windowrulev2 = size 35% 90%, $zathura +windowrulev2 = center 1, $zathura + + +# OBS + +# Main window / Profile screen +windowrulev2 = size 75% 70%, class:(com.obsproject.Studio), title:(.*Profile:.*) + +# Class settings +windowrulev2 = workspace 9, class:(com.obsproject.Studio) +windowrulev2 = float, class:(com.obsproject.Studio) +windowrulev2 = center, class:(com.obsproject.Studio) + +# Folder picker +windowrulev2 = size 50% 45%, class:(com.obsproject.Studio), title:(Select Recording Directory) +windowrulev2 = center, class:(com.obsproject.Studio), title:(Select Recording Directory) + + +# Fireox class settings +windowrulev2 = workspace 3, class:^(firefox)$ +windowrulev2 = workspace 3, class:^(qutebrowser)$ +windowrulev2 = workspace 3, class:^(Firefox-esr)$ +windowrulev2 = opacity 0.9 0.9, class:^(firefox)$ +windowrulev2 = opacity 0.95 0.95,title:^(Picture-in-Picture)$ +windowrulev2 = pin,title:^(Picture-in-Picture)$ +windowrulev2 = float, title:^(Picture-in-Picture)$ +windowrulev2 = size 25% 25%,title:^(Picture-in-Picture)$ +windowrulev2 = move 72% 7%,title:^(Picture-in-Picture)$ +windowrulev2 = idleinhibit fullscreen, class:^(.*firefox.*)$ + +# Thunar +windowrulev2 = size 456 884, title:(.*Compress.*), class:(thunar) +windowrulev2 = center, title:(.*Compress.*), class:(thunar) +windowrulev2 = float, title:(.*Compress.*), class:(thunar) + +windowrulev2 = size 516 158, title:(.*Rename.*), class:(thunar) +windowrulev2 = center, title:(.*Rename.*), class:(thunar) + +windowrulev2 = size 950 270, title:(Confirm to replace files), class:(thunar) +windowrulev2 = center, title:(Confirm to replace files), class:(thunar) +windowrulev2 = float,title:^(Confirm to replace files) + +windowrulev2 = size 444 103, title:(File Operation Progress), class:(thunar) +windowrulev2 = center, title:(File Operation Progress), class:(thunar) + +windowrulev2 = size 565 591, class:(thunar), title:(Properties) +windowrulev2 = center, class:(thunar), title:(Properties) + +windowrulev2 = size 477 149, class:(thunar), title:(Create New Folder) +windowrulev2 = center, class:(thunar), title:(Create New Folder) + +windowrulev2 = workspace 4, class:(thunar) +windowrulev2 = opacity 0.9 0.9, class:^([Tt]hunar)$ +#windowrulev2 = float, class:(thunar) +#windowrulev2 = size 1161 619, class:(thunar) +#windowrulev2 = center, class:(thunar) + + +# File / Folder pickers +$center-float = class:^(center-float)$|^(.*file-roller.*)$|^(.*FileRoller.*)$ +$center-float-title = title:^(.*Open Folder.*)$|^(.*Open File.*)$|^(.*Save File.*)$|^(.*Save Folder.*)$|^(.*Save Image.*)$|^(.*Save As.*)$|^(.*Open As.*)$ +windowrulev2 = float, $center-float +windowrulev2 = float, $center-float-title +windowrulev2 = size 50% 50%, $center-float +windowrulev2 = size 50% 50%, $center-float-title +windowrulev2 = center 1, $center-float +windowrulev2 = center 1, $center-float-title + + +# VS Code +windowrulev2 = workspace 2, class:^(.*Code.*)$|(.*codium.*)$|(.*VSCodium.*) +windowrulev2 = opacity 0.9 0.9, class:^(.*Code.*)$|(.*codium.*)$|(.*codium-url-handler.*)$|(.*VSCodium.*) + + +# Telegram +# windowrulev2 = fullscreen, class:(org.telegram.desktop), title:(Media viewer) + +windowrulev2 = opacity 0.90, class:^(org.telegram.desktop)$ +windowrulev2 = workspace 6, class:(org.telegram.desktop) +windowrulev2 = size 833 455, class:(org.telegram.desktop), title:(Choose Files) +windowrulev2 = center, class:(org.telegram.desktop), title:(Choose Files) +#windowrulev2 = float, class:^(org.telegram.desktop)$ +#windowrulev2 = center, class:^(org.telegram.desktop)$ +#windowrulev2 = size 800 800, class:^(org.telegram.desktop)$ + +# discord +windowrulev2 = workspace 7, class:^(.*discord.*)$|(.*vesktop.*)$|(.*WebCord.*)$ + +# File Roller +windowrulev2 = workspace 4, class:(file-roller), title:(Archive Manager) +windowrulev2 = float, class:(file-roller), title:(Archive Manager) +windowrulev2 = size 45% 50%, class:(file-roller), title:(Archive Manager) +windowrulev2 = center, class:(file-roller), title:(Archive Manager) +windowrulev2 = float, class:(file-roller), title:(Extract archive) +windowrulev2 = size 30% 15%, class:(file-roller), title:(Extract archive) +windowrulev2 = center, class:(file-roller), title:(Extract archive) + + +# qBittorrent +windowrulev2 = workspace 9, class:(org.qbittorrent.qBittorrent) +windowrulev2 = float, class:(org.qbittorrent.qBittorrent) +windowrulev2 = size 1137 547, class:(org.qbittorrent.qBittorrent), title:(.*qbittorrent.*) +windowrulev2 = center, class:(org.qbittorrent.qBittorrent), title:(.*qbittorrent.*) + + +# Kitty +windowrule = opacity 0.9 0.9,kitty +windowrule = float, title:^(Kitty)$ +windowrule = size 800 500, title:^(Kitty)$ +windowrule = move center, title:^(Kitty)$ +windowrule = animation slide, title:^(Kitty)$ +windowrule = float, title:^(Kitty)$ +windowrule = float, kitty_float + + +# Bluetooth applet +windowrulev2 = float, class:(blueman) +windowrulev2 = size 680 665, class:(blueman) +windowrulev2 = center, class:(blueman) + + +# IMV image viewer +$center-float-large = class:^(center-float-large)$|^(.*imv.*)$|^(.*imv-dir.*)$ +windowrulev2 = float, $center-float-large +windowrulev2 = size 70% 70%, $center-float-large +windowrulev2 = center 1, $center-float-large + + +# qt5ct / qt6ct +windowrulev2 = float, class:(qt5ct) +windowrulev2 = float, class:(qt6ct) + +windowrulev2 = size 1256 689, class:(qt5ct) +windowrulev2 = size 1256 689, class:(qt6ct) + +windowrulev2 = center, class:(qt5ct) +windowrulev2 = center, class:(qt6ct) + +windowrulev2 = size 257 116, class:(qt5ct), title:(Enter Color Scheme Name) +windowrulev2 = size 257 116, class:(qt6ct), title:(Enter Color Scheme Name) + +windowrulev2 = size 548 476, class:(qt5ct), title:(Select Color) +windowrulev2 = size 548 476, class:(qt6ct), title:(Select Color) + + +# Other +windowrule = float, nm-connection-editor|vlc|yad|rofi|Lxappearance +windowrule = float, org.kde.polkit-kde-authentication-agent-1 +windowrulev2 = size 543 239, class:^(polkit-gnome-authentication-agent-1)$ +windowrulev2 = float, class:^(polkit-gnome-authentication-agent-1)$ +windowrulev2 = center, class:(polkit-gnome-authentication-agent-1) + +windowrulev2 = float, title:(File Operation Progress) +windowrulev2 = center, title:(File Operation Progress) + + + +# Layer Rules +layerrule = noanim, hyprpicker + +layerrule = noanim, noanim +layerrule = blur, gtk-layer-shell +layerrule = ignorezero, gtk-layer-shell +layerrule = blur, launcher +layerrule = ignorealpha 0.5, launcher +layerrule = blur, notifications +layerrule = ignorealpha 0.69, notifications + +layerrule = noanim, notifications