mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
Actual final build before release
This commit is contained in:
10
hypr/bkmark
10
hypr/bkmark
@@ -7,6 +7,10 @@ data="$(wl-paste -p | tr '\n' '\`' | sed 's/$/ /g')"
|
||||
file="$HOME/.cache/bookmarks"
|
||||
oshi_file="$HOME/.cache/oshi-urls"
|
||||
|
||||
menu(){
|
||||
bemenu --fn 'Roboto 15' -i -c -W 0.6 -B 3 -l 30 -p "$1" --bdr="#$GLOBAL_ACCENT" --tf="#$GLOBAL_ACCENT" --hf="#$GLOBAL_ACCENT"
|
||||
}
|
||||
|
||||
case $1 in
|
||||
add)
|
||||
if [ -z "$data" ]; then
|
||||
@@ -21,14 +25,14 @@ case $1 in
|
||||
rm)
|
||||
data="$(sed '/^$/d' "$file" | nl -n'ln')"
|
||||
[ -z "$data" ] && notify-send "Bookmark is empty" && exit 0
|
||||
del=$(printf "%s" "$data" | bemenu --fn 'Roboto 15' -i -c -W 0.6 -B 3 -l 30 -p "delete-bookmark :" | cut -f1)
|
||||
del=$(printf "%s" "$data" | menu "delete-bookmark :" | cut -f1)
|
||||
[ -z "$del" ] || (sed -i "${del}d" "$file" && notify-send -i "bookmark-missing" "Bookmark deleted" -u critical)
|
||||
;;
|
||||
copy)
|
||||
sed '/^$/d' "$file" "$oshi_file" | sed -E 's/.*DL: ([^|]*).*/\1/g' | bemenu --fn 'Roboto 15' -i -c -W 0.6 -B 3 -l 30 -p "Put-bookmark :" | tr '\`' '\n' | wl-copy && notify-send "Copied to clipboard" -i "com.github.davidmhewitt.clipped"
|
||||
sed '/^$/d' "$file" "$oshi_file" | sed -E 's/.*DL: ([^|]*).*/\1/g' | menu "COPY-bookmark :" | tr '\`' '\n' | wl-copy && notify-send "Copied to clipboard" -i "com.github.davidmhewitt.clipped"
|
||||
;;
|
||||
*)
|
||||
result="$(sed '/^$/d' "$file" "$oshi_file" | sed -E 's/.*DL: ([^|]*).*/\1/g' | bemenu --fn 'Roboto 15' -i -c -W 0.6 -B 3 -l 30 -p "Put-bookmark :" | tr '\`' '\n')"
|
||||
result="$(sed '/^$/d' "$file" "$oshi_file" | sed -E 's/.*DL: ([^|]*).*/\1/g' | menu "Put-bookmark :" | tr '\`' '\n')"
|
||||
if printf '%s' "$result" | grep -q 'B>'; then
|
||||
google-chrome-stable "$(printf '%s' "$result" | cut -d'>' -f2- | tr -d '\n ')"
|
||||
else
|
||||
|
||||
@@ -304,7 +304,7 @@ original_args=("$@")
|
||||
# dmenu command to pipe into. Extra arguments to dmenu-bluetooth are passed through to dmenu. This
|
||||
# allows the user to set fonts, sizes, colours, etc.
|
||||
run_dmenu() {
|
||||
bemenu "${original_args[@]}" --fn 'Roboto 16' -i -l 10 -c -W 0.4 -B 3 -p "$1"
|
||||
bemenu "${original_args[@]}" --fn 'Roboto 16' -i -l 10 -c -W 0.4 -B 3 -p "$1" --bdr="#$GLOBAL_ACCENT" --tf="#$GLOBAL_ACCENT" --hf="#$GLOBAL_ACCENT"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
|
||||
@@ -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 ">>" \
|
||||
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" \
|
||||
| awk -v histfile=$historyfile '
|
||||
BEGIN {
|
||||
FS=OFS="\t"
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
monitor=,highrr,auto,1
|
||||
$hypr_dir="$HOME/.config/hypr"
|
||||
|
||||
$accent=00D8CE
|
||||
|
||||
#envs
|
||||
env = LIBVA_DRIVER_NAME,nvidia
|
||||
#env = LIBVA_DRIVER_NAME,nvidia
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
env = GBM_BACKEND,nvidia-drm
|
||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||
#env = GBM_BACKEND,nvidia-drm
|
||||
#env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||
env = WLR_NO_HARDWARE_CURSORS,1
|
||||
env = GLOBAL_ACCENT,$accent
|
||||
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||
@@ -34,9 +36,9 @@ general {
|
||||
gaps_in = 2
|
||||
gaps_out = 4
|
||||
border_size = 3
|
||||
col.active_border = rgba(D81860FF)
|
||||
col.active_border = rgb($accent)
|
||||
col.inactive_border = rgba(595959aa)
|
||||
resize_on_border=true
|
||||
resize_on_border=false
|
||||
|
||||
layout = dwindle
|
||||
}
|
||||
@@ -50,9 +52,9 @@ decoration {
|
||||
shadow_render_power = 3
|
||||
col.shadow = rgba(1a1a1aee)
|
||||
blur {
|
||||
enabled = false
|
||||
enabled = yes
|
||||
size = 8
|
||||
passes = 2
|
||||
passes = 3
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,6 +85,10 @@ gestures {
|
||||
workspace_swipe_fingers = 3
|
||||
}
|
||||
|
||||
misc {
|
||||
force_default_wallpaper = 0
|
||||
}
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
$mainMod = SUPER
|
||||
|
||||
@@ -131,7 +137,6 @@ bindm = $mainMod, mouse:273, resizewindow
|
||||
#applications shortcuts
|
||||
bind = $mainMod, F4, exec, $HOME/repos_scripts/ani-new
|
||||
bind = $mainMod, F5, exec, $hypr_dir/wifi
|
||||
bind = $mainMod, R, exec, $hypr_dir/launch
|
||||
bind = $mainMod, return, exec, [workspace 2] foot
|
||||
bind = $mainMod, Q, exec, $hypr_dir/dmenu_run_history
|
||||
bind = $mainMod, A, exec, [workspace 1] google-chrome-stable
|
||||
@@ -170,16 +175,17 @@ 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.freedesktop.Xwayland)$
|
||||
windowrulev2=fullscreen,class:^(org.freedesktop.Xwayland)$
|
||||
windowrulev2 = bordercolor rgba(64f2a4ff), xwayland: 1
|
||||
#windowrulev2=workspace 4,class:^(org.freedesktop.Xwayland)$
|
||||
#windowrulev2=fullscreen,class:^(org.freedesktop.Xwayland)$
|
||||
windowrulev2=workspace 4,class:^(virt-manager)$
|
||||
windowrulev2 = bordercolor rgba(D81860FF), xwayland: 1
|
||||
|
||||
#startup applications
|
||||
exec-once=dbus-update-activation-environment --systemd --all
|
||||
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/9.png
|
||||
#exec-once=swaybg -i $HOME/.config/wall/9.png
|
||||
exec-once=xrdb -merge $HOME/.config/.Xresource
|
||||
exec-once=$hypr_dir/workspace 'focus'
|
||||
exec-once=sleep 2 && $hypr_dir/workspace
|
||||
|
||||
15
hypr/launch
15
hypr/launch
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
menu() {
|
||||
bemenu --fn 'IBM Plex Sans 15' -i -c -W "0.${2:-5}" -B 3 -p "$1" -l 25 -P ">>"
|
||||
}
|
||||
|
||||
[ -z "$1" ] && dir="$HOME/repos_scripts" || dir="$1"
|
||||
|
||||
[ -d "$dir" ] || exit 0
|
||||
|
||||
script=$(find "$dir" -maxdepth 1 -type f ! -name '*.md' ! -name ".*" -printf "%f\n" | menu "Run Script: " "2")
|
||||
|
||||
[ -z "$script" ] && exit 0
|
||||
|
||||
sh -c "$dir/$script"
|
||||
@@ -16,7 +16,7 @@ setup_dual_monitor() {
|
||||
|
||||
handle_it() {
|
||||
[ -z "$1" ] || notify-send "$1"
|
||||
choice=$(printf "Mirror\nExtend" | bemenu --fn 'Roboto 15' -i -c -W 0.2 -B 3 -l 20 -p "what to do??: " -m 1)
|
||||
choice=$(printf "Mirror\nExtend" | bemenu --fn 'Roboto 15' -i -c -W 0.2 -B 3 -l 20 -p "what to do??: " -m 1 --bdr="#$GLOBAL_ACCENT" --tf="#$GLOBAL_ACCENT" --hf="#$GLOBAL_ACCENT")
|
||||
[ -z "$choice" ] && return 0
|
||||
notify-send "${choice}ing screen"
|
||||
if [ "$choice" = "Extend" ]; then
|
||||
|
||||
Reference in New Issue
Block a user