Browse Source

updated

pull/34/head
JaKooLit 2 years ago
parent
commit
19f025c2dc
  1. 8
      assets/Tips.md
  2. 7
      config/hypr/scripts/Dunst.sh
  3. 17
      config/hypr/scripts/Refresh.sh
  4. 2
      config/hypr/scripts/WallpaperRandom.sh
  5. 1
      config/hypr/scripts/WallpaperSelect.sh
  6. 8
      config/hypr/scripts/Waybar.sh
  7. 2
      config/hypr/scripts/WaybarStyles.sh
  8. 19
      config/hypr/scripts/Wlogout.sh
  9. 123
      config/rofi/resolution/1080p/config-powermenu.rasi
  10. 123
      config/rofi/resolution/1440p/config-powermenu.rasi
  11. 30
      config/wlogout/layout
  12. BIN
      config/wlogout/lock-hover.png
  13. BIN
      config/wlogout/lock.png
  14. BIN
      config/wlogout/logout-hover.png
  15. BIN
      config/wlogout/logout.png
  16. BIN
      config/wlogout/power-hover.png
  17. BIN
      config/wlogout/power.png
  18. BIN
      config/wlogout/restart-hover.png
  19. BIN
      config/wlogout/restart.png
  20. BIN
      config/wlogout/sleep-hover.png
  21. BIN
      config/wlogout/sleep.png
  22. 113
      config/wlogout/style.css

8
assets/Tips.md

@ -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...

7
config/hypr/scripts/Dunst.sh

@ -1,7 +0,0 @@
#!/bin/bash
CONFIG="$HOME/.config/dunst/dunstrc"
if [[ ! $(pidof dunst) ]]; then
dunst -conf ${CONFIG}
fi

17
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 &

2
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

1
config/hypr/scripts/WallpaperSelect.sh

@ -1,6 +1,7 @@
#!/bin/bash
# WALLPAPERS PATH
DIR=$HOME/Pictures/wallpapers
# Transition config
FPS=30
TYPE="simple"

8
config/hypr/scripts/Waybar.sh

@ -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

2
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

19
config/hypr/scripts/Wlogout.sh

@ -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

123
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;
}

123
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;
}

30
config/wlogout/layout

@ -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"
}

BIN
config/wlogout/lock-hover.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

BIN
config/wlogout/lock.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

BIN
config/wlogout/logout-hover.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

BIN
config/wlogout/logout.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

BIN
config/wlogout/power-hover.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

BIN
config/wlogout/power.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

BIN
config/wlogout/restart-hover.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

BIN
config/wlogout/restart.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

BIN
config/wlogout/sleep-hover.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

BIN
config/wlogout/sleep.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

113
config/wlogout/style.css

@ -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"));
}
Loading…
Cancel
Save