3 Commits

8 changed files with 105 additions and 69 deletions

35
hypr/env.conf Normal file
View File

@@ -0,0 +1,35 @@
#############################
### ENVIRONMENT VARIABLES ###
#############################
# See https://wiki.hyprland.org/Configuring/Environment-variables/
# 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

@@ -6,16 +6,6 @@
# Refer to the wiki for more information.
# https://wiki.hyprland.org/Configuring/
# Please note not all available settings / options are set here.
# For a full list, see the wiki
################
### MONITORS ###
################
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor= ,preferred,auto,auto
#monitor = HDMI-A-1, 3440x1440@59.97, 0x0, 1
#################
### AUTOSTART ###
@@ -24,17 +14,10 @@ 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
#############################
### ENVIRONMENT VARIABLES ###
#############################
# See https://wiki.hyprland.org/Configuring/Environment-variables/
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
exec-once = waybar & swaync & elephant & hyprpaper
source = ~/.config/hypr/windows.conf
source = ~/.config/hypr/env.conf
###################
### PERMISSIONS ###
@@ -61,17 +44,17 @@ env = HYPRCURSOR_SIZE,24
# https://wiki.hyprland.org/Configuring/Variables/#general
general {
gaps_in = 5
gaps_out = 15
gaps_in = 2
gaps_out = 5
border_size = 2
border_size = 1
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
# Set to true enable resizing windows by clicking and dragging on borders and gaps
resize_on_border = false
resize_on_border = true
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
@@ -81,7 +64,7 @@ general {
# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
rounding = 4
rounding = 2
rounding_power = 2
# Change transparency of focused and unfocused windows
@@ -175,12 +158,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
}
}
@@ -196,28 +183,6 @@ device {
sensitivity = -0.5
}
##############################
### WINDOWS AND WORKSPACES ###
##############################
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
# Example windowrule
# windowrule = float,class:^(kitty)$,title:^(kitty)$
windowrulev2 = float,class:^(float)$
#windowrule = float,title:InstallWebApp
windowrulev2 = size 800 600,class:^(float)$,title:^(Install Web App)$
windowrulev2 = center,class:^(float)$,title:^(Install Web App)$
# Ignore maximize requests from apps. You'll probably like this.
windowrule = suppressevent maximize, class:.*
# Fix some dragging issues with XWayland
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
workspace = special:hidden, invisible
source = ~/.config/hypr/windows.conf
# Include the keybinds file.
source = ~/.config/hypr/keybinds.conf

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 ###
@@ -13,44 +13,46 @@ $mainMod = SUPER # Sets "Windows" key as main modifier
#
# Set programs that you use
$terminal = ghostty
$browser = zen-browser #chromium
$browser = zen-browser
$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
# Apps
bind = $mainMod, Space, exec, $menu # launcher (set above)
bind = $mainMod, Return, exec, $terminal
bind = $mainMod, A, exec, $launch ChatGPT
bind = $mainMod, A, exec, $pwa "https://chatgpt.com"
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, 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

View File

@@ -0,0 +1,9 @@
################
### MONITORS ###
################
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor= ,preferred,auto,auto
monitor = HDMI-A-1, 3440x1440@59.97, 0x0, 1

25
hypr/windows.conf Normal file
View File

@@ -0,0 +1,25 @@
##############################
### WINDOWS AND WORKSPACES ###
##############################
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
windowrule = float,class:^(float)$
#windowrule = float,title:InstallWebApp
windowrule = size 800 600,class:^(float)$,title:^(Install Web App)$
windowrule = center,class:^(float)$,title:^(Install Web App)$
# Ignore maximize requests from apps. You'll probably like this.
windowrule = suppressevent maximize, class:.*
# Just a dash of opacity by default.
windowrule = opacity 0.97 0.92, class:.*
# Fix some dragging issues with XWayland
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
#windowrule = float, class:.*pass.proton.me.*
workspace = special:hidden, invisible

View File

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

View File

@@ -92,7 +92,7 @@ export CARGO_HOME="$XDG_DATA_HOME/cargo"
export TMUX_SESSIONATOR_PATH="$HOME:$SCRIPTS:$LOCAL_REPOS:$REPOS:$ANSIBLE_LOCAL:$GHREPOS:$HVACIOTREPOS"
# Password-store
#export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/gopass/stores/root"
export PASSWORD_STORE_GENERATED_LENGTH=40
export PASSWORD_STORE_ENABLE_EXTENSIONS=true