Browse Source

Added hints

pull/10/head
JaKooLit 2 years ago
parent
commit
cb5e0b8790
  1. 5
      config/hypr/configs/Keybinds.conf
  2. 2
      config/hypr/scripts/Help.sh
  3. 37
      config/hypr/scripts/KeyHints.sh
  4. 2
      config/hypr/scripts/Weather.py
  5. 11
      config/hypr/scripts/Wofi.sh
  6. 87
      config/hypr/scripts/WofiBeats.sh
  7. 11
      config/hypr/scripts/WofiBig.sh
  8. 1868
      config/hypr/scripts/WofiEmoji.sh
  9. 2
      config/waybar/configs/config-default
  10. 8
      config/waybar/modules

5
config/hypr/configs/Keybinds.conf

@ -43,7 +43,8 @@ bind = $mainMod, W, exec, $wallpaper swaybg
bind = $mainMod SHIFT, W, exec, $scriptsDir/WaybarStyles.sh
bind = $mainMod CTRL, W, exec, $scriptsDir/WallpaperSelect.sh
bind = $mainMod ALT, W, exec, $scriptsDir/ChangeLayoutMenu.sh
bind = $mainMod, H, exec, $scriptsDir/Help.sh
bind = $mainMod SHIFT, H, exec, $scriptsDir/Help.sh
bind = $mainMod, H, exec, $scriptsDir/KeyHints.sh
bind = $mainMod, E, exec, $scriptsDir/QuickEdit.sh
bind = $mainMod, B, exec, killall -SIGUSR1 waybar # Toggle hide/show waybar
bind = $mainMod SHIFT, G, exec, $scriptsDir/GameMode.sh
@ -61,7 +62,7 @@ bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod CTRL, Return, layoutmsg, swapwithmaster
bind = $mainMod, Space, exec, $scriptsDir/ChangeLayout.sh
bind = $mainMod ALT, V, exec, $scriptsDir/ClipManager.sh
bind = $mainMod SHIFT, F, exec, hyprctl dispatch workspaceopt allfloat
# group
bind = $mainMod, G, togglegroup
bind = $mainMod, tab, workspace, m+1

2
config/hypr/scripts/Help.sh

@ -1,3 +1,3 @@
#!/bin/bash
foot -e vim ~/.config/hypr/HelpFile.md
mousepad ~/.config/hypr/HelpFile.md

37
config/hypr/scripts/KeyHints.sh

@ -0,0 +1,37 @@
#!/bin/sh
yad --width=1000 --height=800 \
--center \
--title="Keybindings" \
--no-buttons \
--list \
--column=Key: \
--column=Description: \
--column=Command: \
--timeout=30 \
--timeout-indicator=bottom \
"ESC" "close this app" "" "=" "SUPER KEY" "(SUPER KEY)" \
" enter" "Terminal" "(kitty)" \
" D" "App Launcher" "(rofi)" \
" T" "Open File Manager" "(Thunar)" \
" Q | Shift Q" "close focused app" "(kill)" \
" Alt V" "Clipboard Manager" "(cliphist)" \
" CTRL W" "Choose wallpaper" "(swww)" \
" W" "Random wallpaper" "(swww)" \
" ALT W" "Choose waybar layout" "(waybar layout)" \
" SHIFT W" "cycle waybar styles" "(waybar styles)" \
" Print" "screenshot" "(grim)" \
" Shift Print" "screenshot region" "(grim + slurp)" \
" Shift S" "screenshot region" "(swappy)" \
"CTRL ALT P" "power-menu" "(wlogout)" \
"CTRL ALT Del" "Hyprland Exit" "(SAVE YOUR WORK!!!)" \
" F" "Fullscreen" "Toggles to full screen" \
" Spacebar" "Toggle Dwindle | Master Layout" "Hyprland Layout" \
" Shift F" "Toggle all windows to float" "" \
" SHIFT H" "Launch a small Help File" "" \
" H" "Launch this app" "" \
" E" "View or EDIT Keybinds, Settings, Monitor" "" \
"" "" "" \
"" "This window will auto-close in 30 secs" ""\

2
config/hypr/scripts/Weather.py

@ -2,7 +2,7 @@
# From https://raw.githubusercontent.com/rxyhn/dotfiles/main/home/rxyhn/modules/desktop/waybar/scripts/waybar-wttr.py
## ensure to insert city inside ""
city = " "
city = ""
import json
import requests
from datetime import datetime

11
config/hypr/scripts/Wofi.sh

@ -1,11 +0,0 @@
#!/bin/bash
CONFIG="$HOME/.config/wofi/config"
STYLE="$HOME/.config/wofi/style.css"
COLORS="$HOME/.config/wofi/colors"
if [[ ! $(pidof wofi) ]]; then
wofi --show drun --prompt 'Search...' --conf ${CONFIG} --style ${STYLE} --color ${COLORS}
else
pkill wofi
fi

87
config/hypr/scripts/WofiBeats.sh

@ -1,87 +0,0 @@
#!/bin/bash
## Files
CONFIG="$HOME/.config/wofi/WofiBig/config"
STYLE="$HOME/.config/wofi/style.css"
COLORS="$HOME/.config/wofi/colors"
iDIR="$HOME/.config/dunst/icons"
# wofi window config (in %)
WIDTH=12
HEIGHT=30
## Wofi Command
wofi_command="wofi --show dmenu \
--prompt choose...
--conf $CONFIG --style $STYLE --color $COLORS \
--width=$WIDTH% --height=$HEIGHT% \
--cache-file=/dev/null \
--hide-scroll --no-actions \
--matching=fuzzy"
notification(){
notify-send -h string:x-canonical-private-synchronous:sys-notify -u normal -i "$iDIR/music.png" "Playing now: " "$@"
}
menu(){
printf "1. Lofi Girl\n"
printf "2. 96.3 Easy Rock - FM Radio\n"
printf "3. Ghibli Music (Instrumental)\n"
printf "4. Top Music 2023\n"
printf "5. Chillhop\n"
printf "6. SmoothChill\n"
printf "7. Relaxing Music\n"
printf "8. Youtube Remix\n"
printf "9. Korean Drama OST"
}
main() {
choice=$(menu | ${wofi_command} | cut -d. -f1)
case $choice in
1)
notification "Lofi Girl ☕🎶";
mpv "https://play.streamafrica.net/lofiradio"
return
;;
2)
notification "96.3 Easy Rock 📻🎶";
mpv "https://radio-stations-philippines.com/easy-rock"
return
;;
3)
notification "Ghibli Music 🎻🎶";
mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLNi74S754EXbrzw-IzVhpeAaMISNrzfUy&si=rqnXCZU5xoFhxfOl"
return
;;
4)
notification "Top Music 2023 ☕🎶";
mpv --shuffle --vid=no "https://youtube.com/playlist?list=PL6k9a6aYB2zk0qSbXR-ZEiwqgdHymsRtQ"
return
;;
5)
notification "Chillhop ☕🎶";
mpv "http://stream.zeno.fm/fyn8eh3h5f8uv"
return
;;
6)
notification "SmoothChill ☕🎶";
mpv "https://media-ssl.musicradio.com/SmoothChill"
return
;;
7)
notification "Relaxing Music ☕🎶";
mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLMIbmfP_9vb8BCxRoraJpoo4q1yMFg4CE"
return
;;
8)
notification "Youtube Remix 📻🎶";
mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLeqTkIUlrZXlSNn3tcXAa-zbo95j0iN-0"
return
;;
9)
notification "Korean Drama OST 📻🎶";
mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLUge_o9AIFp4HuA-A3e3ZqENh63LuRRlQ"
return
;;
esac
}
pkill -f http && notify-send -h string:x-canonical-private-synchronous:sys-notify -u low -i "$iDIR/music.png" "Online Music stopped" || main

11
config/hypr/scripts/WofiBig.sh

@ -1,11 +0,0 @@
#!/bin/bash
CONFIG="$HOME/.config/wofi/WofiBig/config"
STYLE="$HOME/.config/wofi/style.css"
COLORS="$HOME/.config/wofi/colors"
if [[ ! $(pidof wofi) ]]; then
wofi --show drun --prompt 'Search...' --conf ${CONFIG} --style ${STYLE} --color ${COLORS}
else
pkill wofi
fi

1868
config/hypr/scripts/WofiEmoji.sh

File diff suppressed because it is too large Load Diff

2
config/waybar/configs/config-default

@ -36,6 +36,8 @@
"custom/light_dark",
"custom/separator#dot-line",
"custom/lock",
"custom/separator#dot-line",
"custom/keybinds",
],
"modules-right": [

8
config/waybar/modules

@ -7,7 +7,7 @@
//"format-icons": ["󰃞", "󰃟", "󰃠"],
"format": "{icon}",
"format-icons": ["󰛩", "󱩎", "󱩏", "󱩑", "󱩒", "󱩓", "󱩔", "󱩕", "󰛨"],
"tooltip-format": "{percent}%",
"tooltip-format": "backlight {percent}%",
"icon-size": 10,
"on-click": "",
"on-click-middle": "",
@ -310,10 +310,10 @@
"tooltip-format": "Change wallpaper or style"
},
"custom/keybindings": {
"format":"",
"custom/keybinds": {
"format":"󰺁 HINT!",
"tooltip": false,
"on-click": "~/.config/hypr/scripts/Help.sh",
"on-click": "~/.config/hypr/scripts/KeyHints.sh",
},
"custom/light_dark": {

Loading…
Cancel
Save