diff options
Diffstat (limited to 'config/hypr')
52 files changed, 420 insertions, 155 deletions
diff --git a/config/hypr/UserConfigs/ENVariables.conf b/config/hypr/UserConfigs/ENVariables.conf index 4437c641..b9d20480 100644 --- a/config/hypr/UserConfigs/ENVariables.conf +++ b/config/hypr/UserConfigs/ENVariables.conf @@ -1,4 +1,4 @@ -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # #environment-variables env = CLUTTER_BACKEND,wayland diff --git a/config/hypr/UserConfigs/LaptopDisplay.conf b/config/hypr/UserConfigs/LaptopDisplay.conf index d50c9119..9f766582 100644 --- a/config/hypr/UserConfigs/LaptopDisplay.conf +++ b/config/hypr/UserConfigs/LaptopDisplay.conf @@ -1,4 +1,4 @@ -## NOTE, THIS FILE IS BEING USED by disabling Laptop display monitor behaviour when closing lid. -## See notes on Laptops.conf +# NOTE, THIS FILE IS BEING USED by disabling Laptop display monitor behaviour when closing lid. +# See notes on Laptops.conf #monitor = eDP-1, preferred, auto, 1 diff --git a/config/hypr/UserConfigs/Laptops.conf b/config/hypr/UserConfigs/Laptops.conf index 20a6c6f9..00d8b8c6 100644 --- a/config/hypr/UserConfigs/Laptops.conf +++ b/config/hypr/UserConfigs/Laptops.conf @@ -1,4 +1,4 @@ -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # # See https://wiki.hyprland.org/Configuring/Keywords/ for more variable settings # These configs are mostly for laptops. This is addemdum to Keybinds.conf @@ -30,8 +30,8 @@ bind = ALT, F6, exec, $scriptsDir/ScreenShot.sh --active # Screenshot active win #bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, preferred, auto, 1" #bindl = , switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" -############################################################################# -### WARNING! Using this method has some caveats!! USE THIS PART WITH SOME CAUTION! + +# WARNING! Using this method has some caveats!! USE THIS PART WITH SOME CAUTION! # CONS of doing this, is that you need to set up your wallpaper (SUPER W) and choose wallpaper. # CAVEATS! Sometimes the Main Laptop Monitor DOES NOT have display that it needs to re-connect your external monitor # One work around is to ensure that before shutting down laptop, MAKE SURE your laptop lid is OPEN!! @@ -44,4 +44,4 @@ bind = ALT, F6, exec, $scriptsDir/ScreenShot.sh --active # Screenshot active win # for laptop-lid action (to erase the last entry) #exec-once = echo "eDP-1, preferred, auto, 1" > $HOME/.config/hypr/UserConfigs/LaptopDisplay.conf -############################################################################## +# diff --git a/config/hypr/UserConfigs/Monitors.conf b/config/hypr/UserConfigs/Monitors.conf index 3e758c0a..36781f99 100644 --- a/config/hypr/UserConfigs/Monitors.conf +++ b/config/hypr/UserConfigs/Monitors.conf @@ -1,4 +1,4 @@ -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # # Monitor Configuration # See Hyprland wiki for more details diff --git a/config/hypr/UserConfigs/Startup_Apps.conf b/config/hypr/UserConfigs/Startup_Apps.conf index 7f2d600d..8b5ed9f8 100644 --- a/config/hypr/UserConfigs/Startup_Apps.conf +++ b/config/hypr/UserConfigs/Startup_Apps.conf @@ -1,4 +1,4 @@ -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # #Commands & Apps to be executed at launch $scriptsDir = $HOME/.config/hypr/scripts @@ -9,7 +9,7 @@ $lock = $scriptsDir/LockScreen.sh $SwwwRandom = $UserScripts/WallpaperAutoChange.sh # wallpaper stuff / More wallpaper options below -exec-once = swww query || swww init +exec-once = swww query || swww-daemon --format xrgb exec-once = $SwwwRandom $wallDIR # random wallpaper switcher every 30 minutes # Startup @@ -32,17 +32,16 @@ exec-once = wl-paste --type text --watch cliphist store exec-once = wl-paste --type image --watch cliphist store # Rainbow borders -exec-once = $UserScripts/RainbowBorders.sh +exec-once = $UserScripts/RainbowBorders.sh & -# sway-idle with lock only -exec-once = swayidle -w timeout 900 '$lock' -# sway-idle with lock and sleep -#exec-once = swayidle -w timeout 900 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock' -# sway idle without lock -#exec-once = swayidle -w timeout 900 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' +# Starting hypridle to start hyprlock +exec-once = hypridle & -## Here are list of features available but disabled by default -#exec-once = swww query || swww init && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper +# Start pyprland daemon +exec-once = pypr & + +# Here are list of features available but disabled by default +# exec-once = swww query || swww-daemon --format xrgb && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper #gnome polkit for nixos #exec-once = $scriptsDir/Polkit-NixOS.sh diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index f55f0d5e..7ffd702e 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -1,4 +1,4 @@ -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # # This is where you put your own keybinds. Be Mindful to check as well ~/.config/hypr/configs/Keybinds.conf to avoid conflict # if you think I should replace the Pre-defined Keybinds in ~/.config/hypr/configs/Keybinds.conf , submit an issue or let me know in DC and present me a valid reason as to why, such as conflicting with global shortcuts, etc etc @@ -12,12 +12,16 @@ $scriptsDir = $HOME/.config/hypr/scripts $UserScripts = $HOME/.config/hypr/UserScripts # rofi App launcher -bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run,window +#bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run,window # Super Key to Launch rofi menu bind = $mainMod, D, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run,window bind = $mainMod, Return, exec, $term # Launch terminal bind = $mainMod, T, exec, $files +# pyprland +bind = $mainMod SHIFT, Return, exec, pypr toggle term # Dropdown terminal +bind = $mainMod, Z, exec, pypr zoom # Toggle Zoom + # User Added Keybinds bind = $mainMod SHIFT, O, exec, $UserScripts/ZshChangeTheme.sh # Change oh-my-zsh theme diff --git a/config/hypr/UserConfigs/UserSettings.conf b/config/hypr/UserConfigs/UserSettings.conf index fa2e55a9..6c801f7f 100644 --- a/config/hypr/UserConfigs/UserSettings.conf +++ b/config/hypr/UserConfigs/UserSettings.conf @@ -1,8 +1,8 @@ -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # # User Settings # This is where you put your own settings as this will not be touched during update -## refer to Hyprland wiki for more info https://wiki.hyprland.org/Configuring/Variables +# refer to Hyprland wiki for more info https://wiki.hyprland.org/Configuring/Variables # Sourcing colors generated by pywal source = $HOME/.cache/wal/colors-hyprland diff --git a/config/hypr/UserConfigs/WindowRules.conf b/config/hypr/UserConfigs/WindowRules.conf index a3a77cfb..38d41222 100644 --- a/config/hypr/UserConfigs/WindowRules.conf +++ b/config/hypr/UserConfigs/WindowRules.conf @@ -1,4 +1,4 @@ -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more windowrule = float, org.kde.polkit-kde-authentication-agent-1 @@ -11,7 +11,9 @@ windowrule = float, zoom windowrule = float, rofi windowrule = float, gnome-system-monitor windowrule = float, yad - +windowrule = float, ^(wihotspot-gui)$ # wifi hotspot +windowrule = float, ^(evince)$ # document viewer +windowrule = float, ^(file-roller)$ # archive manager #windowrule = noblur,gamescope #windowrule = fullscreen,gamescope #windowrule = workspace 6 silent,^(gamescope)$ @@ -19,9 +21,10 @@ windowrule = float, yad windowrule = center,^(pavucontrol) # windowrule v2 -windowrulev2 = workspace 1, class:^(thunderbird)$ -windowrulev2 = workspace 2, class:^(firefox)$ -windowrulev2 = workspace 2, class:^(Firefox-esr)$ +windowrulev2 = workspace 1, class:^([Tt]hunderbird)$ +windowrulev2 = workspace 2, class:^([Ff]irefox)$ +windowrulev2 = workspace 2, class:^(org.mozilla.firefox)$ +windowrulev2 = workspace 2, class:^([Ff]irefox-esr)$ windowrulev2 = workspace 2, class:^(Microsoft-edge-beta)$ windowrulev2 = workspace 3, class:^([Tt]hunar)$ windowrulev2 = workspace 4, class:^(com.obsproject.Studio)$ @@ -32,15 +35,32 @@ windowrulev2 = workspace 7 silent, class:^(discord)$ windowrulev2 = workspace 7 silent, class:^(WebCord)$ windowrulev2 = workspace 9 silent, class:^([Aa]udacious)$ +# windowrule v2 - float +windowrulev2 = float, class:([Tt]hunar), title:(File Operation Progress) +windowrulev2 = float, class:([Tt]hunar), title:(Confirm to replace files) +windowrulev2 = float, class:(xdg-desktop-portal-gtk) +windowrulev2 = float, class:(org.gnome.Calculator), title:(Calculator) + #opacity (transparent) #enable as desired windowrulev2 = opacity 0.9 0.6, class:^([Rr]ofi)$ windowrulev2 = opacity 0.9 0.7, class:^(Brave-browser)$ windowrulev2 = opacity 0.9 0.7, class:^(Brave-browser-dev)$ -windowrulev2 = opacity 0.9 0.7, class:^(firefox)$ -windowrulev2 = opacity 0.9 0.7, class:^(Firefox-esr)$ +windowrulev2 = opacity 0.9 0.7, class:^([Ff]irefox)$ +windowrulev2 = opacity 0.9 0.7, class:^(org.mozilla.firefox)$ +windowrulev2 = opacity 0.9 0.7, class:^([Ff]irefox-esr)$ +windowrulev2 = opacity 0.9 0.7, class:^([Mm]icrosoft-edge-stable)$ +windowrulev2 = opacity 0.9 0.7, class:^([Mm]icrosoft-edge-beta)$ +windowrulev2 = opacity 0.9 0.7, class:^([Mm]icrosoft-edge-dev)$ +windowrulev2 = opacity 0.9 0.8, class:^(google-chrome)$ +windowrulev2 = opacity 0.9 0.8, class:^(google-chrome-beta)$ +windowrulev2 = opacity 0.9 0.8, class:^(google-chrome-dev)$ +windowrulev2 = opacity 0.9 0.8, class:^(google-chrome-unstable)$ +windowrulev2 = opacity 0.94 0.86, class:^(chrome-.+-Default)$ # Chrome PWAs windowrulev2 = opacity 0.9 0.8, class:^([Tt]hunar)$ windowrulev2 = opacity 0.8 0.6, class:^(pcmanfm-qt)$ windowrulev2 = opacity 0.9 0.7, class:^(gedit)$ +windowrulev2 = opacity 0.9 0.8, class:^(deluge)$ +windowrulev2 = opacity 0.9 0.8, class:^(Alacritty)$ windowrulev2 = opacity 0.9 0.8, class:^(kitty)$ windowrulev2 = opacity 0.9 0.7, class:^(mousepad)$ windowrulev2 = opacity 0.9 0.7, class:^(codium-url-handler)$ @@ -48,6 +68,15 @@ windowrulev2 = opacity 0.9 0.7, class:^(VSCodium)$ windowrulev2 = opacity 0.9 0.7, class:^(yad)$ windowrulev2 = opacity 0.9 0.7, class:^(com.obsproject.Studio)$ windowrulev2 = opacity 0.9 0.7, class:^([Aa]udacious)$ +windowrulev2 = opacity 0.9 0.8, class:^(org.gnome.Nautilus)$ +windowrulev2 = opacity 0.9 0.8, class:^(code-url-handler)$ +windowrulev2 = opacity 0.9 0.8, class:^(VSCode)$ +windowrulev2 = opacity 0.9 0.8, class:^(jetbrains-studio)$ # Android Studio +windowrulev2 = opacity 0.94 0.86, class:^(discord)$ +windowrulev2 = opacity 0.9 0.8, class:^(org.telegram.desktop)$ +windowrulev2 = opacity 0.94 0.86, class:^(gnome-disks)$ +windowrulev2 = opacity 0.9 0.8, class:^(org.gnome.baobab)$ +windowrulev2 = opacity 0.9 0.8, class:^(seahorse)$ # gnome-keyring gui #layerrule = unset,class:^([Rr]ofi)$ @@ -69,4 +98,4 @@ windowrulev2=float, title:^(Picture-in-Picture)$ windowrulev2=size 25% 25%,title:^(Picture-in-Picture)$ #windowrulev2=size 25% 25%,title:^(Firefox)$ windowrulev2=move 72% 7%,title:^(Picture-in-Picture)$ -#windowrulev2=move 72% 7%,title:^(Firefox)$
\ No newline at end of file +#windowrulev2=move 72% 7%,title:^(Firefox)$ diff --git a/config/hypr/UserConfigs/WorkspaceRules.conf b/config/hypr/UserConfigs/WorkspaceRules.conf new file mode 100644 index 00000000..8e98244a --- /dev/null +++ b/config/hypr/UserConfigs/WorkspaceRules.conf @@ -0,0 +1,20 @@ +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # + +# You can set workspace rules to achieve workspace-specific behaviors. +# For instance, you can define a workspace where all windows are drawn without borders or gaps. + +# https://wiki.hyprland.org/Configuring/Workspace-Rules/ + +# Assigning workspace to a certain monitor +# workspace = 1, monitor:eDP-1 +# workspace = 2, monitor:DP-2 + + +# example rules (from wiki) +# workspace = 3, rounding:false, decorate:false +# workspace = name:coding, rounding:false, decorate:false, gapsin:0, gapsout:0, border:false, decorate:false, monitor:DP-1 +# workspace = 8,bordersize:8 +# workspace = name:Hello, monitor:DP-1, default:true +# workspace = name:gaming, monitor:desc:Chimei Innolux Corporation 0x150C, default:true +# workspace = 5, on-created-empty:[float] firefox +# workspace = special:scratchpad, on-created-empty:foot
\ No newline at end of file diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh index 163101e2..af5c65d2 100755 --- a/config/hypr/UserScripts/QuickEdit.sh +++ b/config/hypr/UserScripts/QuickEdit.sh @@ -12,12 +12,13 @@ menu(){ printf "5. view Monitors\n" printf "6. view Laptop-Keybinds\n" printf "7. view User-Settings\n" - printf "8. view Default-Settings\n" - printf "9. view Default-Keybinds\n" + printf "8. view Workspace-Rules\n" + printf "9. view Default-Settings\n" + printf "10. view Default-Keybinds\n" } main() { - choice=$(menu | rofi -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1) + choice=$(menu | rofi -i -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1) case $choice in 1) kitty -e nano "$UserConfigs/ENVariables.conf" @@ -41,9 +42,12 @@ main() { kitty -e nano "$UserConfigs/UserSettings.conf" ;; 8) + kitty -e nano "$UserConfigs/WorkspaceRules.conf" + ;; + 9) kitty -e nano "$configs/Settings.conf" ;; - 9) + 10) kitty -e nano "$configs/Keybinds.conf" ;; *) diff --git a/config/hypr/UserScripts/RofiBeats.sh b/config/hypr/UserScripts/RofiBeats.sh index 16777f55..e3c79587 100755 --- a/config/hypr/UserScripts/RofiBeats.sh +++ b/config/hypr/UserScripts/RofiBeats.sh @@ -9,9 +9,11 @@ iDIR="$HOME/.config/swaync/icons" # Define menu options as an associative array declare -A menu_options=( ["Lofi Girl ☕️🎶"]="https://play.streamafrica.net/lofiradio" - ["96.3 Easy Rock 📻🎶"]="https://radio-stations-philippines.com/easy-rock" - ["Ghibli Music 🎻🎶"]="https://youtube.com/playlist?list=PLNi74S754EXbrzw-IzVhpeAaMISNrzfUy&si=rqnXCZU5xoFhxfOl" + ["Easy Rock 96.3 FM 📻🎶"]="https://radio-stations-philippines.com/easy-rock" + ["Wish 107.5 FM 📻🎶"]="https://radio-stations-philippines.com/dwnu-1075-wish" + ["Wish 107.5 YT Pinoy HipHop 🎻🎶"]="https://youtube.com/playlist?list=PLkrzfEDjeYJnmgMYwCKid4XIFqUKBVWEs&si=vahW_noh4UDJ5d37" ["Top Youtube Music 2023 ☕️🎶"]="https://youtube.com/playlist?list=PLDIoUOhQQPlXr63I_vwF9GD8sAKh77dWU&si=y7qNeEVFNgA-XxKy" + ["Wish 107.5 YT Wishclusives ☕️🎶"]="https://youtube.com/playlist?list=PLkrzfEDjeYJn5B22H9HOWP3Kxxs-DkPSM&si=d_Ld2OKhGvpH48WO" ["Chillhop ☕️🎶"]="http://stream.zeno.fm/fyn8eh3h5f8uv" ["SmoothChill ☕️🎶"]="https://media-ssl.musicradio.com/SmoothChill" ["Relaxing Music ☕️🎶"]="https://youtube.com/playlist?list=PLMIbmfP_9vb8BCxRoraJpoo4q1yMFg4CE" @@ -26,7 +28,7 @@ notification() { # Main function main() { - choice=$(printf "%s\n" "${!menu_options[@]}" | rofi -dmenu -config ~/.config/rofi/config-rofi-Beats.rasi -i -p "") + choice=$(printf "%s\n" "${!menu_options[@]}" | rofi -i -dmenu -config ~/.config/rofi/config-rofi-Beats.rasi -p "") if [ -z "$choice" ]; then exit 1 diff --git a/config/hypr/UserScripts/WallpaperAutoChange.sh b/config/hypr/UserScripts/WallpaperAutoChange.sh index 56f2ee05..e52b7e90 100755 --- a/config/hypr/UserScripts/WallpaperAutoChange.sh +++ b/config/hypr/UserScripts/WallpaperAutoChange.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 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 diff --git a/config/hypr/UserScripts/WallpaperRandom.sh b/config/hypr/UserScripts/WallpaperRandom.sh index f8cc54f9..52fc819d 100755 --- a/config/hypr/UserScripts/WallpaperRandom.sh +++ b/config/hypr/UserScripts/WallpaperRandom.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Script for Random Wallpaper ( CTRL ALT W) wallDIR="$HOME/Pictures/wallpapers" @@ -17,7 +17,7 @@ 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 +swww query || swww-daemon --format xrgb && swww img ${RANDOMPICS} $SWWW_PARAMS ${scriptsDir}/PywalSwww.sh diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index 663fb540..de9c6546 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # This script for selecting wallpapers (SUPER W) SCRIPTSDIR="$HOME/.config/hypr/scripts" @@ -25,7 +25,7 @@ RANDOM_PIC="${PICS[$((RANDOM % ${#PICS[@]}))]}" RANDOM_PIC_NAME="${#PICS[@]}. random" # Rofi command -rofi_command="rofi -show -dmenu -config ~/.config/rofi/config-wallpaper.rasi" +rofi_command="rofi -i -show -dmenu -config ~/.config/rofi/config-wallpaper.rasi" menu() { for i in "${!PICS[@]}"; do @@ -40,7 +40,7 @@ menu() { printf "$RANDOM_PIC_NAME\n" } -swww query || swww init +swww query || swww-daemon --format xrgb main() { choice=$(menu | ${rofi_command}) diff --git a/config/hypr/UserScripts/Weather.py b/config/hypr/UserScripts/Weather.py index 413682e1..413682e1 100755..100644 --- a/config/hypr/UserScripts/Weather.py +++ b/config/hypr/UserScripts/Weather.py diff --git a/config/hypr/UserScripts/ZshChangeTheme.sh b/config/hypr/UserScripts/ZshChangeTheme.sh index 7057ed2e..46d2249e 100755 --- a/config/hypr/UserScripts/ZshChangeTheme.sh +++ b/config/hypr/UserScripts/ZshChangeTheme.sh @@ -5,7 +5,7 @@ file_extension=".zsh-theme" themes_array=($(find "$themes_dir" -type f -name "*$file_extension" -exec basename {} \; | sed -e "s/$file_extension//")) -rofi_command="rofi -dmenu -config ~/.config/rofi/config-zsh-theme.rasi" +rofi_command="rofi -i -dmenu -config ~/.config/rofi/config-zsh-theme.rasi" menu() { for theme in "${themes_array[@]}"; do diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 3ecc4a37..1946cc27 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -1,4 +1,4 @@ -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # # Default Keybinds # visit https://wiki.hyprland.org/Configuring/Binds/ for more info @@ -23,12 +23,13 @@ bind = CTRL ALT, P, exec, $scriptsDir/Wlogout.sh bind = $mainMod, H, exec, $scriptsDir/KeyHints.sh # Small help file bind = $mainMod ALT, R, exec, $scriptsDir/Refresh.sh # Refresh waybar, swaync, rofi bind = $mainMod ALT, E, exec, $scriptsDir/RofiEmoji.sh # emoji +bind = $mainMod, S, exec, $scriptsDir/RofiSearch.sh # Google search from Rofi 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 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 +bind = SHIFT, ALT_L, exec, $scriptsDir/SwitchKeyboardLayout.sh # Switch Keyboard Layout # FEATURES / EXTRAS (UserScripts) bind = $mainMod, E, exec, $UserScripts/QuickEdit.sh # Quick Edit Hyprland Settings @@ -106,43 +107,45 @@ bind = $mainMod SHIFT, tab, workspace, m-1 bind = $mainMod SHIFT, U, movetoworkspace, special bind = $mainMod, U, togglespecialworkspace, -# Switch workspaces with mainMod + [0-9] -bind = $mainMod, 1, workspace, 1 -bind = $mainMod, 2, workspace, 2 -bind = $mainMod, 3, workspace, 3 -bind = $mainMod, 4, workspace, 4 -bind = $mainMod, 5, workspace, 5 -bind = $mainMod, 6, workspace, 6 -bind = $mainMod, 7, workspace, 7 -bind = $mainMod, 8, workspace, 8 -bind = $mainMod, 9, workspace, 9 -bind = $mainMod, 0, workspace, 10 +# The following mappings use the key codes to better support various keyboard layouts +# 1 is code:10, 2 is code 11, etc +# Switch workspaces with mainMod + [0-9] +bind = $mainMod, code:10, workspace, 1 +bind = $mainMod, code:11, workspace, 2 +bind = $mainMod, code:12, workspace, 3 +bind = $mainMod, code:13, workspace, 4 +bind = $mainMod, code:14, workspace, 5 +bind = $mainMod, code:15, workspace, 6 +bind = $mainMod, code:16, workspace, 7 +bind = $mainMod, code:17, workspace, 8 +bind = $mainMod, code:18, workspace, 9 +bind = $mainMod, code:19, workspace, 10 -# Move active window and follow to workspace -bind = $mainMod SHIFT, 1, movetoworkspace, 1 -bind = $mainMod SHIFT, 2, movetoworkspace, 2 -bind = $mainMod SHIFT, 3, movetoworkspace, 3 -bind = $mainMod SHIFT, 4, movetoworkspace, 4 -bind = $mainMod SHIFT, 5, movetoworkspace, 5 -bind = $mainMod SHIFT, 6, movetoworkspace, 6 -bind = $mainMod SHIFT, 7, movetoworkspace, 7 -bind = $mainMod SHIFT, 8, movetoworkspace, 8 -bind = $mainMod SHIFT, 9, movetoworkspace, 9 -bind = $mainMod SHIFT, 0, movetoworkspace, 10 +# Move active window and follow to workspace mainMod + SHIFT [0-9] +bind = $mainMod SHIFT, code:10, movetoworkspace, 1 +bind = $mainMod SHIFT, code:11, movetoworkspace, 2 +bind = $mainMod SHIFT, code:12, movetoworkspace, 3 +bind = $mainMod SHIFT, code:13, movetoworkspace, 4 +bind = $mainMod SHIFT, code:14, movetoworkspace, 5 +bind = $mainMod SHIFT, code:15, movetoworkspace, 6 +bind = $mainMod SHIFT, code:16, movetoworkspace, 7 +bind = $mainMod SHIFT, code:17, movetoworkspace, 8 +bind = $mainMod SHIFT, code:18, movetoworkspace, 9 +bind = $mainMod SHIFT, code:19, movetoworkspace, 10 bind = $mainMod SHIFT, bracketleft, movetoworkspace, -1 # brackets [ or ] bind = $mainMod SHIFT, bracketright, movetoworkspace, +1 -# Move active window to a workspace silently -bind = $mainMod CTRL, 1, movetoworkspacesilent, 1 -bind = $mainMod CTRL, 2, movetoworkspacesilent, 2 -bind = $mainMod CTRL, 3, movetoworkspacesilent, 3 -bind = $mainMod CTRL, 4, movetoworkspacesilent, 4 -bind = $mainMod CTRL, 5, movetoworkspacesilent, 5 -bind = $mainMod CTRL, 6, movetoworkspacesilent, 6 -bind = $mainMod CTRL, 7, movetoworkspacesilent, 7 -bind = $mainMod CTRL, 8, movetoworkspacesilent, 8 -bind = $mainMod CTRL, 9, movetoworkspacesilent, 9 -bind = $mainMod CTRL, 0, movetoworkspacesilent, 10 +# Move active window to a workspace silently mainMod + CTRL [0-9] +bind = $mainMod CTRL, code:10, movetoworkspacesilent, 1 +bind = $mainMod CTRL, code:11, movetoworkspacesilent, 2 +bind = $mainMod CTRL, code:12, movetoworkspacesilent, 3 +bind = $mainMod CTRL, code:13, movetoworkspacesilent, 4 +bind = $mainMod CTRL, code:14, movetoworkspacesilent, 5 +bind = $mainMod CTRL, code:15, movetoworkspacesilent, 6 +bind = $mainMod CTRL, code:16, movetoworkspacesilent, 7 +bind = $mainMod CTRL, code:17, movetoworkspacesilent, 8 +bind = $mainMod CTRL, code:18, movetoworkspacesilent, 9 +bind = $mainMod CTRL, code:19, movetoworkspacesilent, 10 bind = $mainMod CTRL, bracketleft, movetoworkspacesilent, -1 # brackets [ or ] bind = $mainMod CTRL, bracketright, movetoworkspacesilent, +1 diff --git a/config/hypr/configs/Settings.conf b/config/hypr/configs/Settings.conf index 96f6f1e9..e96d85e3 100644 --- a/config/hypr/configs/Settings.conf +++ b/config/hypr/configs/Settings.conf @@ -1,8 +1,8 @@ -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # # Default Settings. avoid changing this file as during update, this will be replaced -## refer to Hyprland wiki for more info https://wiki.hyprland.org/Configuring/Variables +# refer to Hyprland wiki for more info https://wiki.hyprland.org/Configuring/Variables # Initial boot script enable to apply initial wallpapers, theming, new settings etc. exec-once = $HOME/.config/hypr/initial-boot.sh
\ No newline at end of file diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf new file mode 100644 index 00000000..549f1b1c --- /dev/null +++ b/config/hypr/hypridle.conf @@ -0,0 +1,33 @@ +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # +# Hypridle +# Original config submitted by https://github.com/SherLock707 + + +general { + # lock_cmd = notify-send "lock!" # dbus/sysd lock command (loginctl lock-session) + # unlock_cmd = notify-send "unlock!" # same as above, but unlock + before_sleep_cmd = hyprlock # command ran before sleep + # after_sleep_cmd = notify-send "Awake!" # command ran after sleep + ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) +} + +# Warn +listener { + timeout = 540 # 9 min + on-timeout = notify-send "You are idle!" # command to run when timeout has passed + on-resume = notify-send "Welcome back!" # command to run when activity is detected after timeout has fired. +} + +# Screenlock +listener { + timeout = 600 # 10 min + on-timeout = hyprlock # command to run when timeout has passed + # on-resume = notify-send "Welcome back to your desktop!" # command to run when activity is detected after timeout has fired. +} + +# Suspend # disabled by default +# listener { + # timeout = 1200 # 20 min + # on-timeout = systemctl suspend # command to run when timeout has passed + # on-resume = notify-send "Welcome back to your desktop!" # command to run when activity is detected after timeout has fired. +# } diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 69f421cf..a8ae26f4 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -1,12 +1,12 @@ # Sourcing external config files -###### Default Configs +# Default Configs $configs = $HOME/.config/hypr/configs source=$configs/Settings.conf source=$configs/Keybinds.conf -#### User Configs +# User Configs $UserConfigs = $HOME/.config/hypr/UserConfigs source= $UserConfigs/Startup_Apps.conf @@ -16,4 +16,5 @@ 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 +source= $UserConfigs/UserSettings.conf +source= $UserConfigs/WorkspaceRules.conf
\ No newline at end of file diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf new file mode 100644 index 00000000..b2a1a163 --- /dev/null +++ b/config/hypr/hyprlock.conf @@ -0,0 +1,132 @@ +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # +# Hyprlock +# Original config submitted by https://github.com/SherLock707 + +source = $HOME/.cache/wal/colors-hyprland + +general { + grace = 1 +} + +background { + monitor = + path = screenshot # screenshot of your desktop + # path = $HOME/.config/rofi/.current_wallpaper # NOTE only png supported for now + color = $color7 + + # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations + blur_size = 4 + blur_passes = 2 # 0 disables blurring + noise = 0.0117 + contrast = 1.3000 # Vibrant!!! + brightness = 0.8000 + vibrancy = 0.2100 + vibrancy_darkness = 0.0 +} + +input-field { + monitor = + size = 250, 50 + outline_thickness = 3 + dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = true + outer_color = $color1 + inner_color = $color0 + font_color = $color7 + fade_on_empty = true + placeholder_text = <i>Password...</i> # Text rendered in the input box when it's empty. + hide_input = false + + position = 0, 200 + halign = center + valign = bottom +} + +# Date +label { + monitor = + text = cmd[update:18000000] echo "<b> "$(date +'%A, %-d %B %Y')" </b>" + color = $color5 + font_size = 34 + font_family = JetBrains Mono Nerd Font 10 + + position = 0, -150 + halign = center + valign = top +} + +# Week +label { + monitor = + text = cmd[update:18000000] echo "<b> "$(date +'Week %U')" </b>" + color = $color7 + font_size = 24 + font_family = JetBrains Mono Nerd Font 10 + + position = 0, -250 + halign = center + valign = top +} + +# Time +label { + monitor = +# text = cmd[update:1000] echo "<b><big> $(date +"%I:%M:%S %p") </big></b>" # AM/PM +text = cmd[update:1000] echo "<b><big> $(date +"%H:%M:%S") </big></b>" # 24H + color = $color7 + font_size = 94 + font_family = JetBrains Mono Nerd Font 10 + + position = 0, 0 + halign = center + valign = center +} + +label { + monitor = + text = $USER + color = $color7 + font_size = 18 + font_family = Inter Display Medium + + position = 0, 100 + halign = center + valign = bottom +} + +label { + monitor = + text = cmd[update:60000] echo "<b> "$(uptime -p)" </b>" + color = $color12 + font_size = 24 + font_family = JetBrains Mono Nerd Font 10 + position = 0, 0 + halign = right + valign = bottom +} + +label { + monitor = + text = cmd[update:3600000] ping -c 1 wttr.in > /dev/null && curl -s 'wttr.in?format=2' # For specific location : wttr.in/busan?format=2 + color = $color10 + font_size = 24 + font_family = JetBrains Mono Nerd Font 10 + position = 50, 0 + halign = left + valign = bottom +} + +image { + monitor = + path = $HOME/.config/rofi/.current_wallpaper + size = 230 + rounding = -1 + border_size = 4 + border_color = $color12 + rotate = 0 + reload_time = -1 + position = 0, 300 + halign = center + valign = bottom +}
\ No newline at end of file diff --git a/config/hypr/initial-boot.sh b/config/hypr/initial-boot.sh index fffdcd98..b6c57f3e 100755 --- a/config/hypr/initial-boot.sh +++ b/config/hypr/initial-boot.sh @@ -7,9 +7,9 @@ # Variables scriptsDir=$HOME/.config/hypr/scripts -wallpaper=$HOME/Pictures/wallpapers/Fantasy-Landscape.png +wallpaper=$HOME/Pictures/wallpapers/Dark_Nature.png waybar_style="$HOME/.config/waybar/style/[Pywal] Chroma Tally.css" -kvantum_theme="Tokyo-Night" +kvantum_theme="Catppuccin-Mocha" swww="swww img" effect="--transition-bezier .43,1.19,1,.4 --transition-fps 30 --transition-type grow --transition-pos 0.925,0.977 --transition-duration 2" @@ -20,7 +20,7 @@ if [ ! -f ~/.config/hypr/.initial_startup_done ]; then # Initialize pywal and wallpaper if [ -f "$wallpaper" ]; then wal -i $wallpaper -s -t > /dev/null - swww init && $swww $wallpaper $effect + swww query || swww-daemon && $swww $wallpaper $effect "$scriptsDir/PywalSwww.sh" > /dev/null 2>&1 & fi diff --git a/config/hypr/pyprland.toml b/config/hypr/pyprland.toml new file mode 100644 index 00000000..2ab74e86 --- /dev/null +++ b/config/hypr/pyprland.toml @@ -0,0 +1,12 @@ +[pyprland] + +plugins = [ + "scratchpads", + "magnify", +] + +[scratchpads.term] +animation = "fromTop" +command = "kitty --class kitty-dropterm" +class = "kitty-dropterm" +size = "75% 60%" diff --git a/config/hypr/scripts/AirplaneMode.sh b/config/hypr/scripts/AirplaneMode.sh index 1176c80f..1587a2bc 100755 --- a/config/hypr/scripts/AirplaneMode.sh +++ b/config/hypr/scripts/AirplaneMode.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 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 04987ab1..7d43f570 100755 --- a/config/hypr/scripts/Brightness.sh +++ b/config/hypr/scripts/Brightness.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Script for Monitor backlights (if supported) using brightnessctl iDIR="$HOME/.config/swaync/icons" diff --git a/config/hypr/scripts/BrightnessKbd.sh b/config/hypr/scripts/BrightnessKbd.sh index f96c6e08..92083e78 100755 --- a/config/hypr/scripts/BrightnessKbd.sh +++ b/config/hypr/scripts/BrightnessKbd.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 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 8ad0dd40..321b8ec6 100755 --- a/config/hypr/scripts/ChangeBlur.sh +++ b/config/hypr/scripts/ChangeBlur.sh @@ -1,6 +1,6 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## -## Script for changing blurs on the fly +# /* ---- 💫 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 5981024a..75823bab 100755 --- a/config/hypr/scripts/ChangeLayout.sh +++ b/config/hypr/scripts/ChangeLayout.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 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 682174fc..ddce2999 100755 --- a/config/hypr/scripts/ClipManager.sh +++ b/config/hypr/scripts/ClipManager.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Clipboard Manager. This script uses cliphist, rofi, and wl-copy. # Actions: @@ -8,7 +8,7 @@ while true; do result=$( - rofi -dmenu \ + rofi -i -dmenu \ -kb-custom-1 "Control-Delete" \ -kb-custom-2 "Alt-Delete" \ -config ~/.config/rofi/config-clipboard.rasi < <(cliphist list) diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 885c7c6a..6c9f610f 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -17,7 +17,7 @@ light_rofi_pywal="$HOME/.cache/wal/colors-rofi-light.rasi" pkill swaybg # Initialize swww if needed -swww query || swww init +swww query || swww-daemon # Set swww options swww="swww img" @@ -87,13 +87,13 @@ $swww "${next_wallpaper}" $effect # Set Kvantum Manager theme & QT5/QT6 settings if [ "$next_mode" = "Dark" ]; then - kvantum_theme="Tokyo-Night" - qt5ct_color_scheme="$HOME/.config/qt5ct/colors/Tokyo-Night.conf" - qt6ct_color_scheme="$HOME/.config/qt6ct/colors/Tokyo-Night.conf" + kvantum_theme="Catppuccin-Mocha" + qt5ct_color_scheme="$HOME/.config/qt5ct/colors/Catppuccin-Mocha.conf" + qt6ct_color_scheme="$HOME/.config/qt6ct/colors/Catppuccin-Mocha.conf" else - kvantum_theme="Tokyo-Day" - qt5ct_color_scheme="$HOME/.config/qt5ct/colors/Tokyo-Day.conf" - qt6ct_color_scheme="$HOME/.config/qt6ct/colors/Tokyo-Day.conf" + kvantum_theme="Catppuccin-Latte" + qt5ct_color_scheme="$HOME/.config/qt5ct/colors/Catppuccin-Latte.conf" + qt6ct_color_scheme="$HOME/.config/qt6ct/colors/Catppuccin-Latte.conf" fi kvantummanager --set "$kvantum_theme" diff --git a/config/hypr/scripts/GameMode.sh b/config/hypr/scripts/GameMode.sh index f05676eb..37afe066 100755 --- a/config/hypr/scripts/GameMode.sh +++ b/config/hypr/scripts/GameMode.sh @@ -1,12 +1,12 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Game Mode. Turning off all animations notif="$HOME/.config/swaync/images/bell.png" SCRIPTSDIR="$HOME/.config/hypr/scripts" -HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==2{print $2}') +HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}') if [ "$HYPRGAMEMODE" = 1 ] ; then hyprctl --batch "\ keyword animations:enabled 0;\ @@ -20,7 +20,7 @@ if [ "$HYPRGAMEMODE" = 1 ] ; then notify-send -e -u low -i "$notif" "gamemode enabled. All animations off" exit else - swww init && swww img "$HOME/.config/rofi/.current_wallpaper" + swww-daemon && swww img "$HOME/.config/rofi/.current_wallpaper" & sleep 0.1 ${SCRIPTSDIR}/PywalSwww.sh sleep 0.5 diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh index 5b79cf06..d45f2e7e 100755 --- a/config/hypr/scripts/KeyHints.sh +++ b/config/hypr/scripts/KeyHints.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Keyhints. Idea got from Garuda Hyprland # Detect monitor resolution and scale @@ -39,10 +39,13 @@ yad --width=$dynamic_width --height=$dynamic_height \ --timeout-indicator=bottom \ "ESC" "close this app" "" "=" "SUPER KEY (Windows Key)" "(SUPER KEY)" \ " enter" "Terminal" "(kitty)" \ -" or D" "App Launcher" "(rofi)" \ +" SHIFT enter" "DropDown Terminal" "(kitty-pyprland)" \ +" D" "App Launcher" "(rofi)" \ " T" "Open File Manager" "(Thunar)" \ +" S" "Google Search" "(rofi)" \ " Q" "close active window" "(not kill)" \ " Shift Q " "closes a specified window" "(window)" \ +" Z" "Desktop Zoom" "(pyprland)" \ " Alt V" "Clipboard Manager" "(cliphist)" \ " W" "Choose wallpaper" "(Wallpaper Menu)" \ "CTRL ALT W" "Random wallpaper" "(via swww)" \ @@ -68,6 +71,3 @@ yad --width=$dynamic_width --height=$dynamic_height \ " E" "View or EDIT Keybinds, Settings, Monitor" "" \ "" "" "" \ "More tips:" "https://github.com/JaKooLit/Hyprland-Dots/wiki" ""\ - - - diff --git a/config/hypr/scripts/LockScreen.sh b/config/hypr/scripts/LockScreen.sh index 1e676780..56d496a5 100755 --- a/config/hypr/scripts/LockScreen.sh +++ b/config/hypr/scripts/LockScreen.sh @@ -1,7 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## -# For Swaylock +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## -CONFIG="$HOME/.config/swaylock/config" - -sleep 0.5s; swaylock --config ${CONFIG} & disown +# For Hyprlock +hyprlock -q
\ No newline at end of file diff --git a/config/hypr/scripts/MediaCtrl.sh b/config/hypr/scripts/MediaCtrl.sh index d9855e4f..b3f94295 100755 --- a/config/hypr/scripts/MediaCtrl.sh +++ b/config/hypr/scripts/MediaCtrl.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 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 048c1b02..51675eff 100755 --- a/config/hypr/scripts/Polkit-NixOS.sh +++ b/config/hypr/scripts/Polkit-NixOS.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 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 diff --git a/config/hypr/scripts/Polkit.sh b/config/hypr/scripts/Polkit.sh index 07b1211d..80310ba0 100755 --- a/config/hypr/scripts/Polkit.sh +++ b/config/hypr/scripts/Polkit.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 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 diff --git a/config/hypr/scripts/PortalHyprland.sh b/config/hypr/scripts/PortalHyprland.sh index 389ec738..59f2e1df 100755 --- a/config/hypr/scripts/PortalHyprland.sh +++ b/config/hypr/scripts/PortalHyprland.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # For manually starting xdg-desktop-portal sleep 1 diff --git a/config/hypr/scripts/PywalSwww.sh b/config/hypr/scripts/PywalSwww.sh index 4ed7448f..30a4d980 100755 --- a/config/hypr/scripts/PywalSwww.sh +++ b/config/hypr/scripts/PywalSwww.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Pywal Colors for current wallpaper # Define the path to the swww cache directory @@ -34,5 +34,5 @@ if [ "$ln_success" = true ]; then # wal -i "$wallpaper_path" echo 'about to execute wal' # execute pywal skipping tty and terminal changes - wal -i "$wallpaper_path" -s -t & + wal -i "$wallpaper_path" -s -t -n -e & fi diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh index a585eb84..15516dff 100755 --- a/config/hypr/scripts/Refresh.sh +++ b/config/hypr/scripts/Refresh.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Scripts for refreshing waybar, rofi, swaync, pywal colors SCRIPTSDIR=$HOME/.config/hypr/scripts diff --git a/config/hypr/scripts/RefreshNoWaybar.sh b/config/hypr/scripts/RefreshNoWaybar.sh index f0c3d569..689bccf0 100755 --- a/config/hypr/scripts/RefreshNoWaybar.sh +++ b/config/hypr/scripts/RefreshNoWaybar.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Modified version of Refresh but no waybar refresh # Used by automatic wallpaper change diff --git a/config/hypr/scripts/RofiEmoji.sh b/config/hypr/scripts/RofiEmoji.sh index 4182a5a9..cf6bec55 100755 --- a/config/hypr/scripts/RofiEmoji.sh +++ b/config/hypr/scripts/RofiEmoji.sh @@ -1,13 +1,13 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 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| +sed '1,/^# # DATA # #$/d' $0 | +rofi -i -dmenu -config ~/.config/rofi/config-long.rasi| cut -d ' ' -f 1 | tr -d '\n' | wl-copy exit -### DATA ### +# # DATA # # 😀 grinning face face smile happy joy :D grin 😃 grinning face with big eyes face happy joy haha :D :) smile funny 😄 grinning face with smiling eyes face happy joy funny haha laugh like :D :) smile diff --git a/config/hypr/scripts/RofiSearch.sh b/config/hypr/scripts/RofiSearch.sh new file mode 100755 index 00000000..13148455 --- /dev/null +++ b/config/hypr/scripts/RofiSearch.sh @@ -0,0 +1,10 @@ +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# Modified Script for Google Search +# Original Submitted by https://github.com/LeventKaanOguz + +# Opens rofi in dmenu mod and waits for input. Then pushes the input to the query of the URL. +# + +rofi_config="$HOME/.config/rofi/config-search.rasi" + +echo "" | rofi -dmenu -config "$rofi_config" -p "Search:" | xargs -I{} xdg-open https://www.google.com/search?q={} diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh index fa1b40ad..d2ee51a2 100755 --- a/config/hypr/scripts/ScreenShot.sh +++ b/config/hypr/scripts/ScreenShot.sh @@ -1,9 +1,9 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Screenshots scripts iDIR="$HOME/.config/swaync/icons" -sDIR="$HOME/.config/hypr/UserScripts" +sDIR="$HOME/.config/hypr/scripts" notify_cmd_shot="notify-send -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/picture.png" time=$(date "+%d-%b_%H-%M-%S") @@ -75,7 +75,13 @@ shotwin() { } shotarea() { - cd ${dir} && grim -g "$(slurp)" - | tee "$file" | wl-copy + tmpfile=$(mktemp) + grim -g "$(slurp)" - >"$tmpfile" + if [[ -s "$tmpfile" ]]; then + wl-copy <"$tmpfile" + mv "$tmpfile" "$dir/$file" + fi + rm "$tmpfile" notify_view } diff --git a/config/hypr/UserScripts/Sounds.sh b/config/hypr/scripts/Sounds.sh index 0d2bfff7..a749114c 100755 --- a/config/hypr/UserScripts/Sounds.sh +++ b/config/hypr/scripts/Sounds.sh @@ -1,6 +1,7 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # This script is used to play system sounds. +# Script is used by Volume.Sh and ScreenShots.sh theme="freedesktop" # Set the theme for the system sounds. mute=false # Set to true to mute the system sounds. @@ -31,8 +32,12 @@ else fi # Set the directory defaults for system sounds. +if [ -d "/run/current-system/sw/share/sounds" ]; then + systemDIR="/run/current-system/sw/share/sounds" # NixOS +else + systemDIR="/usr/share/sounds" +fi userDIR="$HOME/.local/share/sounds" -systemDIR="/usr/share/sounds" defaultTheme="freedesktop" # Prefer the user's theme, but use the system's if it doesn't exist. @@ -62,4 +67,4 @@ if ! test -f "$sound_file"; then fi fi fi -pw-play "$sound_file" +pw-play "$sound_file"
\ No newline at end of file diff --git a/config/hypr/scripts/SwitchKeyboardLayout.sh b/config/hypr/scripts/SwitchKeyboardLayout.sh index 90451c67..0145e262 100755 --- a/config/hypr/scripts/SwitchKeyboardLayout.sh +++ b/config/hypr/scripts/SwitchKeyboardLayout.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # This is for changing kb_layouts. Set kb_layouts in $settings_file layout_f="$HOME/.cache/kb_layout" @@ -38,8 +38,8 @@ next_index=$(( (current_index + 1) % layout_count )) new_layout="${layout_mapping[next_index]}" # Update the keyboard layout -hyprctl keyword input:kb_layout "$new_layout" +hyprctl switchxkblayout "at-translated-set-2-keyboard" "$new_layout" echo "$new_layout" > "$layout_f" # Notification for the new keyboard layout -notify-send -u low -i "$notif" "new KB_Layout: $new_layout"
\ No newline at end of file +notify-send -u low -i "$notif" "new KB_Layout: $new_layout" diff --git a/config/hypr/scripts/TouchPad.sh b/config/hypr/scripts/TouchPad.sh index 47ad48f6..e94ee068 100755 --- a/config/hypr/scripts/TouchPad.sh +++ b/config/hypr/scripts/TouchPad.sh @@ -1,6 +1,9 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # For disabling touchpad. +# Edit the Touchpad_Device according to your system +# use hyprctl devices to get your system touchpad device name + Touchpad_Device="asue1209:00-04f3:319f-touchpad" notif="$HOME/.config/swaync/images/bell.png" @@ -18,7 +21,7 @@ toggle_touchpad() { fi notify-send -u low -i "$notif" "Touchpad $action" - hyprctl keyword "device:$Touchpad_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 8c5af5de..19868caf 100755 --- a/config/hypr/scripts/Volume.sh +++ b/config/hypr/scripts/Volume.sh @@ -1,9 +1,9 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Scripts for volume controls for audio and mic iDIR="$HOME/.config/swaync/icons" -sDIR="$HOME/.config/hypr/UserScripts" +sDIR="$HOME/.config/hypr/scripts" # Get Volume get_volume() { @@ -42,17 +42,19 @@ notify_user() { # Increase Volume inc_volume() { if [ "$(pamixer --get-mute)" == "true" ]; then - pamixer -u && notify_user + toggle_mute + else + pamixer -i 5 --allow-boost --set-limit 150 && notify_user fi - pamixer -i 5 && notify_user } # Decrease Volume dec_volume() { if [ "$(pamixer --get-mute)" == "true" ]; then - pamixer -u && notify_user + toggle_mute + else + pamixer -d 5 && notify_user fi - pamixer -d 5 && notify_user } # Toggle Mute @@ -102,17 +104,19 @@ notify_mic_user() { # Increase MIC Volume inc_mic_volume() { if [ "$(pamixer --default-source --get-mute)" == "true" ]; then - pamixer --default-source -u && notify_mic_user + toggle_mic + else + pamixer --default-source -i 5 && notify_mic_user fi - pamixer --default-source -i 5 && notify_mic_user } # Decrease MIC Volume dec_mic_volume() { if [ "$(pamixer --default-source --get-mute)" == "true" ]; then - pamixer --default-source -u && notify_mic_user + toggle-mic + else + pamixer --default-source -d 5 && notify_mic_user fi - pamixer --default-source -d 5 && notify_mic_user } # Execute accordingly diff --git a/config/hypr/scripts/WaybarCava.sh b/config/hypr/scripts/WaybarCava.sh index bf9e7435..3c4b0f53 100755 --- a/config/hypr/scripts/WaybarCava.sh +++ b/config/hypr/scripts/WaybarCava.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Not my own work. This was added through Github PR. Credit to original author diff --git a/config/hypr/scripts/WaybarLayout.sh b/config/hypr/scripts/WaybarLayout.sh index 31146b59..03029889 100755 --- a/config/hypr/scripts/WaybarLayout.sh +++ b/config/hypr/scripts/WaybarLayout.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Script for waybar layout or configs set -euo pipefail @@ -38,7 +38,7 @@ restart_waybar_if_needed() { # Main function main() { - choice=$(menu | rofi -dmenu -config "$rofi_config") + choice=$(menu | rofi -i -dmenu -config "$rofi_config") if [[ -z "$choice" ]]; then echo "No option selected. Exiting." diff --git a/config/hypr/scripts/WaybarStyles.sh b/config/hypr/scripts/WaybarStyles.sh index bbcb6ea3..2e994780 100755 --- a/config/hypr/scripts/WaybarStyles.sh +++ b/config/hypr/scripts/WaybarStyles.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Script for waybar styles set -euo pipefail @@ -40,7 +40,7 @@ restart_waybar_if_needed() { # Main function main() { - choice=$(menu | rofi -dmenu -config "$rofi_config") + choice=$(menu | rofi -i -dmenu -config "$rofi_config") if [[ -z "$choice" ]]; then echo "No option selected. Exiting." diff --git a/config/hypr/scripts/Wlogout.sh b/config/hypr/scripts/Wlogout.sh index 4c53c381..1987e285 100755 --- a/config/hypr/scripts/Wlogout.sh +++ b/config/hypr/scripts/Wlogout.sh @@ -1,5 +1,5 @@ #!/bin/bash -## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # wlogout (Power, Screen Lock, Suspend, etc) diff --git a/config/hypr/v2.2.4 b/config/hypr/v2.2.10 index 31b3414d..31b3414d 100644 --- a/config/hypr/v2.2.4 +++ b/config/hypr/v2.2.10 |
