From c179168b6c3e87adce447c6a5ded382d4a8266e4 Mon Sep 17 00:00:00 2001 From: GrafMonteCarlo <53829166+vailrahmatulin@users.noreply.github.com> Date: Wed, 2 Apr 2025 10:28:17 +0700 Subject: Update hyprlock.conf Added the keyboard layout indicator to the lock screen --- config/hypr/hyprlock.conf | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index a3cbb76f..a0d075cb 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -106,11 +106,22 @@ label { color = $color13 font_size = 24 font_family = Victor Mono Bold Oblique - position = 0, 200 + position = 0, 250 halign = center valign = bottom } +# LAYOUT +label { + monitor = + text = $LAYOUT + color = $color13 + font_size = 24 + font_family = Victor Mono Bold Oblique + position = 0, 200 + halign = center + valign = bottom +} # INPUT FIELD input-field { @@ -157,4 +168,4 @@ label { position = 50, 0 halign = left valign = bottom -} \ No newline at end of file +} -- cgit v1.2.3 From 4e0cfb75423d99cf227f7cf4b58a73279489f368 Mon Sep 17 00:00:00 2001 From: GrafMonteCarlo <53829166+vailrahmatulin@users.noreply.github.com> Date: Wed, 2 Apr 2025 10:30:52 +0700 Subject: Update hyprlock-1080p.conf Added the keyboard layout indicator to the lock screen, it should be tested at 1080p resolution --- config/hypr/hyprlock-1080p.conf | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/config/hypr/hyprlock-1080p.conf b/config/hypr/hyprlock-1080p.conf index 8fc3b075..002a79c0 100644 --- a/config/hypr/hyprlock-1080p.conf +++ b/config/hypr/hyprlock-1080p.conf @@ -111,6 +111,38 @@ label { valign = bottom } +# LAYOUT +label { + monitor = + text = $LAYOUT + color = $color13 + font_size = 24 + font_family = Victor Mono Bold Oblique + position = 0, 120 + halign = center + valign = bottom +}# LAYOUT + +label { + monitor = + text = $LAYOUT + color = $color13 + font_size = 24 + font_family = Victor Mono Bold Oblique + position = 0, 200 + halign = center + valign = bottom +}# LAYOUT +label { + monitor = + text = $LAYOUT + color = $color13 + font_size = 24 + font_family = Victor Mono Bold Oblique + position = 0, 200 + halign = center + valign = bottom +} # INPUT FIELD input-field { @@ -157,4 +189,4 @@ label { position = 50, 0 halign = left valign = bottom -} \ No newline at end of file +} -- cgit v1.2.3 From e1a5a4ebc4001525d74793c46a2ba97947da3300 Mon Sep 17 00:00:00 2001 From: GrafMonteCarlo <53829166+vailrahmatulin@users.noreply.github.com> Date: Wed, 2 Apr 2025 10:42:37 +0700 Subject: Update hyprlock-1080p.conf Delete dubles --- config/hypr/hyprlock-1080p.conf | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/config/hypr/hyprlock-1080p.conf b/config/hypr/hyprlock-1080p.conf index 002a79c0..fbd24915 100644 --- a/config/hypr/hyprlock-1080p.conf +++ b/config/hypr/hyprlock-1080p.conf @@ -121,27 +121,6 @@ label { position = 0, 120 halign = center valign = bottom -}# LAYOUT - -label { - monitor = - text = $LAYOUT - color = $color13 - font_size = 24 - font_family = Victor Mono Bold Oblique - position = 0, 200 - halign = center - valign = bottom -}# LAYOUT -label { - monitor = - text = $LAYOUT - color = $color13 - font_size = 24 - font_family = Victor Mono Bold Oblique - position = 0, 200 - halign = center - valign = bottom } # INPUT FIELD -- cgit v1.2.3 From dd659ada452d039501de5d18b97ce16b13db7282 Mon Sep 17 00:00:00 2001 From: MichelleDB <69michelledb@gmail.com> Date: Wed, 30 Apr 2025 15:34:35 +0200 Subject: fix: Fix ScreenShot.sh to check xdg-user-dir PICTURES --- config/hypr/scripts/ScreenShot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh index 90e2dfd2..0a37c7e4 100755 --- a/config/hypr/scripts/ScreenShot.sh +++ b/config/hypr/scripts/ScreenShot.sh @@ -4,7 +4,7 @@ # variables time=$(date "+%d-%b_%H-%M-%S") -dir="$(xdg-user-dir)/Pictures/Screenshots" +dir="$(xdg-user-dir PICTURES)/Screenshots" file="Screenshot_${time}_${RANDOM}.png" iDIR="$HOME/.config/swaync/icons" -- cgit v1.2.3 From 62c1b8dd31e2273f927e6e1582497b5e16af1273 Mon Sep 17 00:00:00 2001 From: Marko Pekkola Date: Fri, 9 May 2025 16:01:15 +0300 Subject: feat: Add continuous playback to RofiBeats during choosing next music desc: - Remove stop_music from start of script - call stop_music after user selections are done - Add "Stop RofiBeats" user choice to allow stopping player (kill mpv) Previously, this could be done by opening RofiBeats. Note: stopping player and music are different. Music can be stopped using global keybinds. These changes keep playing (previous) music until next one is chosen. --- config/hypr/UserScripts/RofiBeats.sh | 65 +++++++++++++++++++++++------------- 1 file changed, 42 insertions(+), 23 deletions(-) diff --git a/config/hypr/UserScripts/RofiBeats.sh b/config/hypr/UserScripts/RofiBeats.sh index 781e9f64..1cddce09 100755 --- a/config/hypr/UserScripts/RofiBeats.sh +++ b/config/hypr/UserScripts/RofiBeats.sh @@ -58,7 +58,10 @@ play_local_music() { # Find the corresponding file path based on user's choice and set that to play the song then continue on the list for (( i=0; i<"${#filenames[@]}"; ++i )); do if [ "${filenames[$i]}" = "$choice" ]; then - + + if music_playing; then + stop_music + fi notification "$choice" mpv --playlist-start="$i" --loop-playlist --vid=no "${local_music[@]}" @@ -69,6 +72,9 @@ play_local_music() { # Main function for shuffling local music shuffle_local_music() { + if music_playing; then + stop_music + fi notification "Shuffle Play local music" # Play music in $mDIR on shuffle @@ -87,12 +93,20 @@ play_online_music() { link="${online_music[$choice]}" + if music_playing; then + stop_music + fi notification "$choice" # Play the selected online music using mpv mpv --shuffle --vid=no "$link" } +# Function to check if music is already playing +music_playing() { + pgrep -x "mpv" > /dev/null +} + # Function to stop music and kill mpv processes stop_music() { mpv_pids=$(pgrep -x mpv) @@ -110,25 +124,30 @@ stop_music() { fi } -# Check if music is already playing -if pgrep -x "mpv" > /dev/null; then - stop_music -else - user_choice=$(printf "Play from Online Stations\nPlay from Music directory\nShuffle Play from Music directory" | rofi -dmenu -config $rofi_theme_1) - - echo "User choice: $user_choice" - - case "$user_choice" in - "Play from Music directory") - play_local_music - ;; - "Play from Online Stations") - play_online_music - ;; - "Shuffle Play from Music directory") - shuffle_local_music - ;; - *) - ;; - esac -fi \ No newline at end of file +user_choice=$(printf "%s\n" \ + "Play from Online Stations" \ + "Play from Music directory" \ + "Shuffle Play from Music directory" \ + "Stop RofiBeats" \ + | rofi -dmenu -config $rofi_theme_1) + +echo "User choice: $user_choice" + +case "$user_choice" in + "Play from Online Stations") + play_online_music + ;; + "Play from Music directory") + play_local_music + ;; + "Shuffle Play from Music directory") + shuffle_local_music + ;; + "Stop RofiBeats") + if music_playing; then + stop_music + fi + ;; + *) + ;; +esac -- cgit v1.2.3 From 2c59d4521a9a610a590876db94b176afeb5b26d8 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 21 May 2025 00:07:51 +0900 Subject: some minor fixes on the user default --- config/hypr/UserConfigs/UserKeybinds.conf | 6 ++++-- config/hypr/scripts/WaybarScripts.sh | 3 +++ config/waybar/ModulesCustom | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index 3358e07a..871f2ffb 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -7,10 +7,12 @@ # /* ---- ✴️ Variables ✴️ ---- */ # $mainMod = SUPER -$files = thunar -$term = kitty $scriptsDir = $HOME/.config/hypr/scripts $UserScripts = $HOME/.config/hypr/UserScripts +$UserConfigs = $HOME/.config/hypr/UserConfigs + +# settings for User defaults apps - set your default terminal and file manager on this file +source= $UserConfigs/01-UserDefaults.conf # common shortcuts #bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run,window # Super Key to Launch rofi menu diff --git a/config/hypr/scripts/WaybarScripts.sh b/config/hypr/scripts/WaybarScripts.sh index 32b43f02..24f54699 100755 --- a/config/hypr/scripts/WaybarScripts.sh +++ b/config/hypr/scripts/WaybarScripts.sh @@ -32,10 +32,13 @@ elif [[ "$1" == "--nmtui" ]]; then $term nmtui elif [[ "$1" == "--term" ]]; then $term & +elif [[ "$1" == "--files" ]]; then + $files & else echo "Usage: $0 [--btop | --nvtop | --nmtui | --term]" echo "--btop : Open btop in a new term" echo "--nvtop : Open nvtop in a new term" echo "--nmtui : Open nmtui in a new term" echo "--term : Launch a term window" + echo "--files : Launch a file manager" fi diff --git a/config/waybar/ModulesCustom b/config/waybar/ModulesCustom index bde9bbc2..088cea1c 100644 --- a/config/waybar/ModulesCustom +++ b/config/waybar/ModulesCustom @@ -19,7 +19,7 @@ "custom/file_manager": { "format": " ", - "on-click": "xdg-open . &", + "on-click": "$HOME/.config/hypr/scripts/WaybarScripts.sh --files", "tooltip": true, "tooltip-format": "File Manager", }, -- cgit v1.2.3 From c14722aa5ecce0783b82945646ffde87413caceb Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 21 May 2025 00:07:39 +0900 Subject: some minor fixes on the user defaults --- config/hypr/UserConfigs/UserKeybinds.conf | 6 ++++-- config/hypr/scripts/WaybarScripts.sh | 5 ++++- config/waybar/ModulesCustom | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index 3358e07a..871f2ffb 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -7,10 +7,12 @@ # /* ---- ✴️ Variables ✴️ ---- */ # $mainMod = SUPER -$files = thunar -$term = kitty $scriptsDir = $HOME/.config/hypr/scripts $UserScripts = $HOME/.config/hypr/UserScripts +$UserConfigs = $HOME/.config/hypr/UserConfigs + +# settings for User defaults apps - set your default terminal and file manager on this file +source= $UserConfigs/01-UserDefaults.conf # common shortcuts #bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run,window # Super Key to Launch rofi menu diff --git a/config/hypr/scripts/WaybarScripts.sh b/config/hypr/scripts/WaybarScripts.sh index 32b43f02..7b3aaba2 100755 --- a/config/hypr/scripts/WaybarScripts.sh +++ b/config/hypr/scripts/WaybarScripts.sh @@ -32,10 +32,13 @@ elif [[ "$1" == "--nmtui" ]]; then $term nmtui elif [[ "$1" == "--term" ]]; then $term & +elif [[ "$1" == "--files" ]]; then + $files & else echo "Usage: $0 [--btop | --nvtop | --nmtui | --term]" echo "--btop : Open btop in a new term" echo "--nvtop : Open nvtop in a new term" echo "--nmtui : Open nmtui in a new term" echo "--term : Launch a term window" -fi + echo "--files : Launch a file manager" +fi \ No newline at end of file diff --git a/config/waybar/ModulesCustom b/config/waybar/ModulesCustom index bde9bbc2..088cea1c 100644 --- a/config/waybar/ModulesCustom +++ b/config/waybar/ModulesCustom @@ -19,7 +19,7 @@ "custom/file_manager": { "format": " ", - "on-click": "xdg-open . &", + "on-click": "$HOME/.config/hypr/scripts/WaybarScripts.sh --files", "tooltip": true, "tooltip-format": "File Manager", }, -- cgit v1.2.3 From 748492a94d889d71b195053175605b624ee586e9 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 21 May 2025 00:52:43 +0900 Subject: updated rofi-beats rofi menu --- config/rofi/config-rofi-Beats-menu.rasi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/rofi/config-rofi-Beats-menu.rasi b/config/rofi/config-rofi-Beats-menu.rasi index aa3e8258..47e14b0d 100644 --- a/config/rofi/config-rofi-Beats-menu.rasi +++ b/config/rofi/config-rofi-Beats-menu.rasi @@ -30,7 +30,7 @@ listview { fixed-columns: false; scrollbar: false; colums: 1; - lines: 3; + lines: 4; spacing: 6px; cycle: true; } -- cgit v1.2.3 From 73f3aebcb112379ec1c4c604b74e3d88020c5137 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 21 May 2025 00:52:45 +0900 Subject: updated rofi-beats rofi menu --- config/rofi/config-rofi-Beats-menu.rasi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/rofi/config-rofi-Beats-menu.rasi b/config/rofi/config-rofi-Beats-menu.rasi index aa3e8258..47e14b0d 100644 --- a/config/rofi/config-rofi-Beats-menu.rasi +++ b/config/rofi/config-rofi-Beats-menu.rasi @@ -30,7 +30,7 @@ listview { fixed-columns: false; scrollbar: false; colums: 1; - lines: 3; + lines: 4; spacing: 6px; cycle: true; } -- cgit v1.2.3 From b951f9b690fc0fdb63bc8a3c711b4d7d29b16ff1 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" <85185940+JaKooLit@users.noreply.github.com> Date: Fri, 23 May 2025 13:57:25 +0000 Subject: Revert "Replace tilda with $HOME because it's expands correctly this way" --- config/hypr/UserScripts/Weather.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/hypr/UserScripts/Weather.sh b/config/hypr/UserScripts/Weather.sh index 0294e042..f5bf9fa9 100755 --- a/config/hypr/UserScripts/Weather.sh +++ b/config/hypr/UserScripts/Weather.sh @@ -4,7 +4,7 @@ # Remember to add city city= -cachedir="$HOME/.cache/rbn" +cachedir="~/.cache/rbn" cachefile=${0##*/}-$1 if [ ! -d $cachedir ]; then @@ -84,4 +84,4 @@ echo -e "{\"text\":\""$temperature $condition"\", \"alt\":\""${weather[0]}"\", \ cached_weather=" $temperature \n$condition ${weather[1]}" -echo -e $cached_weather > "$HOME/.cache/.weather_cache" +echo -e $cached_weather > "~/.cache/.weather_cache" \ No newline at end of file -- cgit v1.2.3 From afb80e32cd9502227fb3c993fb0158ff9a5aab03 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 24 May 2025 19:47:38 +0900 Subject: Updated Kitty theme ROFI config. ONLY temporary until I figure out to put in message box the actions --- config/rofi/config-kitty-theme.rasi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/rofi/config-kitty-theme.rasi b/config/rofi/config-kitty-theme.rasi index 5dc570be..f62fea12 100644 --- a/config/rofi/config-kitty-theme.rasi +++ b/config/rofi/config-kitty-theme.rasi @@ -32,7 +32,7 @@ inputbar { entry { expand: true; - placeholder: " 🐾 Search / Choose Kitty theme"; + placeholder: " 🐾 Choose Kitty theme: Enter to Preview; CTRL S to Apply"; } /* ---- Listview ---- */ -- cgit v1.2.3 From caf8a4984c4ff6c2105c5b0cc2c74657d1bb1f99 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 25 May 2025 03:43:49 +0900 Subject: welp... seems like the PR was ok.. lmao.. it seems ~ does not work anymore --- config/hypr/UserScripts/Weather.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/hypr/UserScripts/Weather.sh b/config/hypr/UserScripts/Weather.sh index f5bf9fa9..9bdaff4a 100755 --- a/config/hypr/UserScripts/Weather.sh +++ b/config/hypr/UserScripts/Weather.sh @@ -4,7 +4,7 @@ # Remember to add city city= -cachedir="~/.cache/rbn" +cachedir="$HOME/.cache/rbn" cachefile=${0##*/}-$1 if [ ! -d $cachedir ]; then @@ -84,4 +84,4 @@ echo -e "{\"text\":\""$temperature $condition"\", \"alt\":\""${weather[0]}"\", \ cached_weather=" $temperature \n$condition ${weather[1]}" -echo -e $cached_weather > "~/.cache/.weather_cache" \ No newline at end of file +echo -e $cached_weather > "$HOME/.cache/.weather_cache" \ No newline at end of file -- cgit v1.2.3 From cd9d02816793a1330dfcb4eb597c1d47593ba1f3 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 25 May 2025 19:36:28 +0900 Subject: updated Hyprlock configs. Reposition and resize keyboard layouts --- config/hypr/hyprlock-1080p.conf | 32 ++++++++++++++++---------------- config/hypr/hyprlock.conf | 29 +++++++++++++++-------------- 2 files changed, 31 insertions(+), 30 deletions(-) diff --git a/config/hypr/hyprlock-1080p.conf b/config/hypr/hyprlock-1080p.conf index fbd24915..a0e105e0 100644 --- a/config/hypr/hyprlock-1080p.conf +++ b/config/hypr/hyprlock-1080p.conf @@ -66,7 +66,7 @@ label { color = $color12 font_size = 200 font_family = JetBrainsMono Nerd Font ExtraBold - position = 0, -320 + position = 0, -340 halign = center valign = top } @@ -106,19 +106,7 @@ label { color = $color13 font_size = 24 font_family = Victor Mono Bold Oblique - position = 0, 150 - halign = center - valign = bottom -} - -# LAYOUT -label { - monitor = - text = $LAYOUT - color = $color13 - font_size = 24 - font_family = Victor Mono Bold Oblique - position = 0, 120 + position = 0, 220 halign = center valign = bottom } @@ -126,7 +114,7 @@ label { # INPUT FIELD input-field { monitor = - size = 300, 60 + size = 200, 60 outline_thickness = 2 dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8 dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0 @@ -139,7 +127,19 @@ input-field { font_family = Victor Mono Bold Oblique placeholder_text = 🔒 Type Password hide_input = false - position = 0, 50 + position = 0, 100 + halign = center + valign = bottom +} + +# Keyboard LAYOUT +label { + monitor = + text = $LAYOUT + color = $color13 + font_size = 10 + font_family = Victor Mono Bold Oblique + position = 0, 70 halign = center valign = bottom } diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index a0d075cb..48b09b85 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -106,19 +106,7 @@ label { color = $color13 font_size = 24 font_family = Victor Mono Bold Oblique - position = 0, 250 - halign = center - valign = bottom -} - -# LAYOUT -label { - monitor = - text = $LAYOUT - color = $color13 - font_size = 24 - font_family = Victor Mono Bold Oblique - position = 0, 200 + position = 0, 280 halign = center valign = bottom } @@ -139,7 +127,20 @@ input-field { font_family = Victor Mono Bold Oblique placeholder_text = 🔒 Type Password hide_input = false - position = 0, 100 + position = 0, 120 + halign = center + valign = bottom +} + + +# Keyboard LAYOUT +label { + monitor = + text = $LAYOUT + color = $color13 + font_size = 12 + font_family = Victor Mono Bold Oblique + position = 0, 80 halign = center valign = bottom } -- cgit v1.2.3