restructuring

This commit is contained in:
cnst
2024-06-23 13:18:58 +02:00
parent b2aec1af0d
commit cdf2b9771c
22 changed files with 300 additions and 893 deletions

View File

@@ -1,18 +0,0 @@
$lock_cmd = pidof hyprlock || hyprlock
$suspend_cmd = pidof steam || systemctl suspend || loginctl suspend # fuck nvidia
general {
lock_cmd = $lock_cmd
before_sleep_cmd = $lock_cmd
}
listener {
timeout = 900 # 15mins
on-timeout = $lock_cmd
}
listener {
timeout = 1200 # 20mins
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}

View File

@@ -1,112 +0,0 @@
# $text_color = rgba(F6DECEFF)
# $entry_background_color = rgba(1C110811)
# $entry_border_color = rgba(A48C7B55)
# $entry_color = rgba(DDC1AEFF)
$text_color = rgba(FFFFFFFF)
$entry_background_color = rgba(33333311)
$entry_border_color = rgba(3B3B3B55)
$entry_color = rgba(FFFFFFFF)
$font_family = JetBrains Mono
#$font_family_clock = DSEG14 Classic Mini
$font_family_clock = JetBrains Mono
# font_material_symbols = FontAwesome
background {
# color = rgba(170C04FF)
color = rgba(000000FF)
path = ~/Images/lockscreen.png
# path = screenshot
blur_size = 3
blur_passes = 2
}
input-field {
monitor =
size = 200, 50
outline_thickness = 2
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
dots_rounding = -1 # -1 default circle, -2 follow input-field rounding
outer_color = rgba(3B3B3B55)
inner_color = rgba(33333311)
font_color = rgba(FFFFFFFF)
fade_on_empty = true
fade_timeout = 5000 # Milliseconds before fade_on_empty is triggered.
placeholder_text = # Text rendered in the input box when it's empty.
hide_input = false
rounding = -1 # -1 means complete rounding (circle/oval)
check_color = rgb(204, 136, 34)
fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i> # can be set to empty
fail_transition = 300 # transition time in ms between normal outer_color and fail_color
capslock_color = -1
numlock_color = -1
bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above)
invert_numlock = false # change color if numlock is off
swap_font_color = false # see below
position = 0, -20
halign = center
valign = center
shadow_passes =
shadow_size =
shadow_color = rgb(0,0,0)
shadow_boost =
}
label { # Clock
monitor =
text = cmd[update:1000] echo "$TIME"
shadow_passes = 1
shadow_boost = 0.5
color = $text_color
font_size = 85
font_family = $font_family_clock
position = 0, 300
halign = center
valign = center
}
label { # Date
monitor =
text = cmd[update:1000] echo "$(date -I)"
shadow_passes = 1
shadow_boost = 0.5
color = $text_color
font_size = 25
font_family = $font_family_clock
position = 0, 280
halign = center
valign = center
}
label { # "locked" text
monitor =
text = locked
shadow_passes = 1
shadow_boost = 0.5
color = $text_color
font_size = 14
font_family = $font_family
position = 0, 45
halign = center
valign = bottom
}
label { # Status
monitor =
text = cmd[update:5000] ~/.config/hypr/hyprlock/status.sh
shadow_passes = 1
shadow_boost = 0.5
color = $text_color
font_size = 14
font_family = $font_family
position = 30, 30
halign = left
valign = top
}

View File

@@ -1,29 +0,0 @@
#!/usr/bin/env bash
############ Variables ############
enable_battery=false
battery_charging=false
####### Check availability ########
for battery in /sys/class/power_supply/*BAT*; do
if [[ -f "$battery/uevent" ]]; then
enable_battery=true
if [[ $(cat /sys/class/power_supply/*/status | head -1) == "Charging" ]]; then
battery_charging=true
fi
break
fi
done
############# Output #############
if [[ $enable_battery == true ]]; then
if [[ $battery_charging == true ]]; then
echo -n "(+) "
fi
echo -n "$(cat /sys/class/power_supply/*/capacity | head -1)"%
if [[ $battery_charging == false ]]; then
echo -n " remaining"
fi
fi
echo ''

View File

@@ -1,16 +0,0 @@
preload = /home/cnst/Pictures/wallhaven-gpxl97.jpg
#if more than one preload is desired then continue to preload other backgrounds
#preload = /path/to/next_image.png
# .. more preloads
#set the default wallpaper(s) seen on initial workspace(s) --depending on the number of monitors used
wallpaper = DP-3,/home/cnst/Pictures/wallhaven-gpxl97.jpg
#if more than one monitor in use, can load a 2nd image
#wallpaper = monitor2,/path/to/next_image.png
# .. more monitors
#enable splash text rendering over the wallpaper
splash = false
#fully disable ipc
# ipc = off

View File

@@ -1,49 +0,0 @@
# APPEARANCE
general {
gaps_in = 3
gaps_out = 6
border_size = 2
#col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
#col.inactive_border = rgba(595959aa)
col.active_border = rgb(689d6a) # rgba(b16286ee) 45deg
col.inactive_border = rgb(504945)
layout = dwindle
}
decoration {
rounding = 0
blur {
enabled = true
size = 8
passes = 1
vibrancy = 0.1696
}
drop_shadow = true
shadow_range = 4
shadow_render_power = 3
# col.shadow = rgba(1a1a1aee)
}
animations {
enabled = true
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 3, myBezier
animation = windowsOut, 1, 3, default, popin 80%
animation = border, 1, 3, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 3, default
}
dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
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 {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_is_master = true
}

View File

@@ -1,53 +0,0 @@
# INPUTS
monitor=DP-3,2560x1440@143.86,0x0,1
monitor=eDP-1,1920x1200@60.02,0x0,1
# Some default env vars.
env = XCURSOR_SIZE,24
# env = QT_QPA_PLATFORMTHEME,qt6ct # change to qt6ct if you have that
# env = GTK_THEME,Orchis-Orange-Dark
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
follow_mouse = 1
accel_profile = flat
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = true
disable_while_typing = true
clickfinger_behavior = true
scroll_factor = 0.5
}
}
# Desktop keyboard
device {
name = pfu-limited-hhkb-hybrid
kb_layout = hhkbse
kb_options = lv3:rwin_switch
}
# Laptop keyboard
device {
name = at-translated-set-2-keyboard
kb_layout = se
kb_options = ctrl:swapcaps
}
gestures {
workspace_swipe = true
workspace_swipe_distance = 400
workspace_swipe_fingers = 3
workspace_swipe_cancel_ratio = 0.2
workspace_swipe_min_speed_to_force = 5
workspace_swipe_direction_lock = true
workspace_swipe_direction_lock_threshold = 10
workspace_swipe_create_new = true
}
misc {
vrr = 0
mouse_move_enables_dpms = 1
key_press_enables_dpms = 0
force_default_wallpaper = 0
disable_hyprland_logo = true
disable_splash_rendering = true
}

View File

@@ -1,92 +0,0 @@
# KEYBINDS
$terminal = alacritty
$fileManager = thunar
$passwordManager = keepassxc
$menu = pkill tofi-run || tofi-run | xargs hyprctl dispatch exec --
$browser = firefox
$browserinc = firefox --private-window
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
# Custom binds
bind = SUPER SHIFT, B, exec, killall -SIGUSR2 waybar # Reload waybar
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = SUPER, A, exec, pkill -SIGUSR1 waybar
bind = SUPER, T, exec, $terminal
bind = SUPER, W, exec, $browser
bind = SUPER, K, exec, $passwordManager
bind = SUPER SHIFT, W, exec, $browserinc
bind = SUPER, Q, killactive,
bind = SUPER, M, exec, hyprctl dispatch exit
#bind = SUPER, E, exec, $fileManager
bind = SUPER, E, exec, hyprctl dispatch togglespecialworkspace fm | hyprctl dispatch rangerscript &
bind = SUPER SHIFT, E, exec, $fileManager
bind = SUPER, F, fullscreen,
bind = SUPER SHIFT, F, togglefloating,
bind = SUPER, SPACE, exec, $menu
bind = SUPER, P, pseudo, # dwindle
bind = SUPER, J, togglesplit, # dwindle
bind = SUPER, C, exec, hyprctl dispatch exec copyq toggle
# Move focus with mainMod + arrow keys
bind = SUPER, left, movefocus, l
bind = SUPER, right, movefocus, r
bind = SUPER, up, movefocus, u
bind = SUPER, down, movefocus, d
# Switch workspaces with mainMod + [0-9]
bind = SUPER, 1, workspace, 1
bind = SUPER, 2, workspace, 2
bind = SUPER, 3, workspace, 3
bind = SUPER, 4, workspace, 4
bind = SUPER, 5, workspace, 5
bind = SUPER, 6, workspace, 6
bind = SUPER, 7, workspace, 7
bind = SUPER, 8, workspace, 8
bind = SUPER, 9, workspace, 9
bind = SUPER, 0, workspace, 10
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = SUPER SHIFT, 1, movetoworkspace, 1
bind = SUPER SHIFT, 2, movetoworkspace, 2
bind = SUPER SHIFT, 3, movetoworkspace, 3
bind = SUPER SHIFT, 4, movetoworkspace, 4
bind = SUPER SHIFT, 5, movetoworkspace, 5
bind = SUPER SHIFT, 6, movetoworkspace, 6
bind = SUPER SHIFT, 7, movetoworkspace, 7
bind = SUPER SHIFT, 8, movetoworkspace, 8
bind = SUPER SHIFT, 9, movetoworkspace, 9
bind = SUPER SHIFT, 0, movetoworkspace, 10
# Laptop controls
bind = ,XF86AudioLowerVolume, exec, pactl -- set-sink-volume 0 -5%
bind = ,XF86AudioRaiseVolume, exec, pactl -- set-sink-volume 0 +5%
bind = ,XF86AudioMute, exec, pactl -- set-sink-mute 0 toggle
bind = ,XF86AudioMicMute, exec, pactl -- set-source-mute 0 toggle
bind = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
bind = ,XF86MonBrightnessUp, exec, brightnessctl s +10%
bind = SUPER, XF86MonBrightnessUp, exec, hyprctl dispatch dpms on
bind = SUPER, XF86MonBrightnessDown, exec, hyprctl dispatch dpms off
# Screenshot a window
bind = SUPER, F10, exec, hyprshot -m window
# Screenshot a monitor
bind = , F10, exec, hyprshot -m output
# Screenshot a region
bind = SUPER SHIFT, F10, exec, hyprshot -m region
# Example special workspace (scratchpad)
bind = SUPER, S, togglespecialworkspace, magic
bind = SUPER SHIFT, S, movetoworkspace, special:magic
# Scroll through existing workspaces with mainMod + scroll
bind = SUPER, mouse_down, workspace, e+1
bind = SUPER, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = SUPER, mouse:272, movewindow
bindm = SUPER, mouse:273, resizewindow

View File

@@ -1,35 +0,0 @@
# RULES
# CALCURSE SETTINGS
windowrulev2 = float,class:(floatcal)
windowrulev2 = size 843 650,class:(floatcal)
windowrulev2 = move 100%-w-20 40,class:(floatcal)
#windowrulev2 = move 1708 32,class:(floatcal)
# RANGER/NNN SETTINGS
windowrulev2 = float,class:(floatranger)
windowrulev2 = float,class:(floatnnn)
#windowrulev2 = size 843 650,class:(floatranger)
#windowrulev2 = move 1708 32,class:(floatranger)
#windowrulev2 = move 1708 32;size 843 650;dimaround;float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.
#windowrulev2 = noshadow, floating:0
windowrulev2 = float,class:^(org.keepassxc.KeePassXC)$
windowrulev2 = center,class:^(org.keepassxc.KeePassXC)$
windowrule = float, ^(xarchiver)$
windowrulev2 = float,class:^(imv)$
windowrulev2 = float,class:^(com.github.hluk.copyq)$
windowrule = center, ^(xarchiver)$
windowrulev2 = float,class:^(blueman-manager)$
windowrulev2 = center,class:^(nwg-look)$
windowrulev2 = float,class:^(nwg-look)$
windowrulev2 = float,class:^(Lxappearance)$
windowrulev2 = float,class:^(org.pulseaudio.pavucontrol)$
windowrule = move 1813 33,^(org.pulseaudio.pavucontrol)$
windowrule = size 741 585,^(org.pulseaudio.pavucontrol)$
windowrule = dimaround,^(org.pulseaudio.pavucontrol)$
windowrulev2 = float,class: ^(thunar)
windowrulev2 = float,class: ^(thunar)
windowrulev2 = workspace special:fm,class: ^(thunar)

View File

@@ -1,13 +0,0 @@
# STARTUP
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = /usr/lib/polkit-kde-authentication-agent-1
exec-once = pamixer --set-volume 50 &
exec-once = dunst & waybar & hypridle & blueman-applet & udiskie -Nt &
exec-once = nm-applet --indicator &
exec-once = mullvad-vpn &
exec-once = swaybg -i ~/Images/wallpaper.png &
exec-once = wl-clip-persist --clipboard regular --all-mime-type-regex '^(?!x-kde-passwordManagerHint).+'
exec-once = hyprctl dispatch exec "sleep 4s && copyq --start-server"
exec-once = hyprctl dispatch exec "sleep 5s && keepassxc"
exec-once = hyprctl dispatch exec "sleep 3s && solaar -w hide"

View File

@@ -1,36 +0,0 @@
ignore-empty-password
disable-caps-lock-text
image=$HOME/.config/hypr/bg/calvin2.jpeg
font=Calvin and Hobbes
text-ver-color=00000000
text-wrong-color=00000000
text-clear-color=00000000
inside-color=00000000
inside-ver-color=00000000
inside-wrong-color=00000000
inside-clear-color=00000000
inside-caps-lock-color=00000000
ring-color=00000000
ring-ver-color=00000000
ring-wrong-color=00000000
ring-clear-color=00000000
line-color=00000000
line-clear-color=00000000
line-ver-color=00000000
key-hl-color=00000000
bs-hl-color=00000000
caps-lock-bs-hl-color=00000000
caps-lock-key-hl-color=00000000
separator-color=00000000
scaling=fill
indicator
clock
timestr=%I:%M %p
datestr=%A, %d %B
indicator-x-position=400
indicator-y-position=875
indicator-radius=450
font-size=200
text-color=080808

View File

@@ -1,3 +0,0 @@
#!/bin/bash
sleep 1
killall -9 Hyprland sleep 2

View File

@@ -1,30 +0,0 @@
#!/usr/bin/env sh
# set variables
wLayout="$HOME/.config/wlogout/layout_2"
wlTmplt="$HOME/.config/wlogout/style_2.css"
# set font size
fntSize=`gsettings get org.gnome.desktop.interface font-name | sed "s/'//g" | awk '{print $2}'`
export fntSize=$(( fntSize * 2 ))
# set scaling as per monitor res
res=`cat /sys/class/drm/*/modes | head -1 | cut -d 'x' -f 2`
case $1 in
1) wlColms=1
export mgn=$(( res * 10 / 100 ))
export hvr=$(( res * 5 / 100 )) ;;
2) wlColms=5
export mgn=$(( res * 8 / 100 ))
export mgn2=$(( res * 65 / 100 ))
export hvr=$(( res * 3 / 100 ))
export hvr2=$(( res * 60 / 100 )) ;;
*) echo "Error: invalid parameter passed..."
exit 1 ;;
esac
# eval config files
wlStyle=`envsubst < $wlTmplt`
# launch wlogout
wlogout -b $wlColms -c 0 -r 0 --layout $wLayout --css <(echo "$wlStyle") --protocol layer-shell