Split Hyprland config into multiple files + add Mailspring.
This commit is contained in:
parent
6e3c78041a
commit
b211b4fb28
16 changed files with 164 additions and 154 deletions
|
@ -1,151 +1,4 @@
|
|||
# Jaaj Hyprland config
|
||||
|
||||
# Source colors variables
|
||||
source = ~/.config/hypr/colors.conf
|
||||
|
||||
|
||||
# Monitors config in separate file to allow multiple configs
|
||||
source = ~/.config/hypr/monitors.conf
|
||||
|
||||
|
||||
# Keybindings
|
||||
source = ~/.config/hypr/keybindings.conf
|
||||
|
||||
|
||||
# Window rules
|
||||
source = ~/.config/hypr/windowrules.conf
|
||||
|
||||
|
||||
# Exec once
|
||||
exec-once = waybar
|
||||
exec-once = artix-pipewire-launcher restart
|
||||
exec-once = nm-applet
|
||||
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
exec-once = $HOME/.scripts/swayidle.sh
|
||||
exec-once = swayosd-server
|
||||
exec-once = udiskie
|
||||
|
||||
|
||||
# XWayland
|
||||
exec-once = xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2
|
||||
|
||||
# Clipboard
|
||||
exec-once = wl-paste -w wl-copy -p
|
||||
exec-once = cliphist wipe && wl-paste --watch cliphist store
|
||||
|
||||
# Discord
|
||||
exec-once = discord --start-minimized --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||
# exec-once = xwaylandvideobridge
|
||||
|
||||
# Element
|
||||
exec-once = element-desktop --hidden
|
||||
|
||||
# Syncthing
|
||||
exec-once = syncthing --no-browser --gui-address=http://127.0.0.1:8384
|
||||
|
||||
# Theming
|
||||
exec-once = echo 1 > "$HOME/.cache/weeb-mode"
|
||||
exec-once = $HOME/.scripts/set-wallpaper.sh -r
|
||||
|
||||
# Prevent hidden Wine System Tray window from keeping workspace existing
|
||||
exec-once = $HOME/.scripts/kill-wine-explorer.sh
|
||||
|
||||
|
||||
|
||||
# Environement variables
|
||||
env = XDG_CURRENT_DESKTOP,Hyprland
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
env = XDG_SESSION_DESKTOP,Hyprland
|
||||
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
||||
env = QT_QPA_PLATFORM,wayland;xcb
|
||||
env = SDL_VIDEODRIVER,wayland
|
||||
env = _JAVA_AWT_WM_NONEREPARENTING,1
|
||||
env = CLUTTER_BACKEND,wayland
|
||||
env = GRIM_DEFAULT_DIR,$HOME/Images/grim-screenshots
|
||||
env = DXVK_LOG_LEVEL,none
|
||||
env = MOZ_ENABLE_WAYLAND,1
|
||||
env = GDK_BACKEND,wayland
|
||||
env = GDK_SCALE,1
|
||||
env = XCURSOR_SIZE,24
|
||||
|
||||
|
||||
|
||||
# Variables
|
||||
general {
|
||||
border_size = $border_size
|
||||
gaps_in = $gaps_in
|
||||
gaps_out = $gaps_out
|
||||
col.active_border = $accent1 $accent2 45deg
|
||||
col.inactive_border = $background1 $background2 45deg
|
||||
}
|
||||
|
||||
input {
|
||||
kb_layout = fr
|
||||
kb_variant = latin9
|
||||
numlock_by_default = true
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
follow_mouse = 2
|
||||
float_switch_override_focus = 0
|
||||
touchpad {
|
||||
disable_while_typing = false
|
||||
natural_scroll = yes
|
||||
}
|
||||
}
|
||||
|
||||
device:asus-rog-sica {
|
||||
sensitivity = -0.55
|
||||
}
|
||||
|
||||
device:logitech-g203-lightsync-gaming-mouse {
|
||||
sensitivity = -0.55
|
||||
}
|
||||
|
||||
|
||||
decoration {
|
||||
rounding = $border_radius
|
||||
active_opacity = 0.85
|
||||
inactive_opacity = 0.65
|
||||
blur {
|
||||
enabled = true
|
||||
size = 2
|
||||
passes = 1
|
||||
ignore_opacity = true
|
||||
new_optimizations = on
|
||||
xray = true
|
||||
}
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = yes
|
||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
animation = windows, 1, 7, myBezier
|
||||
animation = windowsOut, 1, 7, default, popin 80%
|
||||
animation = border, 1, 10, default
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 6, default
|
||||
}
|
||||
|
||||
gestures {
|
||||
workspace_swipe = on
|
||||
}
|
||||
|
||||
dwindle {
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = yes # you probably want this
|
||||
}
|
||||
|
||||
master {
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
new_is_master = true
|
||||
}
|
||||
|
||||
misc {
|
||||
vfr = true
|
||||
vrr = 2
|
||||
disable_autoreload = true
|
||||
mouse_move_enables_dpms = true
|
||||
key_press_enables_dpms = true
|
||||
force_default_wallpaper = 0
|
||||
}
|
||||
# Source config files
|
||||
source = hyprland.d/*.conf
|
||||
|
|
10
.config/hypr/hyprland.d/animations.conf
Normal file
10
.config/hypr/hyprland.d/animations.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
animations {
|
||||
enabled = yes
|
||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
animation = windows, 1, 7, myBezier
|
||||
animation = windowsOut, 1, 7, default, popin 80%
|
||||
animation = border, 1, 10, default
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 6, default
|
||||
}
|
17
.config/hypr/hyprland.d/colors.conf
Normal file
17
.config/hypr/hyprland.d/colors.conf
Normal file
|
@ -0,0 +1,17 @@
|
|||
$foreground=rgb(e8e0e5)
|
||||
$disabled=rgb(9c1797)
|
||||
$accent1=rgb(f099ed)
|
||||
$accent2=rgb(abb5f3)
|
||||
$disabled2=rgb(16289c)
|
||||
$bad=rgb(AA2222)
|
||||
$selected=rgb(9c1797)
|
||||
$urgent=rgb(9289ee)
|
||||
$background2=rgb(0d1759)
|
||||
$background1=rgb(590d56)
|
||||
$good=rgb(00BB66)
|
||||
$hovered=rgb(6f106c)
|
||||
$border_radius=4
|
||||
$gaps_in=8
|
||||
$border_size=2
|
||||
$font='JetBrainsMono NF'
|
||||
$gaps_out=15
|
14
.config/hypr/hyprland.d/decoration.conf
Normal file
14
.config/hypr/hyprland.d/decoration.conf
Normal file
|
@ -0,0 +1,14 @@
|
|||
decoration {
|
||||
rounding = $border_radius
|
||||
active_opacity = 0.85
|
||||
inactive_opacity = 0.65
|
||||
|
||||
blur {
|
||||
enabled = true
|
||||
size = 2
|
||||
passes = 1
|
||||
ignore_opacity = true
|
||||
new_optimizations = on
|
||||
xray = true
|
||||
}
|
||||
}
|
8
.config/hypr/hyprland.d/device.conf
Normal file
8
.config/hypr/hyprland.d/device.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Change the sensibility per device to keep the default one on touchpad
|
||||
device:asus-rog-sica {
|
||||
sensitivity = -0.55
|
||||
}
|
||||
|
||||
device:logitech-g203-lightsync-gaming-mouse {
|
||||
sensitivity = -0.55
|
||||
}
|
14
.config/hypr/hyprland.d/env.conf
Normal file
14
.config/hypr/hyprland.d/env.conf
Normal file
|
@ -0,0 +1,14 @@
|
|||
env = XDG_CURRENT_DESKTOP,Hyprland
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
env = XDG_SESSION_DESKTOP,Hyprland
|
||||
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
||||
env = QT_QPA_PLATFORM,wayland;xcb
|
||||
env = SDL_VIDEODRIVER,wayland
|
||||
env = _JAVA_AWT_WM_NONEREPARENTING,1
|
||||
env = CLUTTER_BACKEND,wayland
|
||||
env = GRIM_DEFAULT_DIR,$HOME/Images/grim-screenshots
|
||||
env = DXVK_LOG_LEVEL,none
|
||||
env = MOZ_ENABLE_WAYLAND,1
|
||||
env = GDK_BACKEND,wayland
|
||||
env = GDK_SCALE,1
|
||||
env = XCURSOR_SIZE,24
|
50
.config/hypr/hyprland.d/exec.conf
Normal file
50
.config/hypr/hyprland.d/exec.conf
Normal file
|
@ -0,0 +1,50 @@
|
|||
# Clipboard
|
||||
exec-once = wl-paste -w wl-copy -p
|
||||
exec-once = cliphist wipe && wl-paste --watch cliphist store
|
||||
|
||||
# Discord
|
||||
exec-once = discord --start-minimized --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||
# exec-once = xwaylandvideobridge
|
||||
|
||||
# Element
|
||||
exec-once = element-desktop --hidden
|
||||
|
||||
# Gnome keyring (for Mailspring)
|
||||
exec-once = gnome-keyring
|
||||
|
||||
# Mailspring
|
||||
exec-once = mailspring --background --password-store="gnome-libsecret"
|
||||
|
||||
# NetworkManager applet
|
||||
exec-once = nm-applet
|
||||
|
||||
# Pipewire
|
||||
exec-once = artix-pipewire-launcher restart
|
||||
|
||||
# Polkit
|
||||
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
|
||||
# Swayidle
|
||||
exec-once = $HOME/.scripts/swayidle.sh
|
||||
|
||||
# Swayosd
|
||||
exec-once = swayosd-server
|
||||
|
||||
# Syncthing
|
||||
exec-once = syncthing --no-browser --gui-address=http://127.0.0.1:8384
|
||||
|
||||
# Theming
|
||||
exec-once = echo 1 > "$HOME/.cache/weeb-mode"
|
||||
exec-once = $HOME/.scripts/set-wallpaper.sh -r
|
||||
|
||||
# Udiskie
|
||||
exec-once = udiskie
|
||||
|
||||
# Waybar
|
||||
exec-once = waybar
|
||||
|
||||
# XWayland
|
||||
exec-once = xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2
|
||||
|
||||
# Prevent hidden Wine System Tray window from keeping workspace existing
|
||||
exec-once = $HOME/.scripts/kill-wine-explorer.sh
|
7
.config/hypr/hyprland.d/general.conf
Normal file
7
.config/hypr/hyprland.d/general.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
general {
|
||||
border_size = $border_size
|
||||
gaps_in = $gaps_in
|
||||
gaps_out = $gaps_out
|
||||
col.active_border = $accent1 $accent2 45deg
|
||||
col.inactive_border = $background1 $background2 45deg
|
||||
}
|
3
.config/hypr/hyprland.d/gestures.conf
Normal file
3
.config/hypr/hyprland.d/gestures.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
gestures {
|
||||
workspace_swipe = on
|
||||
}
|
17
.config/hypr/hyprland.d/input.conf
Normal file
17
.config/hypr/hyprland.d/input.conf
Normal file
|
@ -0,0 +1,17 @@
|
|||
input {
|
||||
# Keyboard
|
||||
kb_layout = fr
|
||||
kb_variant = latin9
|
||||
numlock_by_default = true
|
||||
|
||||
# Mouse
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
follow_mouse = 2
|
||||
float_switch_override_focus = 0
|
||||
|
||||
# Touchpad
|
||||
touchpad {
|
||||
disable_while_typing = false
|
||||
natural_scroll = yes
|
||||
}
|
||||
}
|
10
.config/hypr/hyprland.d/layout.conf
Normal file
10
.config/hypr/hyprland.d/layout.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
dwindle {
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = yes # you probably want this
|
||||
}
|
||||
|
||||
master {
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
new_is_master = true
|
||||
}
|
8
.config/hypr/hyprland.d/misc.conf
Normal file
8
.config/hypr/hyprland.d/misc.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
misc {
|
||||
vfr = true
|
||||
vrr = 2
|
||||
disable_autoreload = true
|
||||
mouse_move_enables_dpms = true
|
||||
key_press_enables_dpms = true
|
||||
force_default_wallpaper = 0
|
||||
}
|
|
@ -1,10 +1,9 @@
|
|||
# Opaque windows
|
||||
windowrule = opaque,^(firefox|libreoffice-writer|virt-manager)$
|
||||
windowrule = opaque,^(firefox|libreoffice-writer|virt-manager|jetbrains-idea-ce)$
|
||||
|
||||
# Idle Inhibit
|
||||
windowrule = idleinhibit focus, class:^(vlc|zoom)$
|
||||
|
||||
|
||||
# Winecfg
|
||||
windowrule = float,^(winecfg.exe)$
|
||||
windowrulev2 = size 410 462,class:^(winecfg.exe)$,xwayland:1
|
|
@ -152,7 +152,7 @@ declare -A params=(
|
|||
|
||||
# Clear colors/params files
|
||||
echo -n '' > "$HOME/.config/gtk-3.0/colors-gtk.css"
|
||||
echo -n '' > "$HOME/.config/hypr/colors.conf"
|
||||
echo -n '' > "$HOME/.config/hypr/hyprland.d/colors.conf"
|
||||
echo "wallpaper=\"$wallpaper\"" > "$HOME/.cache/colors.sh"
|
||||
|
||||
|
||||
|
@ -162,7 +162,7 @@ echo "Writing theme colors in files."
|
|||
for key in "${!colors[@]}"; do
|
||||
value="${colors[$key]}"
|
||||
# Hyprland
|
||||
echo '$'"$key=rgb(${value:1})" >> "$HOME/.config/hypr/colors.conf"
|
||||
echo '$'"$key=rgb(${value:1})" >> "$HOME/.config/hypr/hyprland.d/colors.conf"
|
||||
# GTK
|
||||
echo "@define-color $key $value;" >> "$HOME/.config/gtk-3.0/colors-gtk.css"
|
||||
# Shell
|
||||
|
@ -176,7 +176,7 @@ echo "Writing parameters to Hyprland & i3 files."
|
|||
for key in "${!params[@]}"; do
|
||||
value="${params[$key]}"
|
||||
# Hyprland
|
||||
echo '$'"$key=$value" >> "$HOME/.config/hypr/colors.conf"
|
||||
echo '$'"$key=$value" >> "$HOME/.config/hypr/hyprland.d/colors.conf"
|
||||
# i3
|
||||
sed -i "s/^set \$$key.*/set \$$key $value/" "$HOME/.config/i3/config"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue