From e6b5ab06123c41a47611b610ef2bb42694c23600 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 24 Nov 2023 00:28:53 +0900 Subject: dunst font and Dark Light script correction --- config/hypr/scripts/DarkLight.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 7cc061f1..53e1c7d5 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -42,7 +42,7 @@ path_param=$(echo $next_mode | sed 's/.*/\u&/') notify_user "$next_mode" #ln -sf "${waybar_config}/style/style-pywal.css" "${waybar_config}/style.css" -ln -sf "${dunst_config}/styles/dunstrc-${next_mode}" "${dunst_config}/styles/dunstrc" +ln -sf "${dunst_config}/styles/dunstrc-${next_mode}" "${dunst_config}/dunstrc" # Symlink for rofi theme if [ "$next_mode" = "dark" ]; then -- cgit v1.2.3 From ab573dec63693a438da1e93d951750bcfb4e037d Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 24 Nov 2023 01:29:06 +0900 Subject: clean up wallpaper Script --- config/hypr/scripts/LidSwitch.sh | 9 -------- config/hypr/scripts/Wallpaper.sh | 44 ++-------------------------------------- 2 files changed, 2 insertions(+), 51 deletions(-) delete mode 100755 config/hypr/scripts/LidSwitch.sh (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/LidSwitch.sh b/config/hypr/scripts/LidSwitch.sh deleted file mode 100755 index 76bce1f2..00000000 --- a/config/hypr/scripts/LidSwitch.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -if grep open /proc/acpi/button/lid/LID/state; then - hyprctl keyword monitor "eDP-1, preferred, auto, 1" -else - if [[ `hyprctl monitors | grep "Monitor" | wc -l` != 1 ]]; then - hyprctl keyword monitor "eDP-1, disable" - fi -fi \ No newline at end of file diff --git a/config/hypr/scripts/Wallpaper.sh b/config/hypr/scripts/Wallpaper.sh index 20c367cc..d5ea4645 100755 --- a/config/hypr/scripts/Wallpaper.sh +++ b/config/hypr/scripts/Wallpaper.sh @@ -4,48 +4,8 @@ DIR=$HOME/Pictures/wallpapers/ PICS=($(find ${DIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \))) RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]} -change_swaybg(){ - pkill swww - pkill swaybg - swaybg -m fill -i ${RANDOMPICS} -} - -change_swww(){ - pkill swaybg - swww query || swww init - swww img ${RANDOMPICS} --transition-fps 30 --transition-type any --transition-duration 3 -} - -change_current(){ - if pidof swaybg >/dev/null; then - change_swaybg - else - change_swww - fi -} - -switch(){ - if pidof swaybg >/dev/null; then - change_swww - else - change_swaybg - fi -} - -case "$1" in - "swaybg") - change_swaybg - ;; - "swww") - change_swww - ;; - "s") - switch - ;; - *) - change_current - ;; -esac +swww query || swww init +swww img ${RANDOMPICS} --transition-fps 30 --transition-type any --transition-duration 3 exec $HOME/.config/hypr/scripts/PywalSwww.sh & sleep 1 -- cgit v1.2.3 From 19f025c2dc27da54127ae302482398be61b55ebe Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 25 Nov 2023 18:54:55 +0900 Subject: updated --- assets/Tips.md | 8 -- config/hypr/scripts/Dunst.sh | 7 -- config/hypr/scripts/Refresh.sh | 17 +-- config/hypr/scripts/WallpaperRandom.sh | 2 - config/hypr/scripts/WallpaperSelect.sh | 1 + config/hypr/scripts/Waybar.sh | 8 -- config/hypr/scripts/WaybarStyles.sh | 2 +- config/hypr/scripts/Wlogout.sh | 19 ---- config/rofi/resolution/1080p/config-powermenu.rasi | 123 +++++++++++++++++++++ config/rofi/resolution/1440p/config-powermenu.rasi | 123 +++++++++++++++++++++ config/wlogout/layout | 30 ----- config/wlogout/lock-hover.png | Bin 5771 -> 0 bytes config/wlogout/lock.png | Bin 5771 -> 0 bytes config/wlogout/logout-hover.png | Bin 3784 -> 0 bytes config/wlogout/logout.png | Bin 3784 -> 0 bytes config/wlogout/power-hover.png | Bin 10841 -> 0 bytes config/wlogout/power.png | Bin 10782 -> 0 bytes config/wlogout/restart-hover.png | Bin 7810 -> 0 bytes config/wlogout/restart.png | Bin 7810 -> 0 bytes config/wlogout/sleep-hover.png | Bin 5721 -> 0 bytes config/wlogout/sleep.png | Bin 5721 -> 0 bytes config/wlogout/style.css | 113 ------------------- 22 files changed, 257 insertions(+), 196 deletions(-) delete mode 100644 assets/Tips.md delete mode 100755 config/hypr/scripts/Dunst.sh delete mode 100755 config/hypr/scripts/Waybar.sh delete mode 100755 config/hypr/scripts/Wlogout.sh create mode 100644 config/rofi/resolution/1080p/config-powermenu.rasi create mode 100644 config/rofi/resolution/1440p/config-powermenu.rasi delete mode 100644 config/wlogout/layout delete mode 100644 config/wlogout/lock-hover.png delete mode 100644 config/wlogout/lock.png delete mode 100644 config/wlogout/logout-hover.png delete mode 100644 config/wlogout/logout.png delete mode 100644 config/wlogout/power-hover.png delete mode 100644 config/wlogout/power.png delete mode 100644 config/wlogout/restart-hover.png delete mode 100644 config/wlogout/restart.png delete mode 100644 config/wlogout/sleep-hover.png delete mode 100644 config/wlogout/sleep.png delete mode 100644 config/wlogout/style.css (limited to 'config/hypr/scripts') diff --git a/assets/Tips.md b/assets/Tips.md deleted file mode 100644 index 1b9f4a7e..00000000 --- a/assets/Tips.md +++ /dev/null @@ -1,8 +0,0 @@ -###This will search as a quick tips / guide - -### Rofi-Beats (online music) -- inorder to use this feature, you need to install yt-dlp or youtube-dl and of course mpv. By default mpv is only installed - -### Waybar ricing -- 4 waybar hyprland/workspaces to choose from. Circle -Roman Number, pacman, and workspace number and icons. Just assign accordingly on waybar configs. They are called hyprland/workspaces, #2, #3, #4 etc... \ No newline at end of file diff --git a/config/hypr/scripts/Dunst.sh b/config/hypr/scripts/Dunst.sh deleted file mode 100755 index fa8bc10d..00000000 --- a/config/hypr/scripts/Dunst.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -CONFIG="$HOME/.config/dunst/dunstrc" - -if [[ ! $(pidof dunst) ]]; then - dunst -conf ${CONFIG} -fi diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh index 923d4db8..3037458b 100755 --- a/config/hypr/scripts/Refresh.sh +++ b/config/hypr/scripts/Refresh.sh @@ -2,16 +2,17 @@ SCRIPTSDIR=$HOME/.config/hypr/scripts -# Kill already running process +# Kill already running processes _ps=(waybar dunst rofi) for _prs in "${_ps[@]}"; do - if [[ $(pidof ${_prs}) ]]; then - pkill ${_prs} - fi + if pidof "${_prs}" >/dev/null; then + pkill "${_prs}" + fi done -# Lauch notification daemon (dunst) -${SCRIPTSDIR}/Dunst.sh & +# relaunch apps +dunst & +waybar & -# Lauch statusbar (waybar) -${SCRIPTSDIR}/Waybar.sh & +#sleep 1 +#${SCRIPTSDIR}/RainbowBorders.sh & \ No newline at end of file diff --git a/config/hypr/scripts/WallpaperRandom.sh b/config/hypr/scripts/WallpaperRandom.sh index ea04aa01..13bc5033 100755 --- a/config/hypr/scripts/WallpaperRandom.sh +++ b/config/hypr/scripts/WallpaperRandom.sh @@ -2,8 +2,6 @@ # This script will randomly go through the files of a directory, setting it # up as the wallpaper at regular intervals -# -# NOTE: this script uses bash (not POSIX shell) for the RANDOM variable pywal_script=$HOME/.config/hypr/scripts/PywalSwww.sh pywal_refresh=$HOME/.config/hypr/scripts/Refresh.sh diff --git a/config/hypr/scripts/WallpaperSelect.sh b/config/hypr/scripts/WallpaperSelect.sh index 24fcae2e..d748318a 100755 --- a/config/hypr/scripts/WallpaperSelect.sh +++ b/config/hypr/scripts/WallpaperSelect.sh @@ -1,6 +1,7 @@ #!/bin/bash # WALLPAPERS PATH DIR=$HOME/Pictures/wallpapers + # Transition config FPS=30 TYPE="simple" diff --git a/config/hypr/scripts/Waybar.sh b/config/hypr/scripts/Waybar.sh deleted file mode 100755 index 394f309a..00000000 --- a/config/hypr/scripts/Waybar.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -CONFIG="$HOME/.config/waybar/config" -STYLE="$HOME/.config/waybar/style.css" - -if [[ ! $(pidof waybar) ]]; then - waybar --bar main-bar --log-level error --config ${CONFIG} --style ${STYLE} -fi diff --git a/config/hypr/scripts/WaybarStyles.sh b/config/hypr/scripts/WaybarStyles.sh index de3a54dc..8a420f55 100755 --- a/config/hypr/scripts/WaybarStyles.sh +++ b/config/hypr/scripts/WaybarStyles.sh @@ -30,7 +30,7 @@ main() { apply_style "$choice" # Restart relevant processes - for process in waybar mako dunst; do + for process in waybar dunst; do if pgrep -x "$process" >/dev/null; then pkill "$process" fi diff --git a/config/hypr/scripts/Wlogout.sh b/config/hypr/scripts/Wlogout.sh deleted file mode 100755 index c8ce86c1..00000000 --- a/config/hypr/scripts/Wlogout.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -# If you have 1440p, better to use this -#wlogout --protocol layer-shell -b 5 -T 600 -B 600 & - -# for 1080p -wlogout --protocol layer-shell -b 5 -T 450 -B 450 & - - -# Capture the PID of the wlogout process -wlogout_pid=$! - -# Wait for up to 30 seconds for wlogout to exit gracefully -timeout 30s tail --pid $wlogout_pid -f /dev/null - -# If wlogout is still running after the timeout, forcefully kill it -if ps -p $wlogout_pid > /dev/null; then - kill -KILL $wlogout_pid -fi diff --git a/config/rofi/resolution/1080p/config-powermenu.rasi b/config/rofi/resolution/1080p/config-powermenu.rasi new file mode 100644 index 00000000..cf0592f8 --- /dev/null +++ b/config/rofi/resolution/1080p/config-powermenu.rasi @@ -0,0 +1,123 @@ +/* --- Configuration for Rofi Power ---- */ + +/* ---- Configuration ---- */ +configuration { + show-icons: false; +} + +/* ---- Load pywal colors (custom wal template) ---- */ +@import "~/.config/rofi/pywal-color/pywal-theme.rasi" + +/* ---- Global Properties ---- */ +* { + font: "Fira Code Medium 12"; +} + +/* ---- Main Window ---- */ +window { + location: center; + anchor: center; + fullscreen: false; + width: 900px; + height: 400px; + x-offset: 0px; + y-offset: 0px; + padding: 0px; + border: 2px; + border-radius: 15px; + border-color: @active-background; + cursor: "default"; + background-color: @background-color; +} + +/* ---- Main Box ---- */ +mainbox { + enabled: true; + spacing: 0px; + margin: 0px; + padding: 0px; + border: 0px solid; + border-radius: 0px; + background-image: url("~/.config/rofi/.current_wallpaper", width); + border-color: @active-background; + background-color: @background-color; + children: [ "inputbar", "listview", "message" ]; +} + +/* ---- Inputbar ---- */ +inputbar { + enabled: true; + padding: 20px; + background-color: transparent; + orientation: horizontal; + children: ["prompt"]; +} + +prompt { + enabled: true; + padding: 10px; + border-radius: 15px; + border-color: @foreground; + background-color: @background-color; + text-color: @foreground; + cursor: text; + +} + +/* ---- Listview ---- */ +listview { + enabled: true; + columns: 3; + lines: 2; + cycle: true; + dynamic: true; + scrollbar: false; + layout: vertical; + reverse: false; + fixed-height: false; + fixed-columns: true; + spacing: 40px; + padding: 4% 40px; + background-color: transparent; + cursor: "default"; + border: 0px; + border-color: @active-background; +} + +/* ---- Elements ---- */ +element { + enabled: true; + padding: 20px; + border-radius: 30px; + background-color: transparent; + text-color: @foreground; + cursor: pointer; +} +element-text { + font: "Fira Code SemiBold 16"; + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0.5; +} +element selected.normal { + background-color: @selected-normal-background; + text-color: @background; +} + +/* ---- Message ---- */ +message { + enabled: true; + margin: 0px; + background-color: transparent; + text-color: @foreground; + border: 0px; +} +textbox { + font: "Fira Code SemiBold 8"; + background-color: @background; + text-color: @foreground; + vertical-align: 0.5; + horizontal-align: 0.5; +} \ No newline at end of file diff --git a/config/rofi/resolution/1440p/config-powermenu.rasi b/config/rofi/resolution/1440p/config-powermenu.rasi new file mode 100644 index 00000000..cf0592f8 --- /dev/null +++ b/config/rofi/resolution/1440p/config-powermenu.rasi @@ -0,0 +1,123 @@ +/* --- Configuration for Rofi Power ---- */ + +/* ---- Configuration ---- */ +configuration { + show-icons: false; +} + +/* ---- Load pywal colors (custom wal template) ---- */ +@import "~/.config/rofi/pywal-color/pywal-theme.rasi" + +/* ---- Global Properties ---- */ +* { + font: "Fira Code Medium 12"; +} + +/* ---- Main Window ---- */ +window { + location: center; + anchor: center; + fullscreen: false; + width: 900px; + height: 400px; + x-offset: 0px; + y-offset: 0px; + padding: 0px; + border: 2px; + border-radius: 15px; + border-color: @active-background; + cursor: "default"; + background-color: @background-color; +} + +/* ---- Main Box ---- */ +mainbox { + enabled: true; + spacing: 0px; + margin: 0px; + padding: 0px; + border: 0px solid; + border-radius: 0px; + background-image: url("~/.config/rofi/.current_wallpaper", width); + border-color: @active-background; + background-color: @background-color; + children: [ "inputbar", "listview", "message" ]; +} + +/* ---- Inputbar ---- */ +inputbar { + enabled: true; + padding: 20px; + background-color: transparent; + orientation: horizontal; + children: ["prompt"]; +} + +prompt { + enabled: true; + padding: 10px; + border-radius: 15px; + border-color: @foreground; + background-color: @background-color; + text-color: @foreground; + cursor: text; + +} + +/* ---- Listview ---- */ +listview { + enabled: true; + columns: 3; + lines: 2; + cycle: true; + dynamic: true; + scrollbar: false; + layout: vertical; + reverse: false; + fixed-height: false; + fixed-columns: true; + spacing: 40px; + padding: 4% 40px; + background-color: transparent; + cursor: "default"; + border: 0px; + border-color: @active-background; +} + +/* ---- Elements ---- */ +element { + enabled: true; + padding: 20px; + border-radius: 30px; + background-color: transparent; + text-color: @foreground; + cursor: pointer; +} +element-text { + font: "Fira Code SemiBold 16"; + background-color: transparent; + text-color: inherit; + cursor: inherit; + vertical-align: 0.5; + horizontal-align: 0.5; +} +element selected.normal { + background-color: @selected-normal-background; + text-color: @background; +} + +/* ---- Message ---- */ +message { + enabled: true; + margin: 0px; + background-color: transparent; + text-color: @foreground; + border: 0px; +} +textbox { + font: "Fira Code SemiBold 8"; + background-color: @background; + text-color: @foreground; + vertical-align: 0.5; + horizontal-align: 0.5; +} \ No newline at end of file diff --git a/config/wlogout/layout b/config/wlogout/layout deleted file mode 100644 index 6d1c3975..00000000 --- a/config/wlogout/layout +++ /dev/null @@ -1,30 +0,0 @@ -{ - "label" : "lock", - "action" : "$HOME/.config/hypr/scripts/LockScreen.sh", - "text" : "Lock", - "keybind" : "l" -} -{ - "label" : "reboot", - "action" : "systemctl reboot", - "text" : "Reboot", - "keybind" : "r" -} -{ - "label" : "shutdown", - "action" : "systemctl poweroff", - "text" : "Shutdown", - "keybind" : "s" -} -{ - "label" : "logout", - "action" : "hyprctl dispatch exit 0", - "text" : "Logout", - "keybind" : "e" -} -{ - "label" : "suspend", - "action" : "systemctl suspend", - "text" : "Suspend", - "keybind" : "u" -} diff --git a/config/wlogout/lock-hover.png b/config/wlogout/lock-hover.png deleted file mode 100644 index 8fb86fe4..00000000 Binary files a/config/wlogout/lock-hover.png and /dev/null differ diff --git a/config/wlogout/lock.png b/config/wlogout/lock.png deleted file mode 100644 index 430451c8..00000000 Binary files a/config/wlogout/lock.png and /dev/null differ diff --git a/config/wlogout/logout-hover.png b/config/wlogout/logout-hover.png deleted file mode 100644 index 9e570a9e..00000000 Binary files a/config/wlogout/logout-hover.png and /dev/null differ diff --git a/config/wlogout/logout.png b/config/wlogout/logout.png deleted file mode 100644 index 128c9955..00000000 Binary files a/config/wlogout/logout.png and /dev/null differ diff --git a/config/wlogout/power-hover.png b/config/wlogout/power-hover.png deleted file mode 100644 index 122d3318..00000000 Binary files a/config/wlogout/power-hover.png and /dev/null differ diff --git a/config/wlogout/power.png b/config/wlogout/power.png deleted file mode 100644 index ce561661..00000000 Binary files a/config/wlogout/power.png and /dev/null differ diff --git a/config/wlogout/restart-hover.png b/config/wlogout/restart-hover.png deleted file mode 100644 index 3e185360..00000000 Binary files a/config/wlogout/restart-hover.png and /dev/null differ diff --git a/config/wlogout/restart.png b/config/wlogout/restart.png deleted file mode 100644 index 7855d409..00000000 Binary files a/config/wlogout/restart.png and /dev/null differ diff --git a/config/wlogout/sleep-hover.png b/config/wlogout/sleep-hover.png deleted file mode 100644 index 0fd3bade..00000000 Binary files a/config/wlogout/sleep-hover.png and /dev/null differ diff --git a/config/wlogout/sleep.png b/config/wlogout/sleep.png deleted file mode 100644 index 6a3d607f..00000000 Binary files a/config/wlogout/sleep.png and /dev/null differ diff --git a/config/wlogout/style.css b/config/wlogout/style.css deleted file mode 100644 index 57c9ede2..00000000 --- a/config/wlogout/style.css +++ /dev/null @@ -1,113 +0,0 @@ -window { - font-family: monospace; - font-size: 14pt; - color: #cdd6f4; /* text */ - background-color: rgba(30, 30, 46, 0.5); -} - -button { - background-repeat: no-repeat; - background-position: center; - background-size: 25%; - border: none; - background-color: rgba(30, 30, 46, 0); - margin: 5px; - animation: gradient_f 20s ease-in infinite; - transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out; -} - -button:hover#lock { - /*background-color: rgba(49, 50, 68, 0.2);*/ - background-size: 25%; - margin-right : 30px; - margin-bottom : 30px; - border-radius: 20px; - animation: gradient_f 20s ease-in infinite; - transition: all 0.3s cubic-bezier(.55,0.0,.28,1.682); -} - -button:hover#logout { - /*background-color: rgba(49, 50, 68, 0.2);*/ - background-size: 25%; - margin-right : 30px; - margin-top : 30px; - border-radius: 20px; - animation: gradient_f 20s ease-in infinite; - transition: all 0.3s cubic-bezier(.55,0.0,.28,1.682); -} - -button:hover#shutdown { - /*background-color: rgba(49, 50, 68, 0.2);*/ - background-size: 25%; - margin-left : 20px; - margin-bottom : 30px; - border-radius: 20px; - animation: gradient_f 20s ease-in infinite; - transition: all 0.3s cubic-bezier(.55,0.0,.28,1.682); -} - -button:hover#reboot { - /*background-color: rgba(49, 50, 68, 0.2);*/ - background-size: 25%; - margin-left : 30px; - margin-top : 30px; - border-radius: 20px; - animation: gradient_f 20s ease-in infinite; - transition: all 0.3s cubic-bezier(.55,0.0,.28,1.682); -} - -button:hover#suspend { - /*background-color: rgba(49, 50, 68, 0.2);*/ - background-size: 25%; - margin-left : 30px; - margin-top : 30px; - border-radius: 20px; - animation: gradient_f 20s ease-in infinite; - transition: all 0.3s cubic-bezier(.55,0.0,.28,1.682); -} - -button:focus { - background-color: rgba(180, 190, 254, 0.3); - color: #1e1e2e; - background-size: 25%; - margin-left : 30px; - margin-top : 30px; - border-radius: 20px; - animation: gradient_f 20s ease-in infinite; - transition: all 0.3s cubic-bezier(.55,0.0,.28,1.682); -} - -#lock { - background-image: image(url("./lock.png")); -} -#lock:focus { - background-image: image(url("./lock-hover.png")); -} - -#logout { - background-image: image(url("./logout.png")); -} -#logout:focus { - background-image: image(url("./logout-hover.png")); -} - -#suspend { - background-image: image(url("./sleep.png")); -} -#suspend:focus { - background-image: image(url("./sleep-hover.png")); -} - -#shutdown { - background-image: image(url("./power.png")); -} -#shutdown:focus { - background-image: image(url("./power-hover.png")); -} - -#reboot { - background-image: image(url("./restart.png")); -} -#reboot:focus { - background-image: image(url("./restart-hover.png")); -} -- cgit v1.2.3