From adfc0d05b035e5946783539944e33713aac28dac Mon Sep 17 00:00:00 2001 From: Michel Date: Mon, 27 Jan 2025 17:34:02 +0100 Subject: [PATCH] Adds hyprland setup --- .config/hypr/UserConfigs/Monitors.conf | 46 ++----------------- .config/hypr/UserConfigs/Startup_Apps.conf | 8 +++- .config/hypr/UserConfigs/UserKeybinds.conf | 5 +- .config/hypr/UserConfigs/WindowRules.conf | 34 +------------- .config/hypr/UserConfigs/i3Keybinds.conf | 3 ++ .config/hypr/configs/Keybinds.conf | 2 +- .config/waybar/ModulesCustom | 4 ++ .config/waybar/ModulesGroups | 2 +- .config/waybar/style/[Retro] Custom.css | 2 +- .../xfconf/xfce-perchannel-xml/thunar.xml | 8 ++-- 10 files changed, 27 insertions(+), 87 deletions(-) diff --git a/.config/hypr/UserConfigs/Monitors.conf b/.config/hypr/UserConfigs/Monitors.conf index efb47cb..27f4bf0 100644 --- a/.config/hypr/UserConfigs/Monitors.conf +++ b/.config/hypr/UserConfigs/Monitors.conf @@ -5,47 +5,7 @@ # 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 +monitor=DP-4, preferred, 0x0, 1 +monitor=DP-2, preferred, auto-left, 1 +exec=xrandr --output DP-4 --primary diff --git a/.config/hypr/UserConfigs/Startup_Apps.conf b/.config/hypr/UserConfigs/Startup_Apps.conf index e21e715..4b37bd7 100644 --- a/.config/hypr/UserConfigs/Startup_Apps.conf +++ b/.config/hypr/UserConfigs/Startup_Apps.conf @@ -24,9 +24,10 @@ exec-once = waybar & exec-once = nm-applet --indicator & exec-once = swaync & exec-once = ags & -exec-once = blueman-applet & +exec-once = blueman-applet & exec-once = kdeconnect-indicator & #exec-once = rog-control-center & +exec-once = sleep 5 && nwg-dock-hyprland -a start -f -nolauncher -x -i 30 -o "DP-4" & # Rainbow borders exec-once = $UserScripts/RainbowBorders.sh & @@ -37,6 +38,11 @@ exec-once = hypridle & # Start pyprland daemon exec-once = pypr & +exec-once = wl-paste --type text --watch cliphist store # Stores only text data +exec-once = wl-paste --type image --watch cliphist store # Stores only image data + +exec-once = hyprswitch init --show-title --size-factor 5.5 --workspaces-per-row 5 & + # Here are list of features available but disabled by default # exec-once = swww-daemon --format xrgb && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper diff --git a/.config/hypr/UserConfigs/UserKeybinds.conf b/.config/hypr/UserConfigs/UserKeybinds.conf index 75e077b..31d38ad 100644 --- a/.config/hypr/UserConfigs/UserKeybinds.conf +++ b/.config/hypr/UserConfigs/UserKeybinds.conf @@ -13,7 +13,8 @@ $UserScripts = $HOME/.config/hypr/UserScripts # rofi App launcher #bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run,window # Super Key to Launch rofi menu -bind = $mainMod, Tab, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run,window #Main Menu +bind = $mainMod, Tab, exec, nwg-drawer +bind = ALT, Tab, exec, hyprswitch gui --mod-key alt --key tab bind = $mainMod, Return, exec, $term #terminal bind = $mainMod, T, exec, $files #file manager @@ -26,5 +27,3 @@ bind = $mainMod, Z, exec, pypr zoom # Toggle Desktop Zoom # User Added Keybinds bindn = ALT_L, SHIFT_L, exec, $scriptsDir/SwitchKeyboardLayout.sh # Change keyboard layout - - diff --git a/.config/hypr/UserConfigs/WindowRules.conf b/.config/hypr/UserConfigs/WindowRules.conf index 9bdacae..138d14e 100644 --- a/.config/hypr/UserConfigs/WindowRules.conf +++ b/.config/hypr/UserConfigs/WindowRules.conf @@ -39,6 +39,7 @@ windowrulev2 = workspace 3, class:^([Ww]hatsapp-for-linux)$ windowrulev2 = workspace 3, class:^(teams-for-linux)$ windowrulev2 = workspace 4, class:^([Ss]team)$ windowrulev2 = workspace 4, class:^([Ll]utris)$ +windowrulev2 = workspace 4, class:^([Hh]eroic)$ windowrulev2 = workspace 5, class:^(com.github.th_ch.youtube_music)$ # windowrule v2 - float @@ -73,39 +74,6 @@ windowrulev2 = float, title:^(ROG Control)$ windowrulev2 = float, title:^(hyprgui)$ windowrulev2 = float, class:^(io.ente.auth)$ -# windowrule v2 - opacity #enable as desired -windowrulev2 = opacity 0.9 0.6, class:^([Rr]ofi)$ -windowrulev2 = opacity 0.9 0.7, class:^(Brave-browser(-beta|-dev)?)$ -windowrulev2 = opacity 0.9 0.7, class:^([Ff]irefox|org.mozilla.firefox|[Ff]irefox-esr)$ -windowrulev2 = opacity 0.9 0.7, class:^(zen-beta)$ # zen browser -windowrulev2 = opacity 0.9 0.6, class:^([Tt]horium-browser|[Cc]achy-browser)$ -windowrulev2 = opacity 0.9 0.8, class:^([Mm]icrosoft-edge(-stable|-beta|-dev|-unstable)?)$ -windowrulev2 = opacity 0.9 0.8, class:^(google-chrome(-beta|-dev|-unstable)?)$ -windowrulev2 = opacity 0.94 0.86, class:^(chrome-.+-Default)$ # Chrome PWAs -windowrulev2 = opacity 0.9 0.8, class:^([Tt]hunar|org.gnome.Nautilus)$ -windowrulev2 = opacity 0.8 0.6, class:^(pcmanfm-qt)$ -windowrulev2 = opacity 0.8 0.7, class:^(gedit|org.gnome.TextEditor|mousepad)$ -windowrulev2 = opacity 0.9 0.8, class:^(deluge)$ -windowrulev2 = opacity 0.8 0.7, class:^(Alacritty|kitty|kitty-dropterm)$ # Terminals -windowrulev2 = opacity 0.9 0.7, class:^(VSCodium|codium-url-handler|code-oss)$ -windowrulev2 = opacity 0.9 0.8, class:^(nwg-look|qt5ct|qt6ct|[Yy]ad)$ -windowrulev2 = opacity 0.9 0.8, title:(Kvantum Manager) -windowrulev2 = opacity 0.9 0.7, class:^(com.obsproject.Studio)$ -windowrulev2 = opacity 0.9 0.7, class:^([Aa]udacious)$ -windowrulev2 = opacity 0.9 0.8, class:^(VSCode|code-url-handler)$ -windowrulev2 = opacity 0.9 0.8, class:^(jetbrains-.+)$ # JetBrains IDEs -windowrulev2 = opacity 0.94 0.86, class:^([Dd]iscord|[Vv]esktop)$ -windowrulev2 = opacity 0.9 0.8, class:^(org.telegram.desktop|io.github.tdesktop_x64.TDesktop)$ -windowrulev2 = opacity 0.9 0.8, class:^(im.riot.Riot)$ # Element matrix client -windowrulev2 = opacity 0.94 0.86, class:^(gnome-disks|evince|wihotspot(-gui)?|org.gnome.baobab)$ -windowrulev2 = opacity 0.9 0.8, class:^(file-roller|org.gnome.FileRoller)$ # archive manager -windowrulev2 = opacity 0.8 0.7, class:^(app.drey.Warp)$ # Warp file transfer -windowrulev2 = opacity 0.9 0.8, class:^(seahorse)$ # gnome-keyring gui -windowrulev2 = opacity 0.82 0.75, class:^(gnome-system-monitor|org.gnome.SystemMonitor|io.missioncenter.MissionCenter)$ -windowrulev2 = opacity 0.9 0.8, class:^(xdg-desktop-portal-gtk)$ # gnome-keyring gui -windowrulev2 = opacity 0.9 0.7, class:^([Ww]hatsapp-for-linux)$ -windowrulev2 = opacity 0.9 0.7, class:^([Ff]erdium)$ -windowrulev2 = opacity 0.95 0.75, title:^(Picture-in-Picture)$ # windowrule v2 - size windowrulev2 = size 70% 70%, class:^(gnome-system-monitor|org.gnome.SystemMonitor|io.missioncenter.MissionCenter)$ diff --git a/.config/hypr/UserConfigs/i3Keybinds.conf b/.config/hypr/UserConfigs/i3Keybinds.conf index 3f44e90..f314db6 100644 --- a/.config/hypr/UserConfigs/i3Keybinds.conf +++ b/.config/hypr/UserConfigs/i3Keybinds.conf @@ -95,3 +95,6 @@ bind = $mainMod SHIFT, N, exec, swaync-client -t -sw # swayNC notification panel bind = $mainMod SHIFT, A, movecurrentworkspacetomonitor, l bind = $mainMod SHIFT, D, movecurrentworkspacetomonitor, r + +bind = $mainMod, F, fullscreen, 0 +bind = $mainMod SHIFT, F, fullscreen, 1 diff --git a/.config/hypr/configs/Keybinds.conf b/.config/hypr/configs/Keybinds.conf index bcd5de5..08a4240 100644 --- a/.config/hypr/configs/Keybinds.conf +++ b/.config/hypr/configs/Keybinds.conf @@ -61,7 +61,7 @@ bind = $mainMod, M, exec, hyprctl dispatch splitratio 0.3 bind = $mainMod, G, togglegroup # toggle group bind = $mainMod CTRL, tab, changegroupactive # change focus to another window - # Cycle windows if floating bring to top +# Cycle windows if floating bring to top bind = ALT, tab, cyclenext bind = ALT, tab, bringactivetotop diff --git a/.config/waybar/ModulesCustom b/.config/waybar/ModulesCustom index 926d24b..24aedf9 100644 --- a/.config/waybar/ModulesCustom +++ b/.config/waybar/ModulesCustom @@ -200,5 +200,9 @@ "on-click": "pulseaudio-control --node-blacklist 'alsa_output.usb-Razer_Razer_Nari-00.pro-output-0' next-node", "on-click-middle": "exec pavucontrol &", "on-click-right": "pulseaudio-control togmute" + }, + "custom/colorpicker": { + "format": "󰸱 ", + "on-click": "~/.config/waybar/scripts/colorpicker.sh" } } diff --git a/.config/waybar/ModulesGroups b/.config/waybar/ModulesGroups index 664805f..b519822 100644 --- a/.config/waybar/ModulesGroups +++ b/.config/waybar/ModulesGroups @@ -16,7 +16,7 @@ "custom/menu", "custom/file_manager", "custom/tty", - "custom/settings", + "custom/colorpicker" ] }, "group/motherboard": { diff --git a/.config/waybar/style/[Retro] Custom.css b/.config/waybar/style/[Retro] Custom.css index 218ff3b..1285537 100644 --- a/.config/waybar/style/[Retro] Custom.css +++ b/.config/waybar/style/[Retro] Custom.css @@ -11,7 +11,7 @@ * { font-family: "JetBrainsMono Nerd Font"; font-weight: bold; - min-height: 0; + min-height: 0; /* set font-size to 100% if font scaling is set to 1.00 using nwg-look */ font-size: 100%; font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"'; diff --git a/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml b/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml index 07a83d4..298eea2 100644 --- a/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml +++ b/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml @@ -3,7 +3,7 @@ - + @@ -11,8 +11,8 @@ - - - + + +