mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
Derp, asset redirection in dev mode
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
[FileDialog]
|
[FileDialog]
|
||||||
history=@Invalid()
|
history=file:///opt/zoom
|
||||||
lastVisited=file:///dev
|
lastVisited=file:///opt/zoom
|
||||||
qtVersion=5.15.12
|
qtVersion=5.15.15
|
||||||
shortcuts=file:, file:///home/tanveer
|
shortcuts=file:, file:///home/tanveer
|
||||||
sidebarWidth=84
|
sidebarWidth=48
|
||||||
treeViewHeader=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x1\xb8\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xe8\0\0\0\x1\0\0\0\0\0\0\0\x36\0\0\0\x1\0\0\0\0\0\0\0:\0\0\0\x1\0\0\0\0\0\0\0`\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff\0\0\0\0)
|
treeViewHeader=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x1\xb8\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xe8\0\0\0\x1\0\0\0\0\0\0\0\x36\0\0\0\x1\0\0\0\0\0\0\0:\0\0\0\x1\0\0\0\0\0\0\0`\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff)
|
||||||
viewMode=Detail
|
viewMode=Detail
|
||||||
|
|
||||||
[Qt]
|
[Qt]
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
# Padding between text and separator.
|
# Padding between text and separator.
|
||||||
padding = 8
|
padding = 8
|
||||||
|
|
||||||
highlight = "#5E88DD"
|
highlight = "#D81860"
|
||||||
|
|
||||||
# Horizontal padding.
|
# Horizontal padding.
|
||||||
horizontal_padding = 8
|
horizontal_padding = 8
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
frame_width = 3
|
frame_width = 3
|
||||||
|
|
||||||
# Defines color of the frame around the notification window.
|
# Defines color of the frame around the notification window.
|
||||||
frame_color = "#5E88DD"
|
frame_color = "#D81860"
|
||||||
|
|
||||||
# Size of gap to display between notifications - requires a compositor.
|
# Size of gap to display between notifications - requires a compositor.
|
||||||
# If value is greater than 0, separator_height will be ignored and a border
|
# If value is greater than 0, separator_height will be ignored and a border
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
:y "50"
|
:y "50"
|
||||||
:width "30%"
|
:width "30%"
|
||||||
:height "40px"
|
:height "40px"
|
||||||
:anchor "top left")
|
:anchor "bottom left")
|
||||||
:stacking "bg"
|
:stacking "bg"
|
||||||
:reserve (struts :distance "10px" :side "bottom")
|
:reserve (struts :distance "10px" :side "bottom")
|
||||||
:windowtype "dock"
|
:windowtype "dock"
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ alpha=0.9
|
|||||||
# scrollback-indicator=<regular0> <bright4> # black-on-bright-blue
|
# scrollback-indicator=<regular0> <bright4> # black-on-bright-blue
|
||||||
# search-box-no-match=<regular0> <regular1> # black-on-red
|
# search-box-no-match=<regular0> <regular1> # black-on-red
|
||||||
# search-box-match=<regular0> <regular3> # black-on-yellow
|
# search-box-match=<regular0> <regular3> # black-on-yellow
|
||||||
# urls=<regular3>
|
#urls=A9DC76
|
||||||
|
|
||||||
[csd]
|
[csd]
|
||||||
# preferred=server
|
# preferred=server
|
||||||
|
|||||||
57
hypr/battery
57
hypr/battery
@@ -1,20 +1,47 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
i=10
|
remind() {
|
||||||
dir="/sys/class/power_supply/BAT0/"
|
notify-send -i "$icon_dir/battery-010.svg" -h "string:x-canonical-private-synchronous:${0##*/}" "$1 % Battery $2, Please Plugin Charger!!" -u "$2"
|
||||||
icon_dir="/usr/share/icons/Papirus/22x22/panel/"
|
}
|
||||||
|
|
||||||
[ -n "$1" ] && printf "Sleep for %s seconds\n" "$i"
|
print_sleep() {
|
||||||
|
[ -n "$4" ] && printf "Status: %s, Charge: %s,Next Check in %s seconds\n" "$3" "$2" "$1"
|
||||||
|
sleep "$1"
|
||||||
|
}
|
||||||
|
|
||||||
while sleep $i; do
|
#declaration
|
||||||
capacity_level=$(cat "$dir"/capacity_level)
|
battery="BAT0" #change accordingly
|
||||||
state=$(cat "$dir"/status)
|
dir="/sys/class/power_supply/$battery/"
|
||||||
case $capacity_level in
|
icon_dir="/usr/share/icons/Papirus/22x22/panel/" #change accordingly
|
||||||
*ritical) i=10 ;;
|
i=0
|
||||||
*ow) i=60 ;;
|
status="normal"
|
||||||
*) i=300 ;;
|
|
||||||
esac
|
#infinite loop
|
||||||
[ -n "$1" ] && printf "Sleep for %s seconds\n" "$i"
|
while charge=$(cat "$dir"/capacity); do
|
||||||
[ "$state" = "Discharging" ] || continue
|
if [ "$(cat "$dir"/status)" = "Charging" ]; then
|
||||||
[ "$capacity_level" != "Normal" ] && notify-send -i "$icon_dir/battery-010.svg" -h "string:x-canonical-private-synchronous:${0##*/}" "$(cat "$dir/capacity") Battery $capacity_level, Please Plugin Charger!!" -u "$capacity_level"
|
i=300 #default polling time, it's 5 minutes
|
||||||
|
else
|
||||||
|
case $charge in
|
||||||
|
[2-9][0-9] | 100)
|
||||||
|
i=300 # 5 minutes
|
||||||
|
status="normal"
|
||||||
|
;;
|
||||||
|
[1-2][0-9])
|
||||||
|
i=150 # 2.5 minutes
|
||||||
|
status="low"
|
||||||
|
;;
|
||||||
|
[5-9])
|
||||||
|
i=60 # every minute
|
||||||
|
status="critical"
|
||||||
|
;;
|
||||||
|
[0-4])
|
||||||
|
i=10 # every 10 seconds
|
||||||
|
status="critical"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# remind appropriately
|
||||||
|
[ "$status" != "normal" ] && remind "$charge" "$status"
|
||||||
|
fi
|
||||||
|
print_sleep "$i" "$charge" "$status" "$1" #pass 'log' as argument to print logs
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ data="$(wl-paste -p | tr '\n' '\`' | sed 's/$/ /g')"
|
|||||||
file="$HOME/.cache/bookmarks"
|
file="$HOME/.cache/bookmarks"
|
||||||
oshi_file="$HOME/.cache/oshi-urls"
|
oshi_file="$HOME/.cache/oshi-urls"
|
||||||
|
|
||||||
menu(){
|
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"
|
bemenu --fn 'Roboto 15' -i -c -W 0.6 -B 3 -l 30 -p "$1" --bdr="#$GLOBAL_ACCENT" --tf="#$GLOBAL_ACCENT" --hf="#$GLOBAL_ACCENT"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ case $1 in
|
|||||||
rm)
|
rm)
|
||||||
data="$(sed '/^$/d' "$file" | nl -n'ln')"
|
data="$(sed '/^$/d' "$file" | nl -n'ln')"
|
||||||
[ -z "$data" ] && notify-send "Bookmark is empty" && exit 0
|
[ -z "$data" ] && notify-send "Bookmark is empty" && exit 0
|
||||||
del=$(printf "%s" "$data" | menu "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)
|
[ -z "$del" ] || (sed -i "${del}d" "$file" && notify-send -i "bookmark-missing" "Bookmark deleted" -u critical)
|
||||||
;;
|
;;
|
||||||
copy)
|
copy)
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"}
|
|||||||
cache=$cachedir/dmenu_run
|
cache=$cachedir/dmenu_run
|
||||||
historyfile=$cachedir/dmenu_history
|
historyfile=$cachedir/dmenu_history
|
||||||
|
|
||||||
ls /bin > "$cache"
|
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 --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 '
|
awk -v histfile=$historyfile '
|
||||||
BEGIN {
|
BEGIN {
|
||||||
FS=OFS="\t"
|
FS=OFS="\t"
|
||||||
while ( (getline < histfile) > 0 ) {
|
while ( (getline < histfile) > 0 ) {
|
||||||
@@ -29,5 +29,5 @@ cut -f2 "$historyfile" "$cache" | bemenu --fixed-height --fn 'JetBrainsMono Nerd
|
|||||||
for (f in history)
|
for (f in history)
|
||||||
print history[f],f | "sort -t '\t' -k1rn >" histfile
|
print history[f],f | "sort -t '\t' -k1rn >" histfile
|
||||||
}
|
}
|
||||||
' \
|
' |
|
||||||
| while read cmd; do ${SHELL:-"/bin/sh"} -c "$cmd" & done
|
while read cmd; do ${SHELL:-"/bin/sh"} -c "$cmd" & done
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor=,highrr,auto,1.6,bitdepth,10
|
monitor=,highrr,auto,1.6,bitdepth,10
|
||||||
#monitor=,2880x1800@60.000999,auto,1.6,bitdepth,10
|
#monitor=,2880x1800@120,auto,1.6,bitdepth,10
|
||||||
|
|
||||||
$hypr_dir="$HOME/.config/hypr"
|
$hypr_dir="$HOME/.config/hypr"
|
||||||
$accent=5E88DD
|
$accent=D81860
|
||||||
|
|
||||||
#envs
|
#envs
|
||||||
#env = LIBVA_DRIVER_NAME,nvidia
|
|
||||||
env = XDG_SESSION_TYPE,wayland
|
env = XDG_SESSION_TYPE,wayland
|
||||||
#env = GBM_BACKEND,nvidia-drm
|
|
||||||
#env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
|
||||||
env = WLR_NO_HARDWARE_CURSORS,1
|
env = WLR_NO_HARDWARE_CURSORS,1
|
||||||
env = GLOBAL_ACCENT,$accent
|
env = GLOBAL_ACCENT,$accent
|
||||||
|
|
||||||
@@ -142,6 +139,7 @@ bind = $mainMod, F4, exec, $HOME/repos_scripts/ani-new
|
|||||||
bind = $mainMod, F5, exec, $hypr_dir/wifi
|
bind = $mainMod, F5, exec, $hypr_dir/wifi
|
||||||
bind = $mainMod, return, exec, [workspace 2] foot
|
bind = $mainMod, return, exec, [workspace 2] foot
|
||||||
bind = $mainMod, Q, exec, $hypr_dir/dmenu_run_history
|
bind = $mainMod, Q, exec, $hypr_dir/dmenu_run_history
|
||||||
|
bind = $mainMod, G, exec, $hypr_dir/rungame
|
||||||
bind = $mainMod, A, exec, [workspace 1] google-chrome-stable
|
bind = $mainMod, A, exec, [workspace 1] google-chrome-stable
|
||||||
bind = $mainMod, C, exec, [workspace 3] code
|
bind = $mainMod, C, exec, [workspace 3] code
|
||||||
bind = $mainMod, E, exec, [workspace 3] pcmanfm
|
bind = $mainMod, E, exec, [workspace 3] pcmanfm
|
||||||
@@ -181,14 +179,14 @@ windowrulev2=workspace 4,class:^(pavucontrol)$
|
|||||||
windowrulev2=workspace 4,class:^(org.freedesktop.Xwayland)$
|
windowrulev2=workspace 4,class:^(org.freedesktop.Xwayland)$
|
||||||
windowrulev2=fullscreen,class:^(org.freedesktop.Xwayland)$
|
windowrulev2=fullscreen,class:^(org.freedesktop.Xwayland)$
|
||||||
windowrulev2=workspace 4,class:^(virt-manager)$
|
windowrulev2=workspace 4,class:^(virt-manager)$
|
||||||
windowrulev2 = bordercolor rgba(D81860FF), xwayland: 1
|
windowrulev2 = bordercolor rgba(64f2a4FF), xwayland: 1
|
||||||
|
|
||||||
#startup applications
|
#startup applications
|
||||||
exec-once=dbus-update-activation-environment --systemd --all
|
exec-once=dbus-update-activation-environment --systemd --all
|
||||||
exec-once=ssh-agent
|
exec-once=ssh-agent
|
||||||
exec-once=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
exec-once=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||||
exec-once=node $HOME/github/arrpc/src > /tmp/arrpc-log
|
exec-once=node $HOME/github/arrpc/src > /tmp/arrpc-log
|
||||||
exec-once=swaybg -i $HOME/.config/wall/18.png
|
exec-once=swaybg -i $HOME/.config/wall/9.png
|
||||||
exec-once=xrdb -merge $HOME/.config/.Xresource
|
exec-once=xrdb -merge $HOME/.config/.Xresource
|
||||||
exec-once=$hypr_dir/workspace 'focus'
|
exec-once=$hypr_dir/workspace 'focus'
|
||||||
exec-once=$hypr_dir/battery
|
exec-once=$hypr_dir/battery
|
||||||
|
|||||||
15
hypr/rungame
Executable file
15
hypr/rungame
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
gamedir="$HOME/games"
|
||||||
|
|
||||||
|
game=$(find "$gamedir" -maxdepth 2 -type f -name '*.exe' -executable | sed "s|$gamedir/||g;/unin.*/d" | bemenu --fn 'JetBrainsMono Nerd Font 15' -i -c -W 0.5 -B 3 -p "PLAY GAME: " -l 15 -P ">>" --bdr="#$GLOBAL_ACCENT" --tf="#$GLOBAL_ACCENT" --hf="#$GLOBAL_ACCENT")
|
||||||
|
|
||||||
|
[ -z "$game" ] && notify-send -h "string:x-canonical-private-synchronous:${0##*/}" -u critical "No game selected" && exit 1
|
||||||
|
|
||||||
|
cd "$(dirname "$gamedir"/"$game")" || (notify-send -h "string:x-canonical-private-synchronous:${0##*/}" -u critical "Directory Not found" && exit 1)
|
||||||
|
|
||||||
|
gamename=$(basename "$game")
|
||||||
|
|
||||||
|
notify-send -h "string:x-canonical-private-synchronous:${0##*/}" -i "wine" "Launching $gamename"
|
||||||
|
|
||||||
|
RADV_PERFTEST=gpl DXVK_ASYNC=1 gamemoderun mangohud wine "$gamename"
|
||||||
@@ -3,5 +3,5 @@
|
|||||||
icon="/usr/share/icons/Papirus/16x16/apps/applets-screenshooter.svg"
|
icon="/usr/share/icons/Papirus/16x16/apps/applets-screenshooter.svg"
|
||||||
killall grim slurp
|
killall grim slurp
|
||||||
[ "$*" = "fullclip" ] && grim - | wl-copy -t image/png && notify-send -i "$icon" "Screenshot copied to clipboard"
|
[ "$*" = "fullclip" ] && grim - | wl-copy -t image/png && notify-send -i "$icon" "Screenshot copied to clipboard"
|
||||||
[ "$*" = "fullsave" ] && grim && notify-send -i "$icon" "Screenshot saved"
|
[ "$*" = "fullsave" ] && grim "$HOME/Pictures/$(date -u "+%Y-%m-%d_%H-%M-%S").png" && notify-send -i "$icon" "Screenshot saved"
|
||||||
[ "$*" = "selclip" ] && grim -g "$(slurp)" - | wl-copy -t image/png && notify-send -i "$icon" "Screenshot copied to clipboard"
|
[ "$*" = "selclip" ] && grim -g "$(slurp)" - | wl-copy -t image/png && notify-send -i "$icon" "Screenshot copied to clipboard"
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ b64() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mkvcinemas() {
|
mkvcinemas() {
|
||||||
local base_url="https://mkvcinemas.zip"
|
local base_url="https://mkvcinemas.rsvp"
|
||||||
local agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
|
local agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
|
||||||
|
|
||||||
[ -z "$*" ] && printf "Search> " && read -r query || query="$*"
|
[ -z "$*" ] && printf "Search> " && read -r query || query="$*"
|
||||||
@@ -60,7 +60,7 @@ mkvcinemas() {
|
|||||||
|
|
||||||
[ -z "$movie" ] && printf "No Movie Found/Selected." && return 1
|
[ -z "$movie" ] && printf "No Movie Found/Selected." && return 1
|
||||||
|
|
||||||
local url=$(curl -s "$base_url/$movie" -e "$base_url" -LA "$agent" | sed -nE 's|.*"gdlink" title="([^"]*)" href="([^"]*)".*|\2~\1|p' data | fzf -0 -d'~' --with-nth 2.. --layout=reverse --height=20 --border | cut -d'~' -f1)
|
local url=$(curl -s "$base_url/$movie" -e "$base_url" -LA "$agent" | sed 's|<span>|\n|g' | sed -nE 's|.*title="([^"]*)" href="([^"]*)" target.*[>|;](.*)</a><.*|\2`[\3] \1|p;' | fzf -0 -d'`' --with-nth 2.. --layout=reverse --height=20 --border | cut -d'`' -f1)
|
||||||
[ -z "$url" ] && printf "No Url Selected" && return 1
|
[ -z "$url" ] && printf "No Url Selected" && return 1
|
||||||
xdg-open "$url"
|
xdg-open "$url"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user