From 28c71ee752fe83dbc863d53c54ac79c7719779d8 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Tue, 23 Sep 2025 08:21:23 -0400 Subject: [PATCH] feat: Working on more hyprland configuration --- hypr/env.conf | 29 +++++++++++++++++++++++++++++ hypr/hyprland.conf | 12 +++++++----- hypr/hyprpaper.conf | 2 +- hypr/keybinds.conf | 34 ++++++++++++++++++---------------- tmux/tmux.conf | 2 +- 5 files changed, 56 insertions(+), 23 deletions(-) create mode 100644 hypr/env.conf diff --git a/hypr/env.conf b/hypr/env.conf new file mode 100644 index 0000000..92d1544 --- /dev/null +++ b/hypr/env.conf @@ -0,0 +1,29 @@ +# Cursor size +env = XCURSOR_SIZE,24 +env = HYPRCURSOR_SIZE,24 + +# Force all apps to use Wayland +env = GDK_BACKEND,wayland,x11,* +env = QT_QPA_PLATFORM,wayland;xcb +env = QT_STYLE_OVERRIDE,kvantum +env = SDL_VIDEODRIVER,wayland +env = MOZ_ENABLE_WAYLAND,1 +env = ELECTRON_OZONE_PLATFORM_HINT,wayland +env = OZONE_PLATFORM,wayland +env = XDG_SESSION_TYPE,wayland + +# Allow better support for screen sharing (Google Meet, Discord, etc) +env = XDG_CURRENT_DESKTOP,Hyprland +env = XDG_SESSION_DESKTOP,Hyprland + +xwayland { + force_zero_scaling = true +} + +# Use XCompose file +env = XCOMPOSEFILE,~/.XCompose + +# Don't show update on first launch +ecosystem { + no_update_news = true +} diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index d3f0877..352a582 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -15,7 +15,7 @@ # See https://wiki.hyprland.org/Configuring/Monitors/ monitor= ,preferred,auto,auto -#monitor = HDMI-A-1, 3440x1440@59.97, 0x0, 1 +monitor = HDMI-A-1, 3440x1440@59.97, 0x0, 1 ################# ### AUTOSTART ### @@ -24,7 +24,7 @@ monitor= ,preferred,auto,auto # Autostart necessary processes (like notifications daemons, status bars, etc.) # Or execute your favorite apps at launch like this: -exec-once = waybar & swaync & elephant +exec-once = waybar & swaync & elephant & hyprpaper ############################# ### ENVIRONMENT VARIABLES ### @@ -32,9 +32,7 @@ exec-once = waybar & swaync & elephant # See https://wiki.hyprland.org/Configuring/Environment-variables/ -env = XCURSOR_SIZE,24 -env = HYPRCURSOR_SIZE,24 - +source = ~/.config/hypr/env.conf ################### ### PERMISSIONS ### @@ -175,12 +173,16 @@ input { kb_options = ctrl:nocaps kb_rules = + repeat_rate = 35 + repeat_delay = 200 + follow_mouse = 2 sensitivity = 0 # -1.0 - 1.0, 0 means no modification. touchpad { natural_scroll = true + tap-to-click = false } } diff --git a/hypr/hyprpaper.conf b/hypr/hyprpaper.conf index 70615a3..49cb579 100644 --- a/hypr/hyprpaper.conf +++ b/hypr/hyprpaper.conf @@ -1,3 +1,3 @@ preload = /home/michael/.config/hypr/wallpaper.png -wallpaper = eDP-1,/home/michael/.config/hypr/wallpaper.png +wallpaper = ,/home/michael/.config/hypr/wallpaper.png splash = true diff --git a/hypr/keybinds.conf b/hypr/keybinds.conf index 4c39ba4..7ad3dfd 100644 --- a/hypr/keybinds.conf +++ b/hypr/keybinds.conf @@ -3,7 +3,7 @@ ############################## # See https://wiki.hyprland.org/Configuring/Keywords/ -$mainMod = SUPER # Sets "Windows" key as main modifier +$mainMod = SUPER # Sets "Command/Windows" key as main modifier ################### ### MY PROGRAMS ### @@ -17,17 +17,18 @@ $browser = zen-browser #chromium $fileManager = $terminal -e yazi $fileBrowser = nautilus $menu = walker -$pwa = chromium --profile-directory=Default +#$pwa = chromium --profile-directory=Default --enable-features=UseOzonePlatform --ozone-platform=wayland +$pwa = ~/.local/bin/launch-webapp $launch = gtk-launch $btop = $terminal -e btop $config = $terminal -e ~/.local/share/scripts/tmux-sessionator ~/.config -$email = $pwa --app-id=jnpecgipniidlgicjocehkhajgdnjekh # proton mail -$excalidraw = $pwa --app-id=fehpfgkaiahomgjlkjleaolhifmngapb -$gitea = $pwa --app-id=jenmjaeafdjpclbgpkemokbhfeplfdbg +$email = $pwa "https://mail.proton.me" # proton mail +$excalidraw = $pwa "https://draw.housh.dev" +$gitea = $pwa "https://git.housh.dev" $neovim = $terminal -e nvim -$protonPass = $pwa --app-id=hkhckfoofhljcngmlnlojcbplgkcpcab -$youtube = $pwa --app-id=agimnkijcaahngcdmfeangaknmldooml +$protonPass = $pwa "https://pass.proton.me" +$youtube = $pwa "https://youtube.com" # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more @@ -36,21 +37,22 @@ bind = $mainMod, Space, exec, $menu # launcher (set above) bind = $mainMod, Return, exec, $terminal bind = $mainMod, A, exec, $launch ChatGPT bind = $mainMod, B, exec, $browser -bind = $mainMod Shift, B, exec, $browser --private-window +bind = $mainMod SHIFT, B, exec, $browser --private-window bind = $mainMod, C, exec, $config bind = $mainMod, D, exec, $excalidraw -bind = $mainMod Shift, D, exec, ~/.local/bin/toggle-desktop +bind = $mainMod SHIFT, D, exec, ~/.local/bin/toggle-desktop bind = $mainMod, E, exec, $email bind = $mainMod, F, exec, $fileManager bind = $mainMod, K, exec, $launch Komodo -bind = $mainMod Shift, F, exec, $fileBrowser -bind = $mainMod Shift, G, exec, $gitea +bind = $mainMod SHIFT, F, exec, $fileBrowser +bind = $mainMod SHIFT, G, exec, $gitea bind = $mainMod, N, exec, $neovim bind = $mainMod, P, exec, $protonPass bind = $mainMod, Y, exec, $youtube bind = $mainMod, W, killactive, -bind = $mainMod Shift, L, exec, hyprlock +# TODO: change modifier key. +#bind = $mainMod SHIFT, L, exec, hyprlock # TODO: change modifier key. bind = $mainMod, M, exec, ~/.local/bin/toggle-waybar bind = $mainMod, V, togglefloating @@ -58,11 +60,10 @@ bind = $mainMod, V, togglefloating #bind = $mainMod, J, togglesplit, # dwindle # # Screenshots -bind = $mainMod Shift Alt, 3, exec, hyprshot -m window -o ~/Pictures -bind = $mainMod Shift Alt, 4, exec, hyprshot -m region -o ~/Pictures +bind = $mainMod SHIFT ALT, 3, exec, hyprshot -m window -o ~/Pictures +bind = $mainMod SHIFT ALT, 4, exec, hyprshot -m region -o ~/Pictures -bind = Ctrl, M, fullscreen -bind = Ctrl, F, exec, hyprctl dispatch togglefloating \ +bind = CTRL, F, exec, hyprctl dispatch togglefloating \ && hyprctl dispatch centerwindow # Move focus with mainMod + arrow keys @@ -111,6 +112,7 @@ bind = $mainMod, mouse_up, workspace, e-1 # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow +bindm = $mainMod SHIFT, mouse_down, resizewindow # Laptop multimedia keys for volume and LCD brightness diff --git a/tmux/tmux.conf b/tmux/tmux.conf index efd044f..4a97a93 100755 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -74,7 +74,7 @@ bind -n M-l next-window bind C-l send-keys 'C-l' bind f run-shell "tmux display-popup -E -w 80% -h 80% $SCRIPTS/tmux-sessionator" -bind-key -r C run-shell -b "~/.local/scripts/tmux-sessionator ~/.dotfiles" +bind-key -r C run-shell -b "~/.local/share/scripts/tmux-sessionator ~/.dotfiles" unbind s bind s run-shell -b "~/.config/tmux/plugins/tmux-fzf/scripts/session.sh switch"