aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2024-01-02 01:21:53 +0900
committerGitHub <noreply@github.com>2024-01-02 01:21:53 +0900
commit1acea95602ecd292f4c806ce946c0ab33176e4ce (patch)
treea43d4ccfd313a4effa92919fef8d96934c23bac8 /config/hypr
parent3d0283f6c0f323bf504d99aadb0019e6357048a8 (diff)
parente2bcb89ce79d0a0469e3eb362cc0cc802ddac208 (diff)
Merge pull request #116 from JaKooLit/development
Development
Diffstat (limited to 'config/hypr')
-rw-r--r--config/hypr/UserConfigs/00-Readme9
-rw-r--r--config/hypr/UserConfigs/Laptops.conf3
-rw-r--r--config/hypr/UserConfigs/Monitors.conf2
-rw-r--r--config/hypr/UserConfigs/Startup_Apps.conf10
-rwxr-xr-x[-rw-r--r--]config/hypr/UserScripts/00-Readme0
-rwxr-xr-xconfig/hypr/UserScripts/QuickEdit.sh (renamed from config/hypr/scripts/QuickEdit.sh)23
-rwxr-xr-xconfig/hypr/UserScripts/RofiBeats.sh (renamed from config/hypr/scripts/RofiBeats.sh)0
-rwxr-xr-xconfig/hypr/UserScripts/Sunset.sh5
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperAutoChange.sh (renamed from config/hypr/scripts/WallpaperRandom.sh)2
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperRandom.sh26
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperSelect.sh (renamed from config/hypr/scripts/WallpaperSelect.sh)14
-rw-r--r--config/hypr/configs/Keybinds.conf25
-rw-r--r--config/hypr/hyprland.conf7
-rwxr-xr-xconfig/hypr/scripts/AirplaneMode.sh2
-rwxr-xr-xconfig/hypr/scripts/Brightness.sh2
-rwxr-xr-xconfig/hypr/scripts/BrightnessKbd.sh2
-rwxr-xr-xconfig/hypr/scripts/ChangeBlur.sh2
-rwxr-xr-xconfig/hypr/scripts/ChangeLayout.sh2
-rwxr-xr-xconfig/hypr/scripts/ClipManager.sh4
-rwxr-xr-xconfig/hypr/scripts/DarkLight.sh5
-rwxr-xr-xconfig/hypr/scripts/GameMode.sh2
-rwxr-xr-xconfig/hypr/scripts/KeyHints.sh10
-rwxr-xr-xconfig/hypr/scripts/LockScreen.sh2
-rwxr-xr-xconfig/hypr/scripts/MediaCtrl.sh2
-rwxr-xr-xconfig/hypr/scripts/Polkit-NixOS.sh2
-rwxr-xr-xconfig/hypr/scripts/Polkit.sh2
-rwxr-xr-xconfig/hypr/scripts/PortalHyprland.sh3
-rwxr-xr-xconfig/hypr/scripts/PywalSwww.sh2
-rwxr-xr-xconfig/hypr/scripts/Refresh.sh10
-rwxr-xr-xconfig/hypr/scripts/RefreshNoWaybar.sh11
-rwxr-xr-xconfig/hypr/scripts/RofiEmoji.sh3
-rwxr-xr-xconfig/hypr/scripts/ScreenShot.sh2
-rwxr-xr-xconfig/hypr/scripts/SwitchKeyboardLayout.sh4
-rwxr-xr-xconfig/hypr/scripts/TouchPad.sh6
-rwxr-xr-xconfig/hypr/scripts/Volume.sh2
-rwxr-xr-xconfig/hypr/scripts/Wallpaper.sh24
-rwxr-xr-xconfig/hypr/scripts/WaybarCava.sh32
-rwxr-xr-xconfig/hypr/scripts/WaybarLayout.sh12
-rwxr-xr-xconfig/hypr/scripts/WaybarStyles.sh16
-rwxr-xr-xconfig/hypr/scripts/Wlogout.sh11
-rw-r--r--config/hypr/v2.2.3 (renamed from config/hypr/v2.2.2)0
41 files changed, 202 insertions, 101 deletions
diff --git a/config/hypr/UserConfigs/00-Readme b/config/hypr/UserConfigs/00-Readme
index 315e3376..481eeace 100644
--- a/config/hypr/UserConfigs/00-Readme
+++ b/config/hypr/UserConfigs/00-Readme
@@ -1,9 +1,16 @@
+www.github.com/JaKooLit
+
Hyprland-Dots v2.2.2
-1.) Suggest not to rename files in this folder. As this is connected and being sourced from hyprland.conf in ~/.config/hypr
+1.) Suggest not to rename any files in this folder. As this is connected and being sourced from hyprland.conf in ~/.config/hypr
2.) This folder, along with UserScripts folder will NOT be touch during update.
3.) However, if hyprland has a big change in settings, i.e., blur section is moved into another group, you should managed the change.
+4.) Guidance on the keybinds. Suggest NOT to assign a keybind which I set on the default Keybinds. Else will conflict. Once Hyprland decided to have a global keybinds, then I will adjust.
+
+5.) If you think that the default keybinds SHOULD be adjusted, open an issue on my github page and present me a valid argument. Like conflicting to GLOBAL keybinds, etc etc etc.
+
+
I will update the Hyprland-Dots wiki for guidance. Make sure to check out changelogs as well
diff --git a/config/hypr/UserConfigs/Laptops.conf b/config/hypr/UserConfigs/Laptops.conf
index 14413ce0..20a6c6f9 100644
--- a/config/hypr/UserConfigs/Laptops.conf
+++ b/config/hypr/UserConfigs/Laptops.conf
@@ -3,10 +3,9 @@
# See https://wiki.hyprland.org/Configuring/Keywords/ for more variable settings
# These configs are mostly for laptops. This is addemdum to Keybinds.conf
-$configs = $HOME/.config/hypr/configs
-$UserConfigs = $HOME/.config/hypr/UserConfigs
$mainMod = SUPER
$scriptsDir = $HOME/.config/hypr/scripts
+$UserConfigs = $HOME/.config/hypr/UserConfigs
bind = , xf86KbdBrightnessDown, exec, $scriptsDir/BrightnessKbd.sh --dec #Keyboard brightness Down
bind = , xf86KbdBrightnessUp, exec, $scriptsDir/BrightnessKbd.sh --inc #Keyboard brightness up
diff --git a/config/hypr/UserConfigs/Monitors.conf b/config/hypr/UserConfigs/Monitors.conf
index ca2ef0e6..3e758c0a 100644
--- a/config/hypr/UserConfigs/Monitors.conf
+++ b/config/hypr/UserConfigs/Monitors.conf
@@ -15,7 +15,7 @@ monitor=,preferred,auto,1
#monitor = eDP-1, preferred, auto, 1
#monitor = eDP-1, 2560x1440@165, 0x0, 1 #own screen
-#monitor = DP-2, preferred, auto, 1
+#monitor = DP-3, 1920x1080@240, auto, 1
#monitor = DP-1, preferred, auto, 1
#monitor = HDMI-A-1, preferred,auto,1
diff --git a/config/hypr/UserConfigs/Startup_Apps.conf b/config/hypr/UserConfigs/Startup_Apps.conf
index 2aacba44..d8385f03 100644
--- a/config/hypr/UserConfigs/Startup_Apps.conf
+++ b/config/hypr/UserConfigs/Startup_Apps.conf
@@ -2,15 +2,15 @@
#Commands & Apps to be executed at launch
$scriptsDir = $HOME/.config/hypr/scripts
-$UserscriptsDir = $HOME/.config/hypr/UserScripts
-$lock = $scriptsDir/LockScreen.sh
-$SwwwRandom = $scriptsDir/WallpaperRandom.sh
-$WallpaperPath = $HOME/Pictures/wallpapers
+$UserScripts = $HOME/.config/hypr/UserScripts
+$wallDIR=$HOME/Pictures/wallpapers
+$lock = $scriptsDir/LockScreen.sh
+$SwwwRandom = $UserscriptsDir/WallpaperAutoChange.sh
# wallpaper stuff / More wallpaper options below
exec-once = swww query || swww init
-exec-once = $SwwwRandom $WallpaperPath # random wallpaper switcher every 30 minutes
+exec-once = $SwwwRandom $wallDIR # random wallpaper switcher every 30 minutes
# Startup
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
diff --git a/config/hypr/UserScripts/00-Readme b/config/hypr/UserScripts/00-Readme
index de251df0..de251df0 100644..100755
--- a/config/hypr/UserScripts/00-Readme
+++ b/config/hypr/UserScripts/00-Readme
diff --git a/config/hypr/scripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh
index 9c7cdffc..163101e2 100755
--- a/config/hypr/scripts/QuickEdit.sh
+++ b/config/hypr/UserScripts/QuickEdit.sh
@@ -1,7 +1,8 @@
#!/bin/bash
+# Rofi menu for Quick Edit / View of Settings (SUPER E)
-defaultDir="$HOME/.config/hypr/configs"
-userDir="$HOME/.config/hypr/UserConfigs"
+configs="$HOME/.config/hypr/configs"
+UserConfigs="$HOME/.config/hypr/UserConfigs"
menu(){
printf "1. view Env-variables\n"
@@ -19,31 +20,31 @@ main() {
choice=$(menu | rofi -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1)
case $choice in
1)
- kitty -e nano "$userDir/ENVariables.conf"
+ kitty -e nano "$UserConfigs/ENVariables.conf"
;;
2)
- kitty -e nano "$userDir/WindowRules.conf"
+ kitty -e nano "$UserConfigs/WindowRules.conf"
;;
3)
- kitty -e nano "$userDir/Startup_Apps.conf"
+ kitty -e nano "$UserConfigs/Startup_Apps.conf"
;;
4)
- kitty -e nano "$userDir/UserKeybinds.conf"
+ kitty -e nano "$UserConfigs/UserKeybinds.conf"
;;
5)
- kitty -e nano "$userDir/Monitors.conf"
+ kitty -e nano "$UserConfigs/Monitors.conf"
;;
6)
- kitty -e nano "$userDir/Laptops.conf"
+ kitty -e nano "$UserConfigs/Laptops.conf"
;;
7)
- kitty -e nano "$userDir/UserSettings.conf"
+ kitty -e nano "$UserConfigs/UserSettings.conf"
;;
8)
- kitty -e nano "$defaultDir/Settings.conf"
+ kitty -e nano "$configs/Settings.conf"
;;
9)
- kitty -e nano "$defaultDir/Keybinds.conf"
+ kitty -e nano "$configs/Keybinds.conf"
;;
*)
;;
diff --git a/config/hypr/scripts/RofiBeats.sh b/config/hypr/UserScripts/RofiBeats.sh
index 405451f5..405451f5 100755
--- a/config/hypr/scripts/RofiBeats.sh
+++ b/config/hypr/UserScripts/RofiBeats.sh
diff --git a/config/hypr/UserScripts/Sunset.sh b/config/hypr/UserScripts/Sunset.sh
index 96c27c5b..50e386d1 100755
--- a/config/hypr/UserScripts/Sunset.sh
+++ b/config/hypr/UserScripts/Sunset.sh
@@ -1,2 +1,7 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+
+# wlsunset project page
+# https://sr.ht/~kennylevinsen/wlsunset/
+
wlsunset -t 4000 -T 6500 -d 900 -S 07:00 -s 19:00 \ No newline at end of file
diff --git a/config/hypr/scripts/WallpaperRandom.sh b/config/hypr/UserScripts/WallpaperAutoChange.sh
index 13bd2995..56f2ee05 100755
--- a/config/hypr/scripts/WallpaperRandom.sh
+++ b/config/hypr/UserScripts/WallpaperAutoChange.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# source https://wiki.archlinux.org/title/Hyprland#Using_a_script_to_change_wallpaper_every_X_minutes
# This script will randomly go through the files of a directory, setting it
# up as the wallpaper at regular intervals
diff --git a/config/hypr/UserScripts/WallpaperRandom.sh b/config/hypr/UserScripts/WallpaperRandom.sh
new file mode 100755
index 00000000..f8cc54f9
--- /dev/null
+++ b/config/hypr/UserScripts/WallpaperRandom.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Script for Random Wallpaper ( CTRL ALT W)
+
+wallDIR="$HOME/Pictures/wallpapers"
+scriptsDir="$HOME/.config/hypr/scripts"
+
+PICS=($(find ${wallDIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \)))
+RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]}
+
+
+# Transition config
+FPS=60
+TYPE="random"
+DURATION=1
+BEZIER=".43,1.19,1,.4"
+SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION --transition-bezier $BEZIER"
+
+
+swww query || swww init && swww img ${RANDOMPICS} $SWWW_PARAMS
+
+
+${scriptsDir}/PywalSwww.sh
+sleep 1
+${scriptsDir}/Refresh.sh
+
diff --git a/config/hypr/scripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh
index 691b8fd2..663fb540 100755
--- a/config/hypr/scripts/WallpaperSelect.sh
+++ b/config/hypr/UserScripts/WallpaperSelect.sh
@@ -1,9 +1,11 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# This script for selecting wallpapers (SUPER W)
SCRIPTSDIR="$HOME/.config/hypr/scripts"
# WALLPAPERS PATH
-DIR="$HOME/Pictures/wallpapers"
+wallDIR="$HOME/Pictures/wallpapers"
# Transition config
FPS=30
@@ -18,18 +20,18 @@ if pidof swaybg > /dev/null; then
fi
# Retrieve image files
-PICS=($(ls "${DIR}" | grep -E ".jpg$|.jpeg$|.png$|.gif$"))
+PICS=($(ls "${wallDIR}" | grep -E ".jpg$|.jpeg$|.png$|.gif$"))
RANDOM_PIC="${PICS[$((RANDOM % ${#PICS[@]}))]}"
RANDOM_PIC_NAME="${#PICS[@]}. random"
# Rofi command
-rofi_command="rofi -dmenu -config ~/.config/rofi/config-wallpaper.rasi"
+rofi_command="rofi -show -dmenu -config ~/.config/rofi/config-wallpaper.rasi"
menu() {
for i in "${!PICS[@]}"; do
# Displaying .gif to indicate animated images
if [[ -z $(echo "${PICS[$i]}" | grep .gif$) ]]; then
- printf "$(echo "${PICS[$i]}" | cut -d. -f1)\n"
+ printf "$(echo "${PICS[$i]}" | cut -d. -f1)\x00icon\x1f${wallDIR}/${PICS[$i]}\n"
else
printf "${PICS[$i]}\n"
fi
@@ -50,7 +52,7 @@ main() {
# Random choice case
if [ "$choice" = "$RANDOM_PIC_NAME" ]; then
- swww img "${DIR}/${RANDOM_PIC}" $SWWW_PARAMS
+ swww img "${wallDIR}/${RANDOM_PIC}" $SWWW_PARAMS
exit 0
fi
@@ -65,7 +67,7 @@ main() {
done
if [[ $pic_index -ne -1 ]]; then
- swww img "${DIR}/${PICS[$pic_index]}" $SWWW_PARAMS
+ swww img "${wallDIR}/${PICS[$pic_index]}" $SWWW_PARAMS
else
echo "Image not found."
exit 1
diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf
index 84b78cff..1da7e9f7 100644
--- a/config/hypr/configs/Keybinds.conf
+++ b/config/hypr/configs/Keybinds.conf
@@ -1,34 +1,40 @@
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Default Keybinds
+# visit https://wiki.hyprland.org/Configuring/Binds/ for more info
$mainMod = SUPER
+# Default
$scriptsDir = $HOME/.config/hypr/scripts
+$configs = $HOME/.config/hypr/configs
+# User
+$UserConfigs = $HOME/.config/hypr/UserConfigs
+$UserScripts = $HOME/.config/hypr/UserScripts
bind = CTRL ALT, Delete, exec, hyprctl dispatch exit 0
+bind = $mainMod, Q, killactive,
+bind = $mainMod, F, fullscreen
bind = $mainMod SHIFT, Q, closewindow,
bind = $mainMod SHIFT, F, togglefloating,
bind = $mainMod ALT, F, exec, hyprctl dispatch workspaceopt allfloat
-bind = $mainMod, F, fullscreen
-bind = $mainMod, Q, killactive,
bind = CTRL ALT, L, exec, $scriptsDir/LockScreen.sh
bind = CTRL ALT, P, exec, $scriptsDir/Wlogout.sh
# FEATURES / EXTRAS
+bind = $mainMod, H, exec, $scriptsDir/KeyHints.sh # Small help file
bind = $mainMod ALT, R, exec, $scriptsDir/Refresh.sh # Refresh waybar, swaync, rofi
-bind = $mainMod CTRL, S, exec, $scriptsDir/RofiBeats.sh # online music
bind = $mainMod ALT, E, exec, $scriptsDir/RofiEmoji.sh # emoji
-bind = $mainMod, H, exec, $scriptsDir/KeyHints.sh # Small help file
-bind = $mainMod, E, exec, $scriptsDir/QuickEdit.sh # Quick Edit Hyprland Settings
bind = $mainMod SHIFT, B, exec, $scriptsDir/ChangeBlur.sh # Toggle blur settings
bind = $mainMod SHIFT, G, exec, $scriptsDir/GameMode.sh # animations ON/OFF
bind = $mainMod ALT, K, exec, $scriptsDir/SwitchKeyboardLayout.sh # Switch Keyboard Layout
-bind = $mainMod, Space, exec, $scriptsDir/ChangeLayout.sh # Toggle Master or Dwindle Layout
+bind = $mainMod ALT, L, exec, $scriptsDir/ChangeLayout.sh # Toggle Master or Dwindle Layout
bind = $mainMod ALT, V, exec, $scriptsDir/ClipManager.sh # Clipboard Manager
bind = $mainMod SHIFT, N, exec, swaync-client -t -sw # swayNC panel
-# Wallpaper related keybinds
-bind = $mainMod, W, exec, $scriptsDir/WallpaperSelect.sh # Select wallpaper to apply
-bind = CTRL ALT, W, exec, $scriptsDir/Wallpaper.sh # Random wallpapers
+# FEATURES / EXTRAS (UserScripts)
+bind = $mainMod, E, exec, $UserScripts/QuickEdit.sh # Quick Edit Hyprland Settings
+bind = $mainMod SHIFT, M, exec, $UserScripts/RofiBeats.sh # online music
+bind = $mainMod, W, exec, $UserScripts/WallpaperSelect.sh # Select wallpaper to apply
+bind = CTRL ALT, W, exec, $UserScripts/WallpaperRandom.sh # Random wallpapers
# Waybar / Bar related
bind = $mainMod, B, exec, killall -SIGUSR1 waybar # Toggle hide/show waybar
@@ -43,7 +49,6 @@ bind = $mainMod, K, layoutmsg, cycleprev
bind = $mainMod, M, exec, hyprctl dispatch splitratio 0.3
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod CTRL, Return, layoutmsg, swapwithmaster
-bind = $mainMod SHIFT, M, exec, hyprctl dispatch splitratio -0.3
# group
bind = $mainMod, G, togglegroup
diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf
index 24c0be6f..69f421cf 100644
--- a/config/hypr/hyprland.conf
+++ b/config/hypr/hyprland.conf
@@ -11,12 +11,9 @@ $UserConfigs = $HOME/.config/hypr/UserConfigs
source= $UserConfigs/Startup_Apps.conf
source= $UserConfigs/ENVariables.conf
-source= $UserConfigs/UserKeybinds.conf
-source= $UserConfigs/UserSettings.conf
source= $UserConfigs/Monitors.conf
source= $UserConfigs/Laptops.conf
source= $UserConfigs/LaptopDisplay.conf
source= $UserConfigs/WindowRules.conf
-
-
-
+source= $UserConfigs/UserKeybinds.conf
+source= $UserConfigs/UserSettings.conf \ No newline at end of file
diff --git a/config/hypr/scripts/AirplaneMode.sh b/config/hypr/scripts/AirplaneMode.sh
index f3a50629..1176c80f 100755
--- a/config/hypr/scripts/AirplaneMode.sh
+++ b/config/hypr/scripts/AirplaneMode.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Airplane Mode. Turning on or off all wifi using rfkill.
notif="$HOME/.config/swaync/images/bell.png"
diff --git a/config/hypr/scripts/Brightness.sh b/config/hypr/scripts/Brightness.sh
index 14c03da5..04987ab1 100755
--- a/config/hypr/scripts/Brightness.sh
+++ b/config/hypr/scripts/Brightness.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Script for Monitor backlights (if supported) using brightnessctl
iDIR="$HOME/.config/swaync/icons"
notification_timeout=1000
diff --git a/config/hypr/scripts/BrightnessKbd.sh b/config/hypr/scripts/BrightnessKbd.sh
index 3bdcebcb..f96c6e08 100755
--- a/config/hypr/scripts/BrightnessKbd.sh
+++ b/config/hypr/scripts/BrightnessKbd.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Script for keyboard backlights (if supported) using brightnessctl
iDIR="$HOME/.config/swaync/icons"
diff --git a/config/hypr/scripts/ChangeBlur.sh b/config/hypr/scripts/ChangeBlur.sh
index 95789f5c..8ad0dd40 100755
--- a/config/hypr/scripts/ChangeBlur.sh
+++ b/config/hypr/scripts/ChangeBlur.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+## Script for changing blurs on the fly
notif="$HOME/.config/swaync/images/bell.png"
diff --git a/config/hypr/scripts/ChangeLayout.sh b/config/hypr/scripts/ChangeLayout.sh
index 93bc2fe9..5981024a 100755
--- a/config/hypr/scripts/ChangeLayout.sh
+++ b/config/hypr/scripts/ChangeLayout.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# for changing Hyprland Layouts (Master or Dwindle) on the fly
notif="$HOME/.config/swaync/images/bell.png"
diff --git a/config/hypr/scripts/ClipManager.sh b/config/hypr/scripts/ClipManager.sh
index eb717eaa..ee6b512f 100755
--- a/config/hypr/scripts/ClipManager.sh
+++ b/config/hypr/scripts/ClipManager.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-#
-# Clipboard Manager
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Clipboard Manager. This needed cliphist & wl-copy and of course rofi
if [[ ! $(pidof rofi) ]]; then
cliphist list | rofi -dmenu -config ~/.config/rofi/config-long.rasi | cliphist decode | wl-copy
diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh
index ec8c4473..dab6e816 100755
--- a/config/hypr/scripts/DarkLight.sh
+++ b/config/hypr/scripts/DarkLight.sh
@@ -1,5 +1,8 @@
#!/bin/bash
-set -x
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# For Dark and Light switching
+# Note: Scripts are looking for keywords Light or Dark except for wallpapers as the are in a separate folders
+
# Paths
wallpaper_base_path="$HOME/Pictures/wallpapers/Dynamic-Wallpapers"
dark_wallpapers="$wallpaper_base_path/Dark"
diff --git a/config/hypr/scripts/GameMode.sh b/config/hypr/scripts/GameMode.sh
index d53ec7d3..f05676eb 100755
--- a/config/hypr/scripts/GameMode.sh
+++ b/config/hypr/scripts/GameMode.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Game Mode. Turning off all animations
notif="$HOME/.config/swaync/images/bell.png"
SCRIPTSDIR="$HOME/.config/hypr/scripts"
diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh
index 180befa1..5b79cf06 100755
--- a/config/hypr/scripts/KeyHints.sh
+++ b/config/hypr/scripts/KeyHints.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Keyhints. Idea got from Garuda Hyprland
# Detect monitor resolution and scale
x_mon=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .width')
@@ -42,8 +44,8 @@ yad --width=$dynamic_width --height=$dynamic_height \
" Q" "close active window" "(not kill)" \
" Shift Q " "closes a specified window" "(window)" \
" Alt V" "Clipboard Manager" "(cliphist)" \
-" W" "Choose wallpaper" "(swww)" \
-"CTRL ALT W" "Random wallpaper" "(swww)" \
+" W" "Choose wallpaper" "(Wallpaper Menu)" \
+"CTRL ALT W" "Random wallpaper" "(via swww)" \
" B" "Hide/UnHide Waybar" "waybar" \
" CTRL B" "Choose waybar styles" "(waybar styles)" \
" ALT B" "Choose waybar layout" "(waybar layout)" \
@@ -57,11 +59,11 @@ yad --width=$dynamic_width --height=$dynamic_height \
"CTRL ALT L" "screen lock" "(swaylock)" \
"CTRL ALT Del" "Hyprland Exit" "(SAVE YOUR WORK!!!)" \
" F" "Fullscreen" "Toggles to full screen" \
-" Spacebar" "Toggle Dwindle | Master Layout" "Hyprland Layout" \
+" ALT L" "Toggle Dwindle | Master Layout" "Hyprland Layout" \
" Shift F" "Toggle float" "single window" \
" ALT F" "Toggle all windows to float" "all windows" \
" Shift B" "Toggle Blur" "normal or less blur" \
-" SHIFT G" "Gamemode! All animations off" "" \
+" SHIFT G" "Gamemode! All animations OFF or ON" "toggle" \
" H" "Launch this app" "" \
" E" "View or EDIT Keybinds, Settings, Monitor" "" \
"" "" "" \
diff --git a/config/hypr/scripts/LockScreen.sh b/config/hypr/scripts/LockScreen.sh
index 538b6eff..1e676780 100755
--- a/config/hypr/scripts/LockScreen.sh
+++ b/config/hypr/scripts/LockScreen.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# For Swaylock
CONFIG="$HOME/.config/swaylock/config"
diff --git a/config/hypr/scripts/MediaCtrl.sh b/config/hypr/scripts/MediaCtrl.sh
index 9d970443..d9855e4f 100755
--- a/config/hypr/scripts/MediaCtrl.sh
+++ b/config/hypr/scripts/MediaCtrl.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Playerctl
music_icon="$HOME/.config/swaync/icons/music.png"
diff --git a/config/hypr/scripts/Polkit-NixOS.sh b/config/hypr/scripts/Polkit-NixOS.sh
index ef5e74fd..048c1b02 100755
--- a/config/hypr/scripts/Polkit-NixOS.sh
+++ b/config/hypr/scripts/Polkit-NixOS.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# For NixOS starting of polkit-gnome. Dec 2023, the settings stated in NixOS wiki does not work so have to manual start it
# Find all polkit-gnome executables in the Nix store
polkit_gnome_paths=$(find /nix/store -name 'polkit-gnome-authentication-agent-1' -type f 2>/dev/null)
diff --git a/config/hypr/scripts/Polkit.sh b/config/hypr/scripts/Polkit.sh
index 031c74d6..07b1211d 100755
--- a/config/hypr/scripts/Polkit.sh
+++ b/config/hypr/scripts/Polkit.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# This is for polkits, it will start from top and will stop if the top is executed
# Polkit possible paths files to check
polkit=(
diff --git a/config/hypr/scripts/PortalHyprland.sh b/config/hypr/scripts/PortalHyprland.sh
index 70a994ed..389ec738 100755
--- a/config/hypr/scripts/PortalHyprland.sh
+++ b/config/hypr/scripts/PortalHyprland.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# For manually starting xdg-desktop-portal
+
sleep 1
killall xdg-desktop-portal-hyprland
killall xdg-desktop-portal-wlr
diff --git a/config/hypr/scripts/PywalSwww.sh b/config/hypr/scripts/PywalSwww.sh
index d91d3f60..0cbadaf4 100755
--- a/config/hypr/scripts/PywalSwww.sh
+++ b/config/hypr/scripts/PywalSwww.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Pywal Colors for current wallpaper
# Define the path to the swww cache directory
cache_dir="$HOME/.cache/swww/"
diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh
index b5e0f556..a585eb84 100755
--- a/config/hypr/scripts/Refresh.sh
+++ b/config/hypr/scripts/Refresh.sh
@@ -1,7 +1,9 @@
-#!/usr/bin/env bash
+#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Scripts for refreshing waybar, rofi, swaync, pywal colors
SCRIPTSDIR=$HOME/.config/hypr/scripts
-UserSCRIPTSDIR=$HOME/.config/hypr/UserScripts
+UserScripts=$HOME/.config/hypr/UserScripts
# Define file_exists function
file_exists() {
@@ -30,8 +32,8 @@ swaync > /dev/null 2>&1 &
# Relaunching rainbow borders if the script exists
sleep 1
-if file_exists "${UserSCRIPTSDIR}/RainbowBorders.sh"; then
- ${UserSCRIPTSDIR}/RainbowBorders.sh &
+if file_exists "${UserScripts}/RainbowBorders.sh"; then
+ ${UserScripts}/RainbowBorders.sh &
fi
# for cava-pywal (note, need to manually restart cava once wallpaper changes)
diff --git a/config/hypr/scripts/RefreshNoWaybar.sh b/config/hypr/scripts/RefreshNoWaybar.sh
index be06167c..f0c3d569 100755
--- a/config/hypr/scripts/RefreshNoWaybar.sh
+++ b/config/hypr/scripts/RefreshNoWaybar.sh
@@ -1,11 +1,12 @@
-#!/usr/bin/env bash
+#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Modified version of Refresh but no waybar refresh
# Used by automatic wallpaper change
-# Modified inorder to refresh rofi background, Pywal
+# Modified inorder to refresh rofi background, Pywal, SwayNC
SCRIPTSDIR=$HOME/.config/hypr/scripts
-UserSCRIPTSDIR=$HOME/.config/hypr/UserScripts
+UserScripts=$HOME/.config/hypr/UserScripts
# Define file_exists function
file_exists() {
@@ -29,8 +30,8 @@ ${SCRIPTSDIR}/PywalSwww.sh &
# Relaunching rainbow borders if the script exists
sleep 1
-if file_exists "${UserSCRIPTSDIR}/RainbowBorders.sh"; then
- ${UserSCRIPTSDIR}/RainbowBorders.sh &
+if file_exists "${UserScripts}/RainbowBorders.sh"; then
+ ${UserScripts}/RainbowBorders.sh &
fi
# for cava-pywal (note, need to manually restart cava once wallpaper changes)
diff --git a/config/hypr/scripts/RofiEmoji.sh b/config/hypr/scripts/RofiEmoji.sh
index 6667cc53..4182a5a9 100755
--- a/config/hypr/scripts/RofiEmoji.sh
+++ b/config/hypr/scripts/RofiEmoji.sh
@@ -1,11 +1,12 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Rofi Emoticons. Not my own. Cant remember the source
sed '1,/^### DATA ###$/d' $0 |
rofi -dmenu -config ~/.config/rofi/config-long.rasi|
cut -d ' ' -f 1 | tr -d '\n' | wl-copy
exit
-
### DATA ###
😀 grinning face face smile happy joy :D grin
😃 grinning face with big eyes face happy joy haha :D :) smile funny
diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh
index 1d5eeacf..ddf4398b 100755
--- a/config/hypr/scripts/ScreenShot.sh
+++ b/config/hypr/scripts/ScreenShot.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Screenshots scripts
iDIR="$HOME/.config/swaync/icons"
notify_cmd_shot="notify-send -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/picture.png"
diff --git a/config/hypr/scripts/SwitchKeyboardLayout.sh b/config/hypr/scripts/SwitchKeyboardLayout.sh
index a53a567d..90451c67 100755
--- a/config/hypr/scripts/SwitchKeyboardLayout.sh
+++ b/config/hypr/scripts/SwitchKeyboardLayout.sh
@@ -1,4 +1,6 @@
-#!/usr/bin/env bash
+#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# This is for changing kb_layouts. Set kb_layouts in $settings_file
layout_f="$HOME/.cache/kb_layout"
settings_file="$HOME/.config/hypr/UserConfigs/UserSettings.conf"
diff --git a/config/hypr/scripts/TouchPad.sh b/config/hypr/scripts/TouchPad.sh
index 1fcb3249..47ad48f6 100755
--- a/config/hypr/scripts/TouchPad.sh
+++ b/config/hypr/scripts/TouchPad.sh
@@ -1,6 +1,8 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# For disabling touchpad.
-HYPRLAND_DEVICE="asue1209:00-04f3:319f-touchpad"
+Touchpad_Device="asue1209:00-04f3:319f-touchpad"
notif="$HOME/.config/swaync/images/bell.png"
XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/run/user/$(id -u)}
@@ -16,7 +18,7 @@ toggle_touchpad() {
fi
notify-send -u low -i "$notif" "Touchpad $action"
- hyprctl keyword "device:$HYPRLAND_DEVICE:enabled" "$(cat "$STATUS_FILE")"
+ hyprctl keyword "device:$Touchpad_Device:enabled" "$(cat "$STATUS_FILE")"
}
toggle_touchpad
diff --git a/config/hypr/scripts/Volume.sh b/config/hypr/scripts/Volume.sh
index f68491cf..1c18211f 100755
--- a/config/hypr/scripts/Volume.sh
+++ b/config/hypr/scripts/Volume.sh
@@ -1,4 +1,6 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Scripts for volume controls for audio and mic
iDIR="$HOME/.config/swaync/icons"
diff --git a/config/hypr/scripts/Wallpaper.sh b/config/hypr/scripts/Wallpaper.sh
deleted file mode 100755
index d75d2eab..00000000
--- a/config/hypr/scripts/Wallpaper.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-DIR="$HOME/Pictures/wallpapers"
-SCRIPTSDIR="$HOME/.config/hypr/scripts"
-
-PICS=($(find ${DIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \)))
-RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]}
-
-
-# Transition config
-FPS=60
-TYPE="random"
-DURATION=1
-BEZIER=".43,1.19,1,.4"
-SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION --transition-bezier $BEZIER"
-
-
-swww query || swww init && swww img ${RANDOMPICS} $SWWW_PARAMS
-
-
-${SCRIPTSDIR}/PywalSwww.sh
-sleep 1
-${SCRIPTSDIR}/Refresh.sh
-
diff --git a/config/hypr/scripts/WaybarCava.sh b/config/hypr/scripts/WaybarCava.sh
new file mode 100755
index 00000000..77fce82a
--- /dev/null
+++ b/config/hypr/scripts/WaybarCava.sh
@@ -0,0 +1,32 @@
+# #! /bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+
+# Not my own work. This was added through Github PR. Credit to original author
+
+#----- Optimized bars animation without much CPU usage increase --------
+bar="▁▂▃▄▅▆▇█"
+dict="s/;//g"
+
+# Calculate the length of the bar outside the loop
+bar_length=${#bar}
+
+# Create dictionary to replace char with bar
+for ((i = 0; i < bar_length; i++)); do
+ dict+=";s/$i/${bar:$i:1}/g"
+done
+
+# Create cava config
+config_file="/tmp/bar_cava_config"
+cat >"$config_file" <<EOF
+[general]
+bars = 10
+
+[output]
+method = raw
+raw_target = /dev/stdout
+data_format = ascii
+ascii_max_range = 7
+EOF
+
+# Read stdout from cava and perform substitution in a single sed command
+cava -p "$config_file" | sed -u "$dict"
diff --git a/config/hypr/scripts/WaybarLayout.sh b/config/hypr/scripts/WaybarLayout.sh
index dbe0ee7f..31146b59 100755
--- a/config/hypr/scripts/WaybarLayout.sh
+++ b/config/hypr/scripts/WaybarLayout.sh
@@ -1,12 +1,14 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Script for waybar layout or configs
set -euo pipefail
IFS=$'\n\t'
# Define directories
-config_dir="$HOME/.config/waybar/configs"
+waybar_layouts="$HOME/.config/waybar/configs"
waybar_config="$HOME/.config/waybar/config"
-scripts_dir="$HOME/.config/hypr/scripts"
+SCRIPTSDIR="$HOME/.config/hypr/scripts"
rofi_config="$HOME/.config/rofi/config-waybar-layout.rasi"
# Function to display menu options
@@ -14,14 +16,14 @@ menu() {
options=()
while IFS= read -r file; do
options+=("$(basename "$file")")
- done < <(find "$config_dir" -maxdepth 1 -type f -exec basename {} \; | sort)
+ done < <(find "$waybar_layouts" -maxdepth 1 -type f -exec basename {} \; | sort)
printf '%s\n' "${options[@]}"
}
# Apply selected configuration
apply_config() {
- ln -sf "$config_dir/$1" "$waybar_config"
+ ln -sf "$waybar_layouts/$1" "$waybar_config"
restart_waybar_if_needed
}
@@ -31,7 +33,7 @@ restart_waybar_if_needed() {
pkill waybar
sleep 0.1 # Delay for Waybar to completely terminate
fi
- "${scripts_dir}/Refresh.sh" &
+ "${SCRIPTSDIR}/Refresh.sh" &
}
# Main function
diff --git a/config/hypr/scripts/WaybarStyles.sh b/config/hypr/scripts/WaybarStyles.sh
index 9395c528..bbcb6ea3 100755
--- a/config/hypr/scripts/WaybarStyles.sh
+++ b/config/hypr/scripts/WaybarStyles.sh
@@ -1,29 +1,31 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Script for waybar styles
set -euo pipefail
IFS=$'\n\t'
# Define directories
-config_dir="$HOME/.config/waybar/style"
-waybar_config="$HOME/.config/waybar/style.css"
-scripts_dir="$HOME/.config/hypr/scripts"
+waybar_styles="$HOME/.config/waybar/style"
+waybar_style="$HOME/.config/waybar/style.css"
+SCRIPTSDIR="$HOME/.config/hypr/scripts"
rofi_config="$HOME/.config/rofi/config-waybar-style.rasi"
# Function to display menu options
menu() {
options=()
while IFS= read -r file; do
- if [ -f "$config_dir/$file" ]; then
+ if [ -f "$waybar_styles/$file" ]; then
options+=("$(basename "$file" .css)")
fi
- done < <(find "$config_dir" -maxdepth 1 -type f -name '*.css' -exec basename {} \; | sort)
+ done < <(find "$waybar_styles" -maxdepth 1 -type f -name '*.css' -exec basename {} \; | sort)
printf '%s\n' "${options[@]}"
}
# Apply selected style
apply_style() {
- ln -sf "$config_dir/$1.css" "$waybar_config"
+ ln -sf "$waybar_styles/$1.css" "$waybar_style"
restart_waybar_if_needed
}
@@ -33,7 +35,7 @@ restart_waybar_if_needed() {
pkill waybar
sleep 0.1 # Delay for Waybar to completely terminate
fi
- "${scripts_dir}/Refresh.sh" &
+ "${SCRIPTSDIR}/Refresh.sh" &
}
# Main function
diff --git a/config/hypr/scripts/Wlogout.sh b/config/hypr/scripts/Wlogout.sh
index 998d3fed..4c53c381 100755
--- a/config/hypr/scripts/Wlogout.sh
+++ b/config/hypr/scripts/Wlogout.sh
@@ -1,8 +1,11 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+
+# wlogout (Power, Screen Lock, Suspend, etc)
# Set variables for parameters
-A_2160=2500
-B_2160=2700
+A_2160=680
+B_2160=750
A_1440=500
B_1440=550
A_1080=300
@@ -24,7 +27,7 @@ echo "Detected Resolution: $resolution"
# Set parameters based on screen resolution and scaling factor
if ((resolution >= 2160)); then
- wlogout --protocol layer-shell -b 6 -T $(awk "BEGIN {printf \"%.0f\", $A_2160 * 2160 * $hypr_scale / $resolution}") -B $(awk "BEGIN {printf \"%.0f\", $B_2160 * 2160 * $hypr_scale / $resolution}") &
+ wlogout --protocol layer-shell -b 3 -T $(awk "BEGIN {printf \"%.0f\", $A_2160 * 2160 * $hypr_scale / $resolution}") -B $(awk "BEGIN {printf \"%.0f\", $B_2160 * 2160 * $hypr_scale / $resolution}") &
echo "Setting parameters for resolution >= 2160p"
elif ((resolution >= 1440)); then
wlogout --protocol layer-shell -b 6 -T $(awk "BEGIN {printf \"%.0f\", $A_1440 * 1440 * $hypr_scale / $resolution}") -B $(awk "BEGIN {printf \"%.0f\", $B_1440 * 1440 * $hypr_scale / $resolution}") &
@@ -38,4 +41,4 @@ elif ((resolution > 720)); then
else
wlogout &
echo "Setting default parameters for resolution <= 720p"
-fi
+fi \ No newline at end of file
diff --git a/config/hypr/v2.2.2 b/config/hypr/v2.2.3
index 31b3414d..31b3414d 100644
--- a/config/hypr/v2.2.2
+++ b/config/hypr/v2.2.3
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage