mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-16 15:36:11 +01:00
hyprland welcome
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
dunst &
|
||||
timewall set --daemon &
|
||||
swww-daemon &
|
||||
fcitx5 -d &
|
||||
kanata -c ~/.config/kanata/config.kbd &
|
||||
|
||||
waybar &
|
||||
$HOME/.config/hypr/session.sh &
|
||||
|
||||
/usr/lib/polkit-kde-authentication-agent-1 &
|
||||
gnome-keyring-daemon --start --components=secrets,pkcs11,ssh &
|
||||
|
||||
# for L in 64 ''; do
|
||||
# A=/usr/lib$L/seahorse/seahorse-ssh-askpass
|
||||
# [[ -x $A ]] && export SSH_ASKPASS=$A && break
|
||||
# done
|
||||
|
||||
35
.config/hypr/hypridle.conf
Normal file
35
.config/hypr/hypridle.conf
Normal file
@@ -0,0 +1,35 @@
|
||||
general {
|
||||
lock_cmd = $HOME/.config/hypr/lock.sh # avoid starting multiple hyprlock instances.
|
||||
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
||||
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
||||
ignore_dbus_inhibit = false
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 300 # 5min
|
||||
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
||||
on-resume = brightnessctl -r # monitor backlight restore.
|
||||
}
|
||||
|
||||
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
|
||||
# listener {
|
||||
# timeout = 150 # 2.5min
|
||||
# on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
|
||||
# on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
|
||||
# }
|
||||
|
||||
listener {
|
||||
timeout = 600 # 10min
|
||||
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 900 # 15min
|
||||
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
||||
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
||||
}
|
||||
|
||||
# listener {
|
||||
# timeout = 3600 # 1hr
|
||||
# on-timeout = systemctl suspend # suspend pc
|
||||
# }
|
||||
@@ -30,9 +30,10 @@ monitor=DP-2, highrr, 1920x0, 1
|
||||
$terminal = kitty
|
||||
$fileManager = nemo
|
||||
$menu = rofi -show drun
|
||||
$lock = swaylock --screenshots --effect-pixelate 20 --effect-vignette 0.5:0.5 --fade-in 0.2
|
||||
$lock = $HOME/.config/hypr/lock.sh
|
||||
$editor = zed
|
||||
$browser = firefox
|
||||
$picker = hyprpicker -a -f hex
|
||||
|
||||
#################
|
||||
### AUTOSTART ###
|
||||
@@ -41,6 +42,7 @@ $browser = firefox
|
||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||
|
||||
exec-once = hyprpm reload -n
|
||||
exec-once = hypridle
|
||||
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
exec-once=zsh $HOME/.config/hypr/autostart.sh
|
||||
|
||||
@@ -53,8 +55,13 @@ exec-once=zsh $HOME/.config/hypr/autostart.sh
|
||||
env = XCURSOR_SIZE,24
|
||||
env = HYPRCURSOR_SIZE,24
|
||||
|
||||
# Theming
|
||||
env = CLUTTER_BACKEND,wayland
|
||||
env = GDK_BACKEND,wayland,x11
|
||||
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
||||
env = QT_QPA_PLATFORMTHEME,qt5ct
|
||||
env = QT_QPA_PLATFORMTHEME,qt6ct
|
||||
env = QT_SCALE_FACTOR,1
|
||||
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
||||
|
||||
# Nvidia
|
||||
env = LIBVA_DRIVER_NAME,nvidia
|
||||
@@ -62,6 +69,8 @@ env = XDG_SESSION_TYPE,wayland
|
||||
env = GBM_BACKEND,nvidia-drm
|
||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||
env = WLR_NO_HARDWARE_CURSORS,1
|
||||
env = __NV_PRIME_RENDER_OFFLOAD,1
|
||||
env = __VK_LAYER_NV_optimus,NVIDIA_only
|
||||
|
||||
# Wayland enforce
|
||||
env = QT_QPA_PLATFORM,wayland
|
||||
@@ -73,6 +82,14 @@ env = XDG_SESSION_DESKTOP,Hyprland
|
||||
env = _JAVA_AWT_WM_NOREPARENTING,1
|
||||
env = _JAVA_OPTIONS,-Dawt.useSystemAAFontSettings=on
|
||||
|
||||
# Firefox
|
||||
env = MOZ_ENABLE_WAYLAND,1
|
||||
env = MOZ_DISABLE_RDD_SANDBOX,1
|
||||
env = EGL_PLATFORM,wayland
|
||||
|
||||
# Electron
|
||||
env = ELECTRON_OZONE_PLATFORM_HINT,auto
|
||||
|
||||
# Input
|
||||
env = QT_IM_MODULE, fcitx
|
||||
env = XMODIFIERS=@im=fcitx
|
||||
@@ -232,6 +249,7 @@ bind = $mainMod SHIFT, L, exec, $lock
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, R, exec, $menu
|
||||
bind = $mainMod, SPACE, exec, $menu
|
||||
bind = $mainMod SHIFT, C, exec, $picker
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, J, togglesplit, # dwindle
|
||||
|
||||
|
||||
146
.config/hypr/hyprlock.conf
Normal file
146
.config/hypr/hyprlock.conf
Normal file
@@ -0,0 +1,146 @@
|
||||
general {
|
||||
grace = 1
|
||||
}
|
||||
|
||||
background {
|
||||
monitor =
|
||||
color = rgba(40, 40, 40, 1)
|
||||
}
|
||||
|
||||
background {
|
||||
monitor = HDMI-A-1
|
||||
path = /tmp/screenshot-0.png
|
||||
color = rgba(40, 40, 40, 1)
|
||||
|
||||
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
|
||||
blur_passes = 3 # 0 disables blurring
|
||||
blur_size = 4
|
||||
noise = 0.0117
|
||||
contrast = 0.8916
|
||||
brightness = 0.8172
|
||||
vibrancy = 0.1696
|
||||
vibrancy_darkness = 0.0
|
||||
}
|
||||
|
||||
background {
|
||||
monitor = DP-1
|
||||
path = /tmp/screenshot-1.png
|
||||
color = rgba(40, 40, 40, 1)
|
||||
|
||||
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
|
||||
blur_passes = 3 # 0 disables blurring
|
||||
blur_size = 4
|
||||
noise = 0.0117
|
||||
contrast = 0.8916
|
||||
brightness = 0.8172
|
||||
vibrancy = 0.1696
|
||||
vibrancy_darkness = 0.0
|
||||
}
|
||||
|
||||
background {
|
||||
monitor = DP-2
|
||||
path = /tmp/screenshot-2.png
|
||||
color = rgba(40, 40, 40, 1)
|
||||
|
||||
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
|
||||
blur_passes = 3 # 0 disables blurring
|
||||
blur_size = 4
|
||||
noise = 0.0117
|
||||
contrast = 0.8916
|
||||
brightness = 0.8172
|
||||
vibrancy = 0.1696
|
||||
vibrancy_darkness = 0.0
|
||||
}
|
||||
|
||||
input-field {
|
||||
monitor =
|
||||
size = 250, 50
|
||||
outline_thickness = 3
|
||||
dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8
|
||||
dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0
|
||||
dots_center = true
|
||||
outer_color = rgba(60, 56, 54, 1)
|
||||
inner_color = rgba(40, 40, 40, 1)
|
||||
font_color = rgba(251, 241, 199, 1)
|
||||
fade_on_empty = true
|
||||
placeholder_text = <i>Password...</i> # Text rendered in the input box when it's empty.
|
||||
hide_input = false
|
||||
|
||||
position = 0, 200
|
||||
halign = center
|
||||
valign = bottom
|
||||
}
|
||||
|
||||
# Date
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:18000000] echo "<b> "$(date +'%A, %-d %B %Y')" </b>"
|
||||
color = rgba(251, 241, 199, 1)
|
||||
font_size = 34
|
||||
font_family = JetBrains Mono Nerd Font Mono ExtraBold
|
||||
position = 0, -100
|
||||
halign = center
|
||||
valign = top
|
||||
}
|
||||
|
||||
# Hour-Time
|
||||
label {
|
||||
monitor =
|
||||
# text = cmd[update:1000] echo -e "$(date +"%H")"
|
||||
text = cmd[update:1000] echo -e "$(date +"%I")" #AM/PM
|
||||
color = rgba(215, 153, 33, 1)
|
||||
font_size = 200
|
||||
font_family = JetBrains Mono Nerd Font Mono ExtraBold
|
||||
position = 0, -200
|
||||
halign = center
|
||||
valign = top
|
||||
}
|
||||
|
||||
# Minute-Time
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:1000] echo -e "$(date +"%M")"
|
||||
color = rgba(251, 241, 199, 1)
|
||||
font_size = 200
|
||||
font_family = JetBrains Mono Nerd Font Mono ExtraBold
|
||||
position = 0, -500
|
||||
halign = center
|
||||
valign = top
|
||||
}
|
||||
|
||||
# Seconds-Time
|
||||
# label {
|
||||
# monitor =
|
||||
# text = cmd[update:1000] echo -e "$(date +"%S")"
|
||||
# text = cmd[update:1000] echo -e "$(date +"%S %p")" #AM/PM
|
||||
# color = $color12
|
||||
# font_size = 40
|
||||
# font_family = JetBrains Mono Nerd Font Mono ExtraBold
|
||||
# position = 0, -500
|
||||
# halign = center
|
||||
# valign = top
|
||||
# }
|
||||
|
||||
# User
|
||||
label {
|
||||
monitor =
|
||||
text = $USER
|
||||
color = rgba(251, 241, 199, 1)
|
||||
font_size = 18
|
||||
font_family = Inter Display Medium
|
||||
position = 0, 100
|
||||
halign = center
|
||||
valign = bottom
|
||||
}
|
||||
|
||||
# uptime
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:60000] echo "<b> "$(uptime -p)" </b>"
|
||||
color = rgba(251, 241, 199, 1)
|
||||
font_size = 24
|
||||
font_family = JetBrains Mono Nerd Font Mono ExtraBold
|
||||
position = 0, 0
|
||||
halign = right
|
||||
valign = bottom
|
||||
}
|
||||
2
.config/hypr/lock.sh
Executable file
2
.config/hypr/lock.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
grim -o HDMI-A-1 /tmp/screenshot-0.png && grim -o DP-1 /tmp/screenshot-1.png && grim -o DP-2 /tmp/screenshot-2.png && (pidof hyprlock || hyprlock)
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/bin/zsh
|
||||
|
||||
lock="swaylock \
|
||||
--screenshots \
|
||||
--effect-pixelate 20 \
|
||||
--effect-vignette 0.5:0.5 \
|
||||
--fade-in 0.2"
|
||||
screenoff="hyprctl dispatch dpms off"
|
||||
screenon="hyprctl dispatch dpms on"
|
||||
|
||||
swayidle -w timeout 1200 "if pgrep -x swaylock; then $screenoff; fi" resume "$screenon" & disown
|
||||
swayidle -w timeout 600 "$lock" & disown
|
||||
3
.config/hypr/xdph.conf
Normal file
3
.config/hypr/xdph.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
screencopy {
|
||||
max_fps = 120
|
||||
}
|
||||
Submodule .config/nvim updated: dc52ff9830...63d7ca3808
@@ -57,7 +57,7 @@ window#waybar.chromium {
|
||||
#workspaces button:hover {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
background-color: @background-soft-contrast;
|
||||
box-shadow: inset 0 -100px 0 -97px @bright-yellow;
|
||||
/* box-shadow: inset 0 -100px 0 -97px @bright-yellow; */
|
||||
}
|
||||
|
||||
#workspaces button.empty {
|
||||
@@ -75,7 +75,7 @@ window#waybar.chromium {
|
||||
#workspaces button.focused {
|
||||
background-color: @background-soft-contrast;
|
||||
color: @foreground;
|
||||
box-shadow: inset 0 -100px 0 -97px @bright-yellow;
|
||||
/* box-shadow: inset 0 -100px 0 -97px @bright-yellow; */
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user