mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
feat: updated creds
This commit is contained in:
@@ -18,7 +18,7 @@ download_emoji_file(){
|
||||
}
|
||||
|
||||
|
||||
emoji_file="${XDG_CACHE_DIR:-$HOME/.cache}/emoji"
|
||||
emoji_file="${XDG_CACHE_DIR:-$HOME/.cache}/${0##*/}"
|
||||
|
||||
# check emoji file
|
||||
[ -f "$emoji_file" ] || download_emoji_file "$emoji_file"
|
||||
|
||||
BIN
hypr/circuit.png
Normal file
BIN
hypr/circuit.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 118 KiB |
@@ -6,7 +6,7 @@ historyfile=$cachedir/dmenu_history
|
||||
|
||||
ls /bin >"$cache"
|
||||
|
||||
cut -f2 "$historyfile" "$cache" | bemenu --fixed-height --fn 'JetBrainsMono Nerd Font 15' -i -c -W 0.5 -B 3 -p "RUN: " -l 15 -P ">>" --bdr="#$GLOBAL_ACCENT" --tf="#$GLOBAL_ACCENT" --hf="#$GLOBAL_ACCENT" |
|
||||
cut -f2 "$historyfile" "$cache" | bemenu -R 20 --fixed-height --fn 'JetBrainsMono Nerd Font 15' -i -c -W 0.5 -B 3 -p "RUN: " -l 15 -P ">>" --bdr="#$GLOBAL_ACCENT" --tf="#$GLOBAL_ACCENT" --hf="#$GLOBAL_ACCENT" |
|
||||
awk -v histfile="$historyfile" '
|
||||
BEGIN {
|
||||
FS=OFS="\t"
|
||||
|
||||
21
hypr/hypridle.conf
Normal file
21
hypr/hypridle.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
general {
|
||||
lock_cmd = pidof hyprlock || hyprlock
|
||||
before_sleep_cmd = loginctl lock-session
|
||||
after_sleep_cmd = hyprctl dispatch dpms on
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 300
|
||||
on-timeout = hyprctl dispatch dpms off
|
||||
on-resume = hyprctl dispatch dpms on
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 330
|
||||
on-timeout = loginctl lock-session
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 1800
|
||||
on-timeout = systemctl suspend
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
monitor=,highrr,auto,1.5,bitdepth,10
|
||||
#monitor=HDMI-A-1,3840x2160,auto,2,bitdepth,10
|
||||
monitor=eDP-1,highres,auto,1.5,bitdepth,10,vrr,1
|
||||
#monitor=HDMI-A-1,highres,auto,1
|
||||
|
||||
$hypr_dir="$HOME/.config/hypr"
|
||||
$accent=6FAAFF
|
||||
@@ -9,6 +9,7 @@ $browser=google-chrome-stable
|
||||
|
||||
#envs
|
||||
env = BROWSER,$browser
|
||||
env = CLUTTER_BACKEND,wayland
|
||||
env = EDITOR,nvim
|
||||
env = GDK_BACKEND,wayland,x11
|
||||
env = GDK_SCALE,2 #xwayland fractional scaling
|
||||
@@ -18,8 +19,10 @@ env = IMAGE,nsxiv
|
||||
env = LIBSEAT_BACKEND,logind
|
||||
env = MOZ_ENABLE_WAYLAND,1
|
||||
env = OPENER,xdg-open
|
||||
env = QT_QPA_PLATFORMTHEME,qt5ct
|
||||
env = QT_QPA_PLATFORM,wayland
|
||||
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
||||
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
||||
env = QT_QPA_PLATFORMTHEME,gtk3
|
||||
env = QT_QPA_PLATFORM,wayland;xcb
|
||||
env = SDL_VIDEODRIVER,wayland
|
||||
env = TERMINAL,foot
|
||||
env = VIDEO,mpv
|
||||
@@ -51,8 +54,8 @@ input {
|
||||
general {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
|
||||
gaps_in = 2
|
||||
gaps_out = 4
|
||||
gaps_in = 1
|
||||
gaps_out = 1
|
||||
border_size = 3
|
||||
col.active_border = rgb($accent)
|
||||
col.inactive_border = rgba(484848aa)
|
||||
@@ -66,8 +69,8 @@ decoration {
|
||||
|
||||
rounding = 10
|
||||
drop_shadow = yes
|
||||
shadow_range = 4
|
||||
shadow_render_power = 3
|
||||
shadow_range = 3
|
||||
shadow_render_power = 2
|
||||
col.shadow = rgba(1a1a1aee)
|
||||
blur {
|
||||
enabled = yes
|
||||
@@ -86,6 +89,7 @@ animations {
|
||||
animation = windows, 1, 7, myBezier
|
||||
animation = windowsOut, 1, 7, default, popin 80%
|
||||
animation = border, 1, 10, default
|
||||
animation = borderangle, 1, 8, default
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 6, default
|
||||
}
|
||||
@@ -107,7 +111,8 @@ gestures {
|
||||
misc {
|
||||
force_default_wallpaper = 0
|
||||
vfr = 1
|
||||
vrr = 2
|
||||
#vrr = 1
|
||||
no_direct_scanout = false
|
||||
}
|
||||
|
||||
xwayland {
|
||||
@@ -173,7 +178,8 @@ bind = $mainMod, B, exec, $hypr_dir/bkmark "add"
|
||||
bind = $mainMod, I, exec, $hypr_dir/bkmark
|
||||
bind = $mainMod SHIFT, I, exec, $hypr_dir/bkmark "copy"
|
||||
bind = $mainMod SHIFT, B, exec, $hypr_dir/bkmark "rm"
|
||||
bind = $mainMod SHIFT, L, exit,
|
||||
#bind = $mainMod SHIFT, L, exit,
|
||||
bind = $mainMod, L, exec, loginctl lock-session
|
||||
bind = $mainMod, F11, exec, $hypr_dir/info
|
||||
#bind = $mainMod, F10, exec, $hypr_dir/bluetooth
|
||||
bind = $mainMod, F6, exec, $hypr_dir/workspace
|
||||
@@ -202,11 +208,13 @@ windowrulev2 = workspace 1,class:^(firefox)$
|
||||
windowrulev2 = workspace 4,class:^(Google-chrome)$
|
||||
windowrulev2 = workspace 3,class:^(mpv)$
|
||||
windowrulev2 = workspace 3,class:^([c|C]ode)
|
||||
windowrulev2 = workspace 4,class:^(pavucontrol)$
|
||||
#windowrulev2 = workspace 4,class:^(org.pulseaudio.pavucontrol)$
|
||||
windowrulev2 = workspace 4,class:^(org.freedesktop.Xwayland)$
|
||||
windowrulev2 = fullscreen,class:^(org.freedesktop.Xwayland)$
|
||||
windowrulev2 = workspace 4,class:^(virt-manager)$
|
||||
windowrulev2 = bordercolor rgba(64f2a4FF), xwayland: 1
|
||||
windowrulev2 = workspace 3,class:^(Waydroid)$
|
||||
windowrulev2 = pseudo, class:^(Waydroid)$
|
||||
|
||||
#workspace rules
|
||||
workspace = 1, on-created-empty:$browser
|
||||
@@ -215,11 +223,10 @@ workspace = special, on-created-empty:[float] foot
|
||||
|
||||
#startup applications
|
||||
exec-once = dbus-update-activation-environment --systemd --all
|
||||
exec-once = hypridle
|
||||
exec-once = ssh-agent
|
||||
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
exec-once = node $HOME/github/arrpc/src > /tmp/arrpc-log
|
||||
exec-once = swaybg -i $HOME/.config/wall/3.png -m fill
|
||||
exec-once = sleep 5 && xrdb -merge $HOME/.config/.Xresource
|
||||
exec-once = swaybg -i $HOME/.config/wall/1.png -m fill
|
||||
exec-once = xrdb -merge $HOME/.config/.Xresource
|
||||
exec-once = $hypr_dir/workspace 'focus'
|
||||
exec-once = $hypr_dir/battery
|
||||
#exec-once=sleep 2 && $hypr_dir/workspace
|
||||
|
||||
72
hypr/hyprlock.conf
Normal file
72
hypr/hyprlock.conf
Normal file
@@ -0,0 +1,72 @@
|
||||
|
||||
$foreground = rgb($GLOBAL_ACCENT)
|
||||
|
||||
background {
|
||||
monitor =
|
||||
color = rgb(0,0,0)
|
||||
hide_cursor = true
|
||||
|
||||
#path = screenshot
|
||||
#blur_passes = 4
|
||||
#blur_size = 8
|
||||
}
|
||||
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:1000] date +"%I:%M:%S %p"
|
||||
text_align = center
|
||||
color = $foreground
|
||||
font_size = 80
|
||||
font_family = JetBrains Mono Nerd Font Mono ExtraBold
|
||||
|
||||
position = 0, 300
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
input-field {
|
||||
monitor =
|
||||
size = 400, 50
|
||||
outline_thickness = 3
|
||||
dots_size = 0.33
|
||||
dots_spacing = 0.15
|
||||
dots_center = true
|
||||
dots_rounding = -1
|
||||
outer_color = $foreground
|
||||
inner_color = rgb(0,0,0)
|
||||
font_color = $foreground
|
||||
fade_on_empty = false
|
||||
fade_timeout = 1000
|
||||
placeholder_text = <i><span foreground="##$GLOBAL_ACCENT">Input Password...</span></i> # Text rendered in the input box when it's empty.
|
||||
hide_input = false
|
||||
rounding = -1
|
||||
check_color = rgb(204, 136, 34)
|
||||
fail_color = rgb(204, 34, 34)
|
||||
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
|
||||
fail_transition = 300
|
||||
capslock_color = -1
|
||||
numlock_color = -1
|
||||
bothlock_color = -1
|
||||
invert_numlock = false
|
||||
swap_font_color = false
|
||||
|
||||
position = 0, -300
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
image {
|
||||
monitor =
|
||||
path = /home/tanveer/.config/hypr/circuit.png
|
||||
size = 300
|
||||
rounding = -1
|
||||
border_size = 4
|
||||
border_color = $foreground
|
||||
rotate = 0
|
||||
reload_time = -1
|
||||
|
||||
position = 0, 0
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
@@ -15,4 +15,6 @@ gamename=$(basename "$game")
|
||||
|
||||
notify-send -e -h "string:x-canonical-private-synchronous:${0##*/}" -i "wine" "Launching $gamename"
|
||||
|
||||
trap 'wineserver -k' INT HUP
|
||||
|
||||
WINEFSYNC=1 WINEESYNC=1 MANGOHUD=1 gamemoderun wine "$gamename"
|
||||
|
||||
@@ -1,7 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
icon="/usr/share/icons/Papirus/16x16/apps/applets-screenshooter.svg"
|
||||
tmp_file="/tmp/screenshot.png"
|
||||
[ -f "$tmp_file" ] && rm -f "$tmp_file"
|
||||
killall grim slurp
|
||||
[ "$*" = "fullclip" ] && grim - | wl-copy -t image/png && notify-send -e -i "$icon" "Screenshot copied to clipboard"
|
||||
[ "$*" = "fullsave" ] && grim "$HOME/Pictures/$(date -u "+%Y-%m-%d_%H-%M-%S").png" && notify-send -e -i "$icon" "Screenshot saved"
|
||||
[ "$*" = "selclip" ] && grim -g "$(slurp)" - | wl-copy -t image/png && notify-send -e -i "$icon" "Screenshot copied to clipboard"
|
||||
message="Screenshot copied to clipboard."
|
||||
urgency="normal"
|
||||
|
||||
case "$1" in
|
||||
fullclip)
|
||||
grim - | tee "$tmp_file" | wl-copy -t image/png
|
||||
;;
|
||||
fullsave)
|
||||
tmp_file="$HOME/Pictures/$(date -u "+%Y-%m-%d_%H-%M-%S").png"
|
||||
message="Screenshot saved."
|
||||
grim "$tmp_file"
|
||||
;;
|
||||
selclip)
|
||||
grim -g "$(slurp)" - | tee "$tmp_file" | wl-copy -t image/png
|
||||
;;
|
||||
*)
|
||||
message="Please select one from these -- fullclip,fullsave,selclip"
|
||||
urgency="critical"
|
||||
;;
|
||||
esac
|
||||
|
||||
notify-send -e -h "string:x-canonical-private-synchronous:${0##*/}" -u "$urgency" -i "$tmp_file" "$message"
|
||||
|
||||
|
||||
@@ -38,16 +38,17 @@ case $1 in
|
||||
;;
|
||||
focus)
|
||||
#shows the workspace number as notification whenever u switch workspaces and also handles the dual monitor setup on the fly(perfect for laptop users)
|
||||
socat - "UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock" | while read -r line; do
|
||||
printf "%s" "$line" | grep -q "monitoradded" && handle_it "$line"
|
||||
socat - "UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock" | while read -r line; do
|
||||
printf "%s" "$line" | grep -qE "monitoraddedv2.*HEADLESS" && continue
|
||||
printf "%s" "$line" | grep -q "monitoraddedv2" && handle_it "$line"
|
||||
printf "%s" "$line" | grep -q "monitorremoved" && sed -i "s/monitor=,1920x1080,0x0,1,mirror,eDP-1/monitor=,highrr,auto,1/g" "$HOME/.config/hypr/hyprland.conf" && eww kill && eww open_many time_0 music_0
|
||||
#recent workspace switcher
|
||||
current=$(printf "%s" "$line" | sed -nE 's_^(workspace)>>([^ ]*)_\1 \2_p')
|
||||
current=$(printf "%s" "$line" | sed -nE 's_^(workspace)v2>>([^,]*),.*_\1 \2_p')
|
||||
if [ -n "$current" ]; then
|
||||
cat /tmp/workcurr >/tmp/workprev
|
||||
printf "%s" "$current" >/tmp/workcurr
|
||||
fi
|
||||
notify-send -e -i "lol" "$(printf "%s" "$line" | sed -nE 's_^(workspace)>>([^ ]*)_\1 \2_p')" -h "string:x-canonical-private-synchronous:monitor" -t 700 2>/dev/null
|
||||
notify-send -e -i "lol" "$current" -h "string:x-canonical-private-synchronous:monitor" -t 700 2>/dev/null
|
||||
done
|
||||
;;
|
||||
toggle)
|
||||
|
||||
Reference in New Issue
Block a user