Compare commits

...

2 Commits

Author SHA1 Message Date
Daylin Morgan f0063a0430
switch to hyprlock and hypridle 2024-03-24 14:26:18 -05:00
Daylin Morgan 180305c40e
refactor hyprland and add ksnip 2024-03-24 13:01:53 -05:00
8 changed files with 176 additions and 31 deletions

View File

@ -0,0 +1,61 @@
$rosewaterAlpha = f5e0dc
$flamingoAlpha = f2cdcd
$pinkAlpha = f5c2e7
$mauveAlpha = cba6f7
$redAlpha = f38ba8
$maroonAlpha = eba0ac
$peachAlpha = fab387
$yellowAlpha = f9e2af
$greenAlpha = a6e3a1
$tealAlpha = 94e2d5
$skyAlpha = 89dceb
$sapphireAlpha = 74c7ec
$blueAlpha = 89b4fa
$lavenderAlpha = b4befe
$textAlpha = cdd6f4
$subtext1Alpha = bac2de
$subtext0Alpha = a6adc8
$overlay2Alpha = 9399b2
$overlay1Alpha = 7f849c
$overlay0Alpha = 6c7086
$surface2Alpha = 585b70
$surface1Alpha = 45475a
$surface0Alpha = 313244
$baseAlpha = 1e1e2e
$mantleAlpha = 181825
$crustAlpha = 11111b
$rosewater = 0xfff5e0dc
$flamingo = 0xfff2cdcd
$pink = 0xfff5c2e7
$mauve = 0xffcba6f7
$red = 0xfff38ba8
$maroon = 0xffeba0ac
$peach = 0xfffab387
$yellow = 0xfff9e2af
$green = 0xffa6e3a1
$teal = 0xff94e2d5
$sky = 0xff89dceb
$sapphire = 0xff74c7ec
$blue = 0xff89b4fa
$lavender = 0xffb4befe
$text = 0xffcdd6f4
$subtext1 = 0xffbac2de
$subtext0 = 0xffa6adc8
$overlay2 = 0xff9399b2
$overlay1 = 0xff7f849c
$overlay0 = 0xff6c7086
$surface2 = 0xff585b70
$surface1 = 0xff45475a
$surface0 = 0xff313244
$base = 0xff1e1e2e
$mantle = 0xff181825
$crust = 0xff11111b

View File

@ -1,15 +1,14 @@
# exec-once = ~/.config/hypr/start_eww.sh &
# exec-once = flameshot &
exec = swww init
exec-once = dunst -conf ~/.config/hypr/dunstrc &
exec-once = dunst -conf ~/.config/hypr/dunstrc
# exec-once = udiskie &
exec-once = xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2
exec = swayidle &
exec = kanshi &
exec = swww init &
# exec = hyprpaper &
exec = hypridle
exec = kanshi
# TODO: make hyprman kill eww if necessary
exec = pkill eww & hyprman monitors &
exec = pkill eww & hyprman monitors

View File

@ -3,19 +3,21 @@ $term = wezterm
$termStart = wezterm start
# $term = alacritty
# $termStart = alacritty
env = GRIMBLAST_EDITOR, ksnip
# Program binds
bind = $mainMod SHIFT, RETURN, exec, $term
bind = $mainMod, P, exec, ~/.config/rofi/bin/launcher.sh
bind = $mainMod, N, exec, $termStart --class "notes-editor" -e notes-commit
bind = $mainMod SHIFT, Q, killactive,
bind = $mainMod SHIFT, L, exec, lock
bind = $mainMod, f, fullscreen, 0
bind = $mainMod SHIFT, f, togglefloating,
bind = $mainMod SHIFT, L, exec, hyprlock
bind = $mainMod, S,exec, grimblast copy area
bind = $mainMod SHIFT,S, exec, grimblast edit area
bind = $mainMod SHIFT, m, exit,
bind = $mainMod SHIFT, R, exec, hyprctl reload
bind = $mainMod SHIFT, Q, killactive,
bind = $mainMod, f, fullscreen, 0
bind = $mainMod SHIFT, f, togglefloating,
# Move focus with mainMod + hjkl
bind = $mainMod, h, movefocus, l
@ -56,9 +58,6 @@ bind = $mainMod CTRL, 7, movetoworkspacesilent, 7
bind = $mainMod CTRL, 8, movetoworkspacesilent, 8
bind = $mainMod CTRL, 9, movetoworkspacesilent, 9
bind = $mainMod, S,exec, grimblast copy area
bind = $mainMod SHIFT,S, exec, grimblast save output
bind = , XF86AudioLowerVolume, exec, pamixer --decrease 5
bind = , XF86RaiseLowerVolume, exec, pamixer --increase 5
bind = , XF86AudioMute, exec, pamixer --toggle-mute

View File

@ -0,0 +1,28 @@
# taken from example at https://wiki.hyprland.org/Hypr-Ecosystem/hypridle/
general {
lock_cmd = pidof hyprlock || hyprlock # 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.
}
listener {
timeout = 150 # 2.5min.
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
on-resume = brightnessctl -r # monitor backlight restor.
}
listener {
timeout = 300 # 5min
on-timeout = loginctl lock-session # lock screen when timeout has passed
}
listener {
timeout = 380 # 5.5min
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 = 1800 # 30min
on-timeout = systemctl suspend # suspend pc
}

View File

@ -4,7 +4,7 @@ monitor=,preferred,auto,1
# monitor=DP-3,1920x1080,0x0,1
# Some default env vars.
env = GDK_SCALE=2
env = GDK_SCALE,2
env = XCURSOR_SIZE,24
env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that
# env = GTK_THEME, Catppuccin-Mocha-Standard-Rosewater-Dark
@ -67,9 +67,11 @@ misc {
force_default_wallpaper = 0 # Set to 0 to disable the anime mascot wallpapers
}
source = ./keys.conf
source = ./windows.conf
source = ./execs.conf
animation=windows,1,5,default,popin 80%
animation=workspaces,1,5,default,slidefadevert 20%
source = ./conf/keys.conf
source = ./conf/windows.conf
source = ./conf/execs.conf

View File

@ -0,0 +1,68 @@
source = $HOME/.config/hypr/conf/catppuccin-mocha.conf
$accent = $rosewater
# this causes error? hard code instead
# $accentAlpha = $rosewaterAlpha
$accentAlpha = f5e0dc
$font = FiraCode Nerd Font Mono
# GENERAL
general {
disable_loading_bar = true
hide_cursor = true
}
# BACKGROUND
background {
monitor =
blur_passes = 0
color = $base
}
# TIME
label {
monitor =
text = cmd[update:30000] echo "$(date +"%R")"
color = $text
font_size = 90
font_family = $font
position = -30, 0
halign = right
valign = top
}
# DATE
label {
monitor =
text = cmd[update:43200000] echo "$(date +"%A, %d %B %Y")"
color = $text
font_size = 25
font_family = $font
position = -30, -150
halign = right
valign = top
}
# INPUT FIELD
input-field {
monitor =
size = 300, 60
outline_thickness = 4
dots_size = 0.2
dots_spacing = 0.2
dots_center = true
outer_color = $accent
inner_color = $surface0
font_color = $text
fade_on_empty = false
placeholder_text = <span foreground="##$textAlpha"><i>󰌾 Logged in as </i><span foreground="##$accentAlpha">$USER</span></span>
hide_input = false
check_color = $accent
fail_color = $red
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
capslock_color = $yellow
position = 0, -35
halign = center
valign = center
}

View File

@ -1,12 +0,0 @@
preload = ~/.config/hypr/wallpapers/ai/painted-landscape/00005-4229950720.png
preload = ~/.config/hypr/wallpapers/ai/painted-landscape/00006-2215131891.png
preload = ~/.config/hypr/wallpapers/ai/painted-landscape/00009-2215131894.png
wallpaper = eDP-1, ~/.config/hypr/wallpapers/ai/painted-landscape/00005-4229950720.png
wallpaper = DP-5, ~/.config/hypr/wallpapers/ai/painted-landscape/00009-2215131894.png
wallpaper = DP-3, ~/.config/hypr/wallpapers/ai/painted-landscape/00009-2215131894.png
wallpaper = DP-6, ~/.config/hypr/wallpapers/ai/painted-landscape/00009-2215131894.png
splash = false