feat: Working on more hyprland configuration

This commit is contained in:
2025-09-23 08:21:23 -04:00
parent 920d87f8e0
commit 28c71ee752
5 changed files with 56 additions and 23 deletions

29
hypr/env.conf Normal file
View File

@@ -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
}

View File

@@ -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
}
}

View File

@@ -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

View File

@@ -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