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]
|
||||
history=@Invalid()
|
||||
lastVisited=file:///dev
|
||||
qtVersion=5.15.12
|
||||
history=file:///opt/zoom
|
||||
lastVisited=file:///opt/zoom
|
||||
qtVersion=5.15.15
|
||||
shortcuts=file:, file:///home/tanveer
|
||||
sidebarWidth=84
|
||||
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)
|
||||
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)
|
||||
viewMode=Detail
|
||||
|
||||
[Qt]
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
# Padding between text and separator.
|
||||
padding = 8
|
||||
|
||||
highlight = "#5E88DD"
|
||||
highlight = "#D81860"
|
||||
|
||||
# Horizontal padding.
|
||||
horizontal_padding = 8
|
||||
@@ -93,7 +93,7 @@
|
||||
frame_width = 3
|
||||
|
||||
# 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.
|
||||
# If value is greater than 0, separator_height will be ignored and a border
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
:y "50"
|
||||
:width "30%"
|
||||
:height "40px"
|
||||
:anchor "top left")
|
||||
:anchor "bottom left")
|
||||
:stacking "bg"
|
||||
:reserve (struts :distance "10px" :side "bottom")
|
||||
:windowtype "dock"
|
||||
|
||||
@@ -104,7 +104,7 @@ alpha=0.9
|
||||
# scrollback-indicator=<regular0> <bright4> # black-on-bright-blue
|
||||
# search-box-no-match=<regular0> <regular1> # black-on-red
|
||||
# search-box-match=<regular0> <regular3> # black-on-yellow
|
||||
# urls=<regular3>
|
||||
#urls=A9DC76
|
||||
|
||||
[csd]
|
||||
# preferred=server
|
||||
|
||||
55
hypr/battery
55
hypr/battery
@@ -1,20 +1,47 @@
|
||||
#!/bin/sh
|
||||
|
||||
i=10
|
||||
dir="/sys/class/power_supply/BAT0/"
|
||||
icon_dir="/usr/share/icons/Papirus/22x22/panel/"
|
||||
remind() {
|
||||
notify-send -i "$icon_dir/battery-010.svg" -h "string:x-canonical-private-synchronous:${0##*/}" "$1 % Battery $2, Please Plugin Charger!!" -u "$2"
|
||||
}
|
||||
|
||||
[ -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
|
||||
capacity_level=$(cat "$dir"/capacity_level)
|
||||
state=$(cat "$dir"/status)
|
||||
case $capacity_level in
|
||||
*ritical) i=10 ;;
|
||||
*ow) i=60 ;;
|
||||
*) i=300 ;;
|
||||
#declaration
|
||||
battery="BAT0" #change accordingly
|
||||
dir="/sys/class/power_supply/$battery/"
|
||||
icon_dir="/usr/share/icons/Papirus/22x22/panel/" #change accordingly
|
||||
i=0
|
||||
status="normal"
|
||||
|
||||
#infinite loop
|
||||
while charge=$(cat "$dir"/capacity); do
|
||||
if [ "$(cat "$dir"/status)" = "Charging" ]; then
|
||||
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
|
||||
[ -n "$1" ] && printf "Sleep for %s seconds\n" "$i"
|
||||
[ "$state" = "Discharging" ] || continue
|
||||
[ "$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"
|
||||
|
||||
# remind appropriately
|
||||
[ "$status" != "normal" ] && remind "$charge" "$status"
|
||||
fi
|
||||
print_sleep "$i" "$charge" "$status" "$1" #pass 'log' as argument to print logs
|
||||
done
|
||||
|
||||
@@ -6,8 +6,8 @@ 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" \
|
||||
| awk -v histfile=$historyfile '
|
||||
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"
|
||||
while ( (getline < histfile) > 0 ) {
|
||||
@@ -29,5 +29,5 @@ cut -f2 "$historyfile" "$cache" | bemenu --fixed-height --fn 'JetBrainsMono Nerd
|
||||
for (f in history)
|
||||
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/
|
||||
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"
|
||||
$accent=5E88DD
|
||||
$accent=D81860
|
||||
|
||||
#envs
|
||||
#env = LIBVA_DRIVER_NAME,nvidia
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
#env = GBM_BACKEND,nvidia-drm
|
||||
#env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||
env = WLR_NO_HARDWARE_CURSORS,1
|
||||
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, return, exec, [workspace 2] foot
|
||||
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, C, exec, [workspace 3] code
|
||||
bind = $mainMod, E, exec, [workspace 3] pcmanfm
|
||||
@@ -181,14 +179,14 @@ windowrulev2=workspace 4,class:^(pavucontrol)$
|
||||
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
|
||||
windowrulev2 = bordercolor rgba(64f2a4FF), 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/18.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=$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"
|
||||
killall grim slurp
|
||||
[ "$*" = "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"
|
||||
|
||||
@@ -51,7 +51,7 @@ b64() {
|
||||
}
|
||||
|
||||
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"
|
||||
|
||||
[ -z "$*" ] && printf "Search> " && read -r query || query="$*"
|
||||
@@ -60,7 +60,7 @@ mkvcinemas() {
|
||||
|
||||
[ -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
|
||||
xdg-open "$url"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user