mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
things occurred
This commit is contained in:
33
hypr/dmenu_run_history
Executable file
33
hypr/dmenu_run_history
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
|
||||
cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"}
|
||||
cache=$cachedir/dmenu_run
|
||||
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 ">>" \
|
||||
| awk -v histfile=$historyfile '
|
||||
BEGIN {
|
||||
FS=OFS="\t"
|
||||
while ( (getline < histfile) > 0 ) {
|
||||
count=$1
|
||||
sub("^[0-9]+\t","")
|
||||
fname=$0
|
||||
history[fname]=count
|
||||
}
|
||||
close(histfile)
|
||||
}
|
||||
|
||||
{
|
||||
history[$0]++
|
||||
print
|
||||
}
|
||||
|
||||
END {
|
||||
if(!NR) exit
|
||||
for (f in history)
|
||||
print history[f],f | "sort -t '\t' -k1rn >" histfile
|
||||
}
|
||||
' \
|
||||
| while read cmd; do ${SHELL:-"/bin/sh"} -c "$cmd" & done
|
||||
@@ -124,7 +124,7 @@ 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, dmenu_run_history
|
||||
bind = $mainMod, Q, exec, $hypr_dir/dmenu_run_history
|
||||
bind = $mainMod, A, exec, [workspace 1] google-chrome-stable
|
||||
bind = $mainMod, C, exec, [workspace 3] code
|
||||
bind = $mainMod, E, exec, [workspace 3] pcmanfm
|
||||
@@ -132,8 +132,9 @@ 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, F11, exec, $hypr_dir/info
|
||||
bind = $mainMod, F10, exec, $hypr_dir/bluetooth
|
||||
#bind = $mainMod, F10, exec, $hypr_dir/bluetooth
|
||||
bind = $mainMod, F6, exec, $hypr_dir/workspace
|
||||
bind = $mainMod SHIFT, F6, exec, $hypr_dir/workspace "toggle"
|
||||
bind = $mainMod, F1, exec, $hypr_dir/screenshot 'selclip'
|
||||
@@ -143,16 +144,14 @@ bind = $mainMod, F12, exec, $hypr_dir/date
|
||||
bind = $mainMod, Delete, exec, $hypr_dir/workspace 'list'
|
||||
|
||||
#media keys
|
||||
#binde=, XF86AudioRaiseVolume, exec, pamixer -i 2 && $hypr_dir/volume
|
||||
binde=$mainMod, F2, exec, pamixer -d 2 && $hypr_dir/volume #my XF86AudioLowerVolume doesn't work
|
||||
binde=$mainMod, F3, exec, pamixer -i 2 && $hypr_dir/volume #my XF86AudioLowerVolume doesn't work,So I don't use XF86AudioRaiseVolume, gives me confusion
|
||||
#binde=, XF86AudioMute, exec, pamixer -t && $hypr_dir/volume #doesn't work either
|
||||
binde=$mainMod, F8, exec, echo cycle pause | socat - "/tmp/yt-music/yt-music-mpvsocket"
|
||||
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=$mainMod SHIFT, F8, exec, $HOME/repos_scripts/yt-music search_play
|
||||
binde=$mainMod, F9, exec, $HOME/repos_scripts/yt-music play_next
|
||||
binde=$mainMod SHIFT, F9, exec, $HOME/repos_scripts/yt-music play_next menu
|
||||
binde=$mainMod, F10, exec, $HOME/repos_scripts/yt-music search_play
|
||||
binde=, XF86AudioNext, exec, $HOME/repos_scripts/yt-music play_next
|
||||
binde=, XF86AudioPrev, exec, $HOME/repos_scripts/yt-music play_next menu
|
||||
binde=, XF86MonBrightnessDown, exec, light -U 2 && notify-send -i "lol" "☀️ $(light -G | cut -d'.' -f1)" -t 1000 -h "string:x-canonical-private-synchronous:brightness"
|
||||
binde=, XF86MonBrightnessUp, exec, light -A 2 && notify-send -i "lol" "☀️ $(light -G | cut -d'.' -f1)" -t 1000 -h "string:x-canonical-private-synchronous:brightness"
|
||||
|
||||
@@ -173,4 +172,4 @@ exec-once=swaybg -i $HOME/.config/wall/12.jpg
|
||||
exec-once=xrdb -merge $HOME/.config/.Xresource
|
||||
exec-once=$hypr_dir/workspace 'focus'
|
||||
exec-once=sleep 2 && $hypr_dir/workspace
|
||||
exec-once=sleep 2 && google-chrome-stable 'https://web.skype.com/?openPstnPage=true'
|
||||
exec-once=google-chrome-stable
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
vol_int=$(pamixer --get-volume)
|
||||
vol_icon="low"
|
||||
[ "$vol_int" -gt 0 ] && pamixer -u || pamixer -m
|
||||
#[ "$vol_int" -gt 0 ] && pamixer -u || pamixer -m
|
||||
[ "$vol_int" -gt 33 ] && vol_icon="medium"
|
||||
[ "$vol_int" -gt 66 ] && vol_icon="high"
|
||||
pamixer --get-mute | sh && vol_icon="muted"
|
||||
|
||||
@@ -31,7 +31,7 @@ case $1 in
|
||||
#only lists the open applications with their workspace number so u can safely close them
|
||||
i=4
|
||||
while [ $i -gt 0 ]; do
|
||||
notify-send -i "lol" "$(hyprctl clients | sed -nE 's_.*class: ([^ ]*).*_\1_p;s_.*workspace: ([^ ]*).*_workspace \1 : _p' | sed 'N;s/\n/ /')" -h "string:x-canonical-private-synchronous:${0##*/}" -t 1500
|
||||
notify-send -i "lol" "Running Apps" "$(hyprctl clients | tr '\n' ',' | sed 's|,,|\n|g' | sed -nE 's|.*workspace: ([0-9]).*class: ([^,]*).*xwayland: ([^,]).*|workspace \1: \2 (xway: \3)|p')" -h "string:x-canonical-private-synchronous:${0##*/}" -t 1500
|
||||
: $((i -= 1))
|
||||
sleep 1
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user