mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
pgsql is more strict, increase the hackiness up to 11
This commit is contained in:
36
hypr/bemoji
Executable file
36
hypr/bemoji
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
menu() {
|
||||
bemenu --fn 'Cascadia Mono 15' -i -c -W "0.${2:-4}" -B 3 -l 20 -p "$1" --bdr="#$GLOBAL_ACCENT" --tf="#$GLOBAL_ACCENT" --hf="#$GLOBAL_ACCENT"
|
||||
}
|
||||
|
||||
notify() {
|
||||
notify-send "$1" -h "string:x-canonical-private-synchronous:${0##*/}" -i "$2" -u "${3:-normal}"
|
||||
}
|
||||
|
||||
download_emoji_file(){
|
||||
notify "Downloading Emoji Database..." "downloader"
|
||||
if curl -sL "https://unicode.org/Public/emoji/latest/emoji-test.txt" | sed -nE 's|.*fully-qualified.*# (.*)|\1|p' > "$1"; then
|
||||
notify "Emoji Database Downloaded" "downloader"
|
||||
else
|
||||
notify "Something Went wrong" "downloader" "critical"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
emoji_file="${XDG_CACHE_DIR:-$HOME/.cache}/emoji"
|
||||
|
||||
# check emoji file
|
||||
[ -f "$emoji_file" ] || download_emoji_file "$emoji_file"
|
||||
|
||||
# copy and write emoji to input
|
||||
emoji=$(menu "EMOJI : " < "$emoji_file" | cut -d' ' -f1 | tr -d '\n')
|
||||
|
||||
# validation
|
||||
[ -z "$emoji" ] && notify "No Emoji Selected" "" "critical" && exit 1
|
||||
|
||||
# copy to clipboard
|
||||
printf "%s" "$emoji" | wl-copy && notify "Copied: $emoji" "lol"
|
||||
|
||||
# enter in text
|
||||
wtype -d 10 "$emoji"
|
||||
@@ -7,7 +7,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 ">>" --bdr="#$GLOBAL_ACCENT" --tf="#$GLOBAL_ACCENT" --hf="#$GLOBAL_ACCENT" |
|
||||
awk -v histfile=$historyfile '
|
||||
awk -v histfile="$historyfile" '
|
||||
BEGIN {
|
||||
FS=OFS="\t"
|
||||
while ( (getline < histfile) > 0 ) {
|
||||
|
||||
@@ -4,9 +4,11 @@ monitor=,highrr,auto,1.5,bitdepth,10
|
||||
|
||||
$hypr_dir="$HOME/.config/hypr"
|
||||
$accent=D81860
|
||||
#$browser=google-chrome-stable
|
||||
$browser=firefox
|
||||
|
||||
#envs
|
||||
env = BROWSER,google-chrome-stable
|
||||
env = BROWSER,$browser
|
||||
env = EDITOR,nvim
|
||||
env = GDK_BACKEND,wayland,x11
|
||||
env = GDK_SCALE,2 #xwayland fractional scaling
|
||||
@@ -88,6 +90,7 @@ animations {
|
||||
animation = workspaces, 1, 6, default
|
||||
}
|
||||
|
||||
|
||||
dwindle {
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
@@ -162,7 +165,8 @@ 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, SPACE, exec, $hypr_dir/bemoji
|
||||
bind = $mainMod, A, exec, [workspace 1] $browser
|
||||
bind = $mainMod, C, exec, [workspace 3] code
|
||||
bind = $mainMod, E, exec, [workspace 3] pcmanfm
|
||||
bind = $mainMod, B, exec, $hypr_dir/bkmark "add"
|
||||
@@ -186,7 +190,7 @@ binde=, XF86AudioRaiseVolume, exec, pamixer --set-limit 140 --allow-boost -i 2 &
|
||||
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, F10, exec, $HOME/repos_scripts/yt-music search_play
|
||||
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 '+'
|
||||
@@ -194,6 +198,7 @@ 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)
|
||||
@@ -204,8 +209,10 @@ windowrulev2=workspace 4,class:^(virt-manager)$
|
||||
windowrulev2=bordercolor rgba(64f2a4FF), xwayland: 1
|
||||
|
||||
#workspace rules
|
||||
workspace = 1, on-created-empty:google-chrome-stable
|
||||
#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
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
|
||||
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")
|
||||
games=$(find "$gamedir" -maxdepth 2 -type f -name '*.exe' -executable | sed "s|$gamedir/||g;/[U|u]nin.*/d")
|
||||
|
||||
[ -z "$games" ] && notify-send -u critical "No games installed" && exit 1
|
||||
game=$(printf '%s\n' "$games" | 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user