add a bunch of configs

This commit is contained in:
2025-03-12 16:58:04 +02:00
parent 5e20063ae9
commit 5489228c10
212 changed files with 46262 additions and 47 deletions

View File

@@ -0,0 +1,32 @@
# Polkit
exec-once = systemctl --user start /nix/store/*-hyprpolkitagent-*/libexec/hyprpolkitagent
# Wallpaper
exec-once = swww-daemon &
exec-once = sleep 2 && bash ~/dotfiles/scripts/load-wallpaper.sh
# Notification Manager
exec-once = dunst &
# Clipboard Manager
exec-once = wl-paste --watch cliphist store
# XDG Desktop Portal
exec-once = bash ~/dotfiles/scripts/xdg.sh
# Set GTK Settings
exec-once = bash ~/dotfiles/scripts/gtk.sh
# Start Hot Reload
exec-once = bash ~/dotfiles/scripts/hot-reload.sh
# Start arRPC
exec-once = arrpc
exec-once = equibop
# Hyprland Splash
exec-once = sleep 5 && notify-send "Welcome to Hyprland!" "$(hyprctl splash)"
# exec-once = nix-shell -p mpvpaper --command "mpvpaper -o \"no-audio loop loop-playlist\" HDMI-A-2 \"/home/ocbwoy3/Documents/Boykisser Chipi Chipi Full Animation [3sP6ZvlqJeE].webm\""

View File

@@ -0,0 +1,100 @@
# Monitor ( https://wiki.hyprland.org/Configuring/Monitors )
monitor=,1920x1080@240,auto,1
monitor=Unknown-1,disabled
# General Configuration
general {
gaps_in = 5
gaps_out = 20
border_size = 2
col.active_border = rgb(89b4fa)
#rgba(088f72ee) rgba(2ccfabee) rgba(088f72ee) rgba(ffffffee) rgba(7bade2ee) rgba(5049ccee) rgba(3e1a78ee) 90deg
col.inactive_border = rgb(585b70)
resize_on_border = false
allow_tearing = true
layout = dwindle
}
# Window Decorations
decoration {
rounding = 10
# Change transparency of focused and unfocused windows
active_opacity = 1.0
inactive_opacity = 1
fullscreen_opacity = 1.0
# drop_shadow = true
# shadow_range = 4
# shadow_render_power = 3
# col.shadow = rgba(1a1a1aee)
blur {
enabled = true
size = 3
passes = 1
xray = false
vibrancy = 0.1696
}
}
# Animations
animations {
enabled = true
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
bezier = main, 0.445, 0.05, 0.55, 0.95
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default, slide
animation = specialWorkspace, 1, 6, myBezier, slide
}
# Dwindle layout
dwindle {
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # You probably want this
}
# Master layout
master {
new_status = master
}
# Misc Config
misc {
force_default_wallpaper = 2
disable_hyprland_logo = false
initial_workspace_tracking = 0
new_window_takes_over_fullscreen = 1
disable_splash_rendering = false
font_family = Monaspace Neon
}
# Layer Rules
layerrule = animation slide top, waybar
layerrule = animation fade, selection
layerrule = animation popin 70%, wofi
layerrule = animation slide right, notifications
layerrule = dimaround, wofi
# Window Rules
windowrule=float, blueman-manager
windowrule=size 900 500, blueman-manager
windowrule=center, blueman-manager
windowrule=float, pavucontrol
windowrule=size 900 500, pavucontrol
windowrule=center, pavucontrol
windowrule=float, nm-connection-editor
windowrule=size 900 500, nm-connection-editor
windowrule=center, nm-connection-editor
# windowrulev2 = immediate, class:^(sober)$
# windowrulev2 = fullscreen,title:^(Sober)$

View File

@@ -0,0 +1,10 @@
cursor {
no_hardware_cursors = false
zoom_rigid = true
}
$KBLANG = english
# Keyboard
source = ./input_configs/english.conf

View File

@@ -0,0 +1,17 @@
# Input Config ( https://wiki.hyprland.org/Configuring/Variables/#input )
input {
kb_layout = us
kb_variant =
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = false
}
}

View File

@@ -0,0 +1,23 @@
# Input Config ( https://wiki.hyprland.org/Configuring/Variables/#input )
# How to get Latvian Keyboard on Hyprland:
# uncomment "lv_lv.UTF-8 UTF-8" in /etc/locale.gen
# add first line "LANG=lv_LV.UTF-8" in /etc/locale.conf
# locale-gen
# setxkbmap lv
input {
kb_layout = lv
kb_variant = apostrophe
kb_model =
kb_options = compose:apostrophe
kb_rules = #grp:alt_shift_toggle
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = false
}
}

View File

@@ -0,0 +1,78 @@
# $mainMod was defined in variables.conf
# Default keybinds
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, C, killactive,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, T, exec, $menu
bind = $mainMod, Y, exec, $browser
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, F, fullscreen
# Window focus keybinds
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
# Window size controls
bind = $mainMod SHIFT, right, resizeactive, 100 0 # Increase window width with keyboard
bind = $mainMod SHIFT, left, resizeactive, -100 0 # Reduce window width with keyboard
bind = $mainMod SHIFT, down, resizeactive, 0 100 # Increase window height with keyboard
bind = $mainMod SHIFT, up, resizeactive, 0 -100 # Reduce window height with keyboard
# Window swapping controls
bind = $mainMod CTRL, left, swapwindow, l
bind = $mainMod CTRL, right, swapwindow, r
bind = $mainMod CTRL, up, swapwindow, u
bind = $mainMod CTRL, down, swapwindow, d
# Window movement and size
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Workspace mouse keybinds
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Workspace keybinds ($mainMod + [0-9])
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
# Workspace keybinds ($mainMod + SHIFT + [0-9])
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
# Function keys ( FN + F[1-12] )
bind = , XF86MonBrightnessUp, exec, brightnessctl -q s +10%
bind = , XF86MonBrightnessDown, exec, brightnessctl -q s 10%-
bind = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
bind = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bind = , XF86AudioPlay, exec, playerctl -p cider,OCbwoy3_s_iPhone play-pause
bind = , XF86AudioPause, exec, playerctl -p cider,OCbwoy3_s_iPhone pause
bind = , XF86AudioNext, exec, playerctl -p cider,OCbwoy3_s_iPhone next
bind = , XF86AudioPrev, exec, playerctl -p cider,OCbwoy3_s_iPhone previous
bind = , XF86AudioMicMute, exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle
bind = , XF86Calculator, exec, qalculate-gtk
bind = , XF86Lock, exec, hyprlock
bind = , XF86Tools, exec, flatpak run com.valvesoftware.Steam

View File

@@ -0,0 +1,56 @@
# Special workspace keybinds
bind = $mainMod, Z, togglespecialworkspace, quick
bind = $mainMod SHIFT, Z, movetoworkspace, special:quick
# Hot reload
bind = $mainMod SHIFT, B, exec, bash ~/dotfiles/scripts/hot-reload.sh
# Wallpaper
bind = $mainMod SHIFT, RETURN, exec, bash ~/dotfiles/scripts/select-wallpaper.sh
# Screenshot keybinds
bind = $mainMod, PRINT, exec, bash ~/dotfiles/scripts/screenshot-selection.sh
bind = $mainMod SHIFT, PRINT, exec, bash ~/dotfiles/scripts/screenshot-fullscreen.sh
# Music volume control
bind = $mainMod, XF86AudioRaiseVolume, exec, playerctl -p cider,OCbwoy3_s_iPhone volume 0.02+
bind = $mainMod, XF86AudioLowerVolume, exec, playerctl -p cider,OCbwoy3_s_iPhone volume 0.02-
# Screen locker and logout keybinds
bind = CTRL ALT, DELETE, exec, wlogout
bind = CTRL SUPER ALT, L, exec, hyprlock
# Group Stuff, complicated stuff. Enable if you dare!
# bind = SUPER, M, togglegroup
# bind = SUPER ALT, M, lockactivegroup, toggle
# bind = $mainMod ALT, right, changegroupactive, f
# bind = $mainMod ALT, down, changegroupactive, b
# bind = $mainMod ALT, up, moveoutofgroup
# bind = $mainMod CTRL ALT, left, moveintogroup, l
# bind = $mainMod CTRL ALT, right, moveintogroup, r
# bind = $mainMod CTRL ALT, up, moveintogroup, u
# bind = $mainMod CTRL ALT, down, moveintogroup, d
# zoom
bind = $mainMod ALT CTRL, mouse_down, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {factor = $2; if (factor < 1) {factor = 1}; print factor * 1.25}')"
bind = $mainMod ALT CTRL, mouse_up, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {factor = $2; if (factor < 1) {factor = 1}; print factor / 1.25}')"
bind = $mainMod SHIFT, P, exec, bash $HOME/dotfiles/scripts/toggle_mangohud.sh
bind = $mainMod SHIFT, M, exec, bash $HOME/dotfiles/private/r2_upload_screenshot.sh
bind = $mainMod SHIFT, L, exec, bash $HOME/dotfiles/private/skeet-screenshot.sh
bind = $mainMod, F1, exec, bash $HOME/dotfiles/scripts/roblox-fullscreen.sh
bind = $mainMod, F2, exec, bash -c "cd $HOME/Projects/tuxstrap && npm run dev"
bind = $mainMod ALT, F2, exec, bash -c "cd $HOME/Projects/tuxstrap && npm run dev-opengl"
bind = $mainMod, F3, exec, steam-run /opt/Cider/cider
bind = $mainMod, F4, exec, flatpak run com.valvesoftware.Steam
bind = $mainMod, F5, exec, notify-send -u critical "Hyprland" "Enabled debug overlay\n<small>Reset with <b>hyprctl reload</b>.</small>" && hyprctl keyword debug:overlay 1
# bind = $mainMod SHIFT, F3, exec, bash -c "NIXPKGS_ALLOW_UNFREE=1 nix-shell -p osu-lazer-bin --command osu\!"
bind = $mainMod SHIFT, F, fullscreen, 1
bind = $mainMod, SPACE, exec, bash $HOME/dotfiles/scripts/toggle_language.sh
# VM Passtrough
bind = $mainMod, Insert, submap, passthru
submap = passthru
bind = $mainMod, Escape, submap, reset
submap = reset

View File

@@ -0,0 +1,49 @@
# Keywords: https://wiki.hyprland.org/Configuring/Keywords
# Default
$mainMod = SUPER
# Programs
$terminal = ghostty
$fileManager = nautilus
$menu = wofi --show drun
$browser = brave
# Cursor
exec = hyprctl setcursor HyprCatppuccinMochaMauve 24
env = HYPRCURSOR_THEME,HyprCatppuccinMochaMauve
env = HYPRCURSOR_SIZE,24
env = XCURSOR_THEME,HyprCatppuccinMochaMauve
env = XCURSOR_SIZE,24
# Toolkit Env
env = GDK_BACKEND,wayland,x11,*
env = QT_QPA_PLATFORM,wayland;xcb
env = SDL_VIDEODRIVER,wayland
env = CLUTTER_BACKEND,wayland
# XDG Env
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
# Qt Env
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = QT_QPA_PLATFORMTHEME,qt5ct
# NVIDIA Env
env = LIBVA_DRIVER_NAME,nvidia
env = XDG_SESSION_TYPE,wayland
env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = NVD_BACKEND,direct

15
config/hypr/hyprland.conf Executable file
View File

@@ -0,0 +1,15 @@
# https://wiki.hyprland.org/Configuring/Configuring-Hyprland/
exec-once = hyprctl notify 1 5000 0 " Loading OCbwoy3's Dotfiles"
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY
source = ./config/variables.conf
source = ./config/display.conf
source = ./config/input.conf
source = ./config/keybindings/default.conf
source = ./config/keybindings/other.conf
source = ./config/autoexec.conf

30
config/hypr/hyprlock.conf Normal file
View File

@@ -0,0 +1,30 @@
general {
ignore_empty_input = true
immediate_render = true
no_fade_in = tue
no_fade_out = true
}
input-field {
monitor =
rounding = 0
size = 800, 100
outline_thickness = 4
dots_size = 1
dots_rounding = 0
dots_spacing = 0.2
dots_center = true
fade_on_empty = false
placeholder_text = [ LOGIN ]
hide_input = false
fail_text = [ FAILED ]
position = 0, 0
dots_fade_time = 0
dots_text_format = 0
halign = center
valign = center
font_family = Monaspace Neon
outer_color = rgba(0, 0, 0, 0)
inner_color = rgba(0, 0, 0, 0)
font_color = rgb(255, 0, 0)
}

View File

@@ -0,0 +1,2 @@
preload = ~/.config/hypr/wallpaper.png
wallpaper = ,~/.config/hypr/wallpaper.png

BIN
config/hypr/wallpaper.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB