custom-hypr - add config hypr

This commit is contained in:
huyjaky
2024-10-21 16:52:57 +07:00
parent 3d18770151
commit 0cf0beb8c7
28 changed files with 1420 additions and 400 deletions

View File

@@ -0,0 +1,2 @@
env = PRIMARY_MONITOR_WORKSPACE,3
env = SECONDARY_MONITOR_WORKSPACE,4

View File

@@ -0,0 +1,7 @@
# You can make apps auto-start here
# Relevant Hyprland wiki section: https://wiki.hyprland.org/Configuring/Keywords/#executing
#
exec-once = corectrl
exec-once = otd-daemon # run driver veikk
exec-once = fcitx5
exec = gsettings set org.gnome.desktop.interface icon-theme 'Tela-circle-blue'

View File

@@ -0,0 +1,6 @@
source = ~/.config/hypr/custom/general.conf
source = ~/.config/hypr/custom/execs.conf
source = ~/.config/hypr/custom/keybinding.conf
source = ~/.config/hypr/custom/windowrules.conf
source = ~/.config/hypr/custom/env.conf

View File

@@ -0,0 +1,90 @@
# Put general config stuff here
# Here's a list of every variable: https://wiki.hyprland.org/Configuring/Variables/
monitor = DP-1, highres, 0x0, 1
monitor = HDMI-A-1, highres, 1920x0, 1
workspace = 1, monitor:DP-1,
workspace = 3, monitor:DP-1,
workspace = 5, monitor:DP-1,
workspace = 7, monitor:DP-1,
workspace = 9, monitor:DP-1,
workspace = 2, monitor:HDMI-A-1,
workspace = 4, monitor:HDMI-A-1,
workspace = 6, monitor:HDMI-A-1,
workspace = 8, monitor:HDMI-A-1,
workspace = 10, monitor:HDMI-A-1,
decoration {
blur {
enabled = false
}
drop_shadow = false
}
input {
kb_layout = us
kb_variant = ,qwerty
# kb_options = grp:alt_shift_toggle
kb_options = grp:win_space_toggle
repeat_delay = 155
repeat_rate = 55
}
general {
# Gaps and border
gaps_in = 8
gaps_out = 8
border_size = 6
# Fallback colors
col.active_border = rgba(0DB7D4FF) rgba(7AA2F7FF) rgba(9778D0FF) rgb(24C6DC) rgb(93EDC7) 45deg
col.inactive_border = rgba(12131CFF)
# Functionality
# resize_on_border = true
layout = master
}
dwindle {
preserve_split = true # you probably want this
#no_gaps_when_only = true
smart_resizing = false
}
misc {
background_color = rgba(12131CFF)
vfr = true
}
plugin {
hyprbars {
# Honestly idk if it works like css, but well, why not
bar_text_font = VictorMono NF SemiBold Italic
bar_text_size = 18
bar_height = 30
bar_padding = 10
bar_button_padding = 15
bar_precedence_over_border = false
bar_part_of_window = false
bar_color = rgba(12131CFF)
col.text = rgba(E2E1EFFF)
# example buttons (R -> L)
# hyprbars-button = color, size, on-click
hyprbars-button = rgba(12131CFF), 25, 󰖭, hyprctl dispatch killactive
hyprbars-button = rgba(12131CFF), 25,  , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
}
}

View File

@@ -0,0 +1,78 @@
# You can put your preferred keybinds here
# https://wiki.hyprland.org/Configuring/Binds/
unbind = Super, W
unbind = Super, T
unbind = Alt, E
# disbale side
unbind = Super, B
unbind = Super, M
unbind = Super, N
unbind = Super, E
# monve workspace
unbind = Super, H
unbind = Super, J
unbind = Super, K
unbind = Super, L
# move windown
bind = Alt, H, fullscreenstate, 0 # [hidden]
bind = Alt, H, movefocus, l # [hidden]
bind = Alt, L, fullscreenstate, 0 # [hidden]
bind = Alt, L, movefocus, r # [hidden]
bind = Alt, K, fullscreenstate, 0 # [hidden]
bind = Alt, K, movefocus, u # [hidden]
bind = Alt, J, fullscreenstate, 0 # [hidden]
bind = Alt, J, movefocus, d # [hidden]
##! Window arrangement
#/# bind = Super+Shift, ←/↑/→/↓,, # Window: move in direction
bind = Ctrl+Alt, H, fullscreenstate, 0 # [hidden]
bind = Ctrl+Alt, H, movewindow, l # [hidden]
bind = Ctrl+Alt, L, fullscreenstate, 0 # [hidden]
bind = Ctrl+Alt, L, movewindow, r # [hidden]
bind = Ctrl+Alt, K, movewindow, u # [hidden]
bind = Ctrl+Alt, J, movewindow, d # [hidden]
# bind = Ctrl+Alt, M, exec, pavucontrol # Launch pavucontrol (volume mixer)
bind = Alt, Q, killactive,
bind = Alt, F, fullscreen, 0
bind = Alt, R, exec, killall ags ydotool; ags & # Restart widgets
bind = Alt, E, exec, nautilus --new-window # Launch Nautilus (file manager)
# bind = Alt, M, exec, ags run-js 'openMusicControls.value = (!mpris.getPlayer() ? false : !openMusicControls.value);' # Toggle music controls
# bind = Alt, N, exec, ags -t 'sideright' # Toggle right sidebar
bind = Alt, T, exec, kitty
bind = Alt, B, exec, brave
# bind = Alt, F, exec, rofi
bind = Alt, O, exec, obsidian --no-sandbox --ozone-platform=wayland --ozone-platform-hint=auto --enable-features=UseOzonePlatform,WaylandWindowDecorations %U
bind = Alt, V, exec, vesktop --no-sandbox --ozone-platform=wayland --ozone-platform-hint=auto --enable-features=UseOzonePlatform,WaylandWindowDecorations %U
# bind = Ctrl+Super+Shift, Right, movetoworkspace, +1 # [hidden]
# bind = Shift+Alt, L, focusmonitor, 1
# bind = Shift+Alt, H, focusmonitor, 0
bind = SUPER, SUPER_L, exec, pkill -x rofi || $scrPath/rofilaunch.sh d # launch application launcher
# bind = Ctrl+Alt, E, exec, pkill -x rofi || $scrPath/rofilaunch.sh f # launch file explorer
# bind = Shift+Alt, L, exec, source /home/duckq1u/.config/hypr/scripts/workspacePLUS.sh
# bind = Shift+Alt, H, exec, source /home/duckq1u/.config/hypr/scripts/workspaceEXCEPT.sh
bind = Shift+Alt, L, exec, source /home/duckq1u/.config/hypr/scripts/workspaceV2.sh
bind = Shift+Alt, H, exec, source /home/duckq1u/.config/hypr/scripts/workspaceV2except.sh
$mainMod = Super # super / meta / windows key
$scrPath = $HOME/.local/share/bin # set scripts path
bind = $mainMod+Shift, S, exec, $scrPath/screenshot.sh sf # partial screenshot capture (frozen screen)
bind = , Print, exec, $scrPath/screenshot.sh p # all monitors screenshot capture

View File

@@ -0,0 +1,4 @@
windowrulev2 = bordercolor rgb(FF0000) rgb(880808),fullscreen:1