mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
needs more cow bell
This commit is contained in:
@@ -29,7 +29,9 @@ case $1 in
|
||||
[ -z "$del" ] || (sed -i "${del}d" "$file" && notify-send -e -i "bookmark-missing" "Bookmark deleted" -u critical)
|
||||
;;
|
||||
copy)
|
||||
sed '/^$/d' "$file" "$oshi_file" | sed -E 's/.*DL: ([^|]*).*/\1/g' | menu "COPY-bookmark :" | tr '\`' '\n' | wl-copy && notify-send -e "Copied to clipboard" -i "com.github.davidmhewitt.clipped"
|
||||
data=$(sed '/^$/d' "$file" "$oshi_file" | sed -E 's/.*DL: ([^|]*).*/\1/g' | menu "COPY-bookmark :" | tr '\`' '\n')
|
||||
[ -z "$data" ] && notify-send -e -u critical "No Bookmark selected" && exit 1
|
||||
printf '%s' "$data" | wl-copy && notify-send -e "Copied to clipboard" -i "com.github.davidmhewitt.clipped"
|
||||
;;
|
||||
*)
|
||||
result="$(sed '/^$/d' "$file" "$oshi_file" | sed -E 's/.*DL: ([^|]*).*/\1/g' | menu "Put-bookmark :" | tr '\`' '\n')"
|
||||
|
||||
@@ -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=HDMI-A-1,3840x2160,auto,2,bitdepth,10
|
||||
|
||||
$hypr_dir="$HOME/.config/hypr"
|
||||
$accent=6FAAFF
|
||||
@@ -185,42 +185,41 @@ bind = $mainMod, F12, exec, $hypr_dir/date
|
||||
bind = $mainMod, Delete, exec, $hypr_dir/workspace 'list'
|
||||
|
||||
#media keys
|
||||
binde=, XF86AudioLowerVolume, exec, pamixer --set-limit 140 --allow-boost -d 2 && $hypr_dir/volume
|
||||
binde=, XF86AudioRaiseVolume, exec, pamixer --set-limit 140 --allow-boost -i 2 && $hypr_dir/volume
|
||||
binde=, XF86AudioMute, exec, pamixer --set-limit 140 --allow-boost -t && $hypr_dir/volume
|
||||
binde=, XF86AudioPlay, exec, echo cycle pause | socat - "/tmp/yt-music/yt-music-mpvsocket"
|
||||
binde=, XF86AudioPause, exec, echo cycle pause | socat - "/tmp/yt-music/yt-music-mpvsocket"
|
||||
binde=, XF86Launch2, exec, $HOME/repos_scripts/yt-music search_play #why not :)
|
||||
binde=, XF86AudioNext, exec, $HOME/repos_scripts/yt-music play_next
|
||||
binde=, XF86AudioPrev, exec, $HOME/repos_scripts/yt-music play_next menu
|
||||
binde=, XF86MonBrightnessUp, exec, $hypr_dir/brightness '+'
|
||||
binde=, XF86MonBrightnessDown, exec, $hypr_dir/brightness '-'
|
||||
binde =, XF86AudioLowerVolume, exec, pamixer --set-limit 140 --allow-boost -d 2 && $hypr_dir/volume
|
||||
binde =, XF86AudioRaiseVolume, exec, pamixer --set-limit 140 --allow-boost -i 2 && $hypr_dir/volume
|
||||
binde =, XF86AudioMute, exec, pamixer --set-limit 140 --allow-boost -t && $hypr_dir/volume
|
||||
binde =, XF86AudioPlay, exec, echo cycle pause | socat - "/tmp/yt-music/yt-music-mpvsocket"
|
||||
binde =, XF86AudioPause, exec, echo cycle pause | socat - "/tmp/yt-music/yt-music-mpvsocket"
|
||||
binde =, XF86Launch2, exec, $HOME/repos_scripts/yt-music search_play #why not :)
|
||||
binde =, XF86AudioNext, exec, $HOME/repos_scripts/yt-music play_next
|
||||
binde =, XF86AudioPrev, exec, $HOME/repos_scripts/yt-music play_next menu
|
||||
binde =, XF86MonBrightnessUp, exec, $hypr_dir/brightness '+'
|
||||
binde =, XF86MonBrightnessDown, exec, $hypr_dir/brightness '-'
|
||||
|
||||
#windows rules
|
||||
windowrulev2=workspace 1,class:^(google-chrome)$
|
||||
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.freedesktop.Xwayland)$
|
||||
windowrulev2=fullscreen,class:^(org.freedesktop.Xwayland)$
|
||||
windowrulev2=workspace 4,class:^(virt-manager)$
|
||||
windowrulev2=bordercolor rgba(64f2a4FF), xwayland: 1
|
||||
windowrulev2 = workspace 1,class:^(google-chrome)$
|
||||
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.freedesktop.Xwayland)$
|
||||
windowrulev2 = fullscreen,class:^(org.freedesktop.Xwayland)$
|
||||
windowrulev2 = workspace 4,class:^(virt-manager)$
|
||||
windowrulev2 = bordercolor rgba(64f2a4FF), xwayland: 1
|
||||
|
||||
#workspace rules
|
||||
#workspace = 1, on-created-empty:-chrome-stable
|
||||
workspace = 1, on-created-empty:$browser
|
||||
workspace = 2, on-created-empty:foot
|
||||
workspace = special, on-created-empty:[float] foot
|
||||
|
||||
#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/3.png -m fill
|
||||
exec-once=sleep 5 && xrdb -merge $HOME/.config/.Xresource
|
||||
exec-once=$hypr_dir/workspace 'focus'
|
||||
exec-once=$hypr_dir/battery
|
||||
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/3.png -m fill
|
||||
exec-once = sleep 5 && xrdb -merge $HOME/.config/.Xresource
|
||||
exec-once = $hypr_dir/workspace 'focus'
|
||||
exec-once = $hypr_dir/battery
|
||||
#exec-once=sleep 2 && $hypr_dir/workspace
|
||||
|
||||
@@ -5,6 +5,7 @@ top -ibn5 -d1 | while read -r line;do
|
||||
new_mem=$(printf "%s" "$line" | sed -nE 's_MiB Mem :[[:space:]]*(.*) total,.*,[[:space:]]*(.*) used,.*_\2 MB / \1 MB_p')
|
||||
cpu=${new_cpu:-$cpu}
|
||||
mem=${new_mem:-$mem}
|
||||
[ -f "/tmp/yt-music/current" ] && . /tmp/yt-music/current
|
||||
if [ -n "$new_mem" ];then
|
||||
|
||||
temp=$(cat /sys/class/thermal/thermal_zone0/temp)
|
||||
@@ -14,6 +15,6 @@ top -ibn5 -d1 | while read -r line;do
|
||||
charge=$(cat /sys/class/power_supply/BAT0/capacity)
|
||||
[ "$bat_stats" = "Discharging" ] && { [ "$charge" -lt 20 ] && bat_icon=🪫 || bat_icon=🔋 ;} || bat_icon=🔌
|
||||
[ "$vol_stats" = "muted" ] && vol_icon=🔇 || vol_icon=🔊
|
||||
notify-send -e -i "lol" "<----------(STATS)---------->" "🧠 CPU usage : $cpu\n🌡️ Cpu Temp : $temp °C\n🔳 RAM : $mem\n$bat_icon Battery : $charge (${bat_stats})\n☀️ Brightness : $("$(dirname "$0")"/brightness s)%\n$vol_icon Volume : $vol_stats\n🎵 $(cut -d ">" -f1 /tmp/yt-music/current 2>/dev/null | cut -d":" -f2)" -h "string:x-canonical-private-synchronous:${0##*/}" -t 1500 &
|
||||
notify-send -e -i "lol" "<----------(STATS)---------->" "🧠 CPU usage : $cpu\n🌡️ Cpu Temp : $temp °C\n🔳 RAM : $mem\n$bat_icon Battery : $charge (${bat_stats})\n☀️ Brightness : $("$(dirname "$0")"/brightness s)%\n$vol_icon Volume : $vol_stats\n🎵 $SONG - $ARTIST" -h "string:x-canonical-private-synchronous:${0##*/}" -t 1500 &
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user