Moves scripts to own folder

This commit is contained in:
Michel Fedde 2025-06-07 20:47:27 +02:00
parent 36dbfbc689
commit bcb83fb7be
32 changed files with 69 additions and 645 deletions

View file

@ -1,15 +1,14 @@
$mainMod = SUPER $mainMod = SUPER
# Default # Default
$scriptsDir = $HOME/.config/hypr/scripts $scriptsDir = $HOME/.config/scripts
$configs = $HOME/.config/hypr/configs $configs = $HOME/.config/hypr/configs
$files = hyprdrop ghostty --identifier yazi_hyprdrop --args="yazi" --env="PWD=~/" $files = hyprdrop ghostty --identifier yazi_hyprdrop --args="yazi" --env="PWD=~/"
$term = ghostty $term = ghostty
$scriptsDir = $HOME/.config/hypr/scripts $appLauncher = anyrun
bind = $mainMod, Q, killactive, bind = $mainMod, Q, killactive,
bind = $mainMod SHIFT, Q, exec, $scriptsDir/KillActiveProcess.sh
# Special Keys / Hot Keys # Special Keys / Hot Keys
bindel = , xf86audioraisevolume, exec, $scriptsDir/Volume.sh --inc # volume up bindel = , xf86audioraisevolume, exec, $scriptsDir/Volume.sh --inc # volume up
@ -92,12 +91,11 @@ bindm = $mainMod SHIFT, mouse:272, movewindow
bindm = $mainMod SHIFT, mouse:273, resizewindow bindm = $mainMod SHIFT, mouse:273, resizewindow
# Stuff # Stuff
bind = $mainMod SHIFT, C, exec, $scriptsDir/Refresh.sh # Refresh waybar, swaync, rofi
bind = $mainMod, N, exec, $scriptsDir/LockScreen.sh # screen lock bind = $mainMod, N, exec, $scriptsDir/LockScreen.sh # screen lock
bind = , Print, exec, $scriptsDir/ScreenShot.sh --area # screenshot (area) bind = , Print, exec, $scriptsDir/ScreenShot.sh --area # screenshot (area)
bind = , F12, exec, $scriptsDir/ScreenShot.sh --active # screenshot (active window only) bind = , F12, exec, $scriptsDir/ScreenShot.sh --active # screenshot (active window only)
bind = $mainMod SHIFT, N, exec, $scriptsDir/Toolkit.sh # swayNC notification panel bind = $mainMod SHIFT, N, exec, $scriptsDir/anyrun/Toolkit.sh # swayNC notification panel
bind = $mainMod SHIFT, L, movecurrentworkspacetomonitor, r bind = $mainMod SHIFT, L, movecurrentworkspacetomonitor, r
@ -110,7 +108,7 @@ bind = $mainMod, Space, fullscreen, 0
# rofi App launcher # rofi App launcher
#bind = $mainMod, Tab, exec, nwg-drawer -pbexit "wayland-logout" -pbpoweroff "systemctl poweroff" -pbreboot "systemctl reboot" #bind = $mainMod, Tab, exec, nwg-drawer -pbexit "wayland-logout" -pbpoweroff "systemctl poweroff" -pbreboot "systemctl reboot"
bind = $mainMod, Tab, exec, anyrun bind = $mainMod, Tab, exec, $appLauncher
bind = ALT, Tab, exec, hyprswitch gui --mod-key alt --key tab bind = ALT, Tab, exec, hyprswitch gui --mod-key alt --key tab
bind = $mainMod, Return, exec, $term bind = $mainMod, Return, exec, $term
@ -118,7 +116,7 @@ bind = $mainMod Shift, Return, exec, hyprdrop ghostty --identifier term_hyprdrop
bind = $mainMod, T, exec, $files bind = $mainMod, T, exec, $files
bind = $mainMod, R, focusurgentorlast bind = $mainMod, R, focusurgentorlast
bind = $mainMod, P, exec, $scriptsDir/Bitwarden.sh bind = $mainMod, P, exec, $scriptsDir/anyrun/Bitwarden.sh
# Master Layout Keybinds # Master Layout Keybinds
bind = $mainMod, A, layoutmsg,swapwithmaster master bind = $mainMod, A, layoutmsg,swapwithmaster master

View file

@ -2,7 +2,6 @@
#Commands & Apps to be executed at launch #Commands & Apps to be executed at launch
$scriptsDir = $HOME/.config/hypr/scripts $scriptsDir = $HOME/.config/hypr/scripts
$UserScripts = $HOME/.config/hypr/UserScripts
# wallpaper stuff / More wallpaper options below # wallpaper stuff / More wallpaper options below
exec-once = swww-daemon --format xrgb exec-once = swww-daemon --format xrgb
@ -11,9 +10,6 @@ exec-once = swww-daemon --format xrgb
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
# Polkit (Polkit Gnome / KDE)
exec-once = $scriptsDir/Polkit.sh
# starup apps # starup apps
exec-once = waybar & exec-once = waybar &
exec-once = nm-applet --indicator & exec-once = nm-applet --indicator &

View file

@ -5,7 +5,6 @@
general { general {
lock_cmd = pidof hyprlock || hyprlock # runs hyprlock if it is not already running (this is always run when "loginctl lock-session" is called) lock_cmd = pidof hyprlock || hyprlock # runs hyprlock if it is not already running (this is always run when "loginctl lock-session" is called)
# unlock_cmd = killall hyprlock # kills hyprlock when unlocking (this is always run when "loginctl unlock-session" is called)
before_sleep_cmd = loginctl lock-session # ensures that the session is locked before going to sleep before_sleep_cmd = loginctl lock-session # ensures that the session is locked before going to sleep
after_sleep_cmd = hyprctl dispatch dpms on # turn of screen after sleep (not strictly necessary, but just in case) after_sleep_cmd = hyprctl dispatch dpms on # turn of screen after sleep (not strictly necessary, but just in case)
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam)
@ -13,11 +12,11 @@ general {
# turn off screen faster if session is already locked # turn off screen faster if session is already locked
# (disabled by default) # (disabled by default)
# listener { listener {
# timeout = 30 # 30 seconds timeout = 30 # 30 seconds
# on-timeout = pidof hyprlock && hyprctl dispatch dpms off # turns off the screen if hyprlock is active on-timeout = pidof hyprlock && hyprctl dispatch dpms off # turns off the screen if hyprlock is active
# on-resume = pidof hyprlock && hyprctl dispatch dpms on # command to run when activity is detected after timeout has fired. on-resume = pidof hyprlock && hyprctl dispatch dpms on # command to run when activity is detected after timeout has fired.
# } }
# Warn # Warn
listener { listener {
@ -40,10 +39,3 @@ listener {
# on-timeout = hyprctl dispatch dpms off # command to run when timeout has passed # on-timeout = hyprctl dispatch dpms off # command to run when timeout has passed
# on-resume = hyprctl dispatch dpms on # command to run when activity is detected after timeout has fired. # on-resume = hyprctl dispatch dpms on # 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.
# }

View file

@ -1,161 +0,0 @@
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# Hyprlock config for => 2k monitor resolutions
# Original config submitted by https://github.com/SherLock707
# Sourcing colors generated by wallust
source = $HOME/.config/hypr/wallust/wallust-hyprland.conf
$Scripts = $HOME/.config/hypr/scripts
general {
grace = 1
}
background {
monitor =
# NOTE: use only 1 path
#path = screenshot # screenshot of your desktop
path = $HOME/.config/hypr/wallpaper_effects/.wallpaper_modified # NOTE only png supported for now
#path = $HOME/.config/hypr/wallpaper_effects/.wallpaper_current # current wallpaper
#color = $color7
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
blur_size = 2
blur_passes = 1 # 0 disables blurring
noise = 0.0117
contrast = 1.3000 # Vibrant!!!
brightness = 0.8000
vibrancy = 0.2100
vibrancy_darkness = 0.0
}
# Date
label {
monitor =
text = cmd[update:18000000] echo "<b> "$(date +'%A, %-d %B')" </b>"
color = $color12
font_size = 24
font_family = JetBrainsMono Nerd Font ExtraBold
position = 0, -100
halign = center
valign = top
}
# Hour-Time
label {
monitor =
text = cmd[update:1000] echo "$(date +"%H")"
# text = cmd[update:1000] echo "$(date +"%I")" #AM/PM
#color = rgba(255, 185, 0, .8)
color = $color13
font_size = 200
font_family = JetBrainsMono Nerd Font ExtraBold
position = 0, -150
halign = center
valign = top
}
# Minute-Time
label {
monitor =
text = cmd[update:1000] echo "$(date +"%M")"
#color = rgba(15, 10, 222, .8)
color = $color12
font_size = 200
font_family = JetBrainsMono Nerd Font ExtraBold
position = 0, -475
halign = center
valign = top
}
# Seconds-Time
label {
monitor =
text = cmd[update:1000] echo "$(date +"%S")"
# text = cmd[update:1000] echo "$(date +"%S %p")" #AM/PM
color = $color11
font_size = 40
font_family = JetBrainsMono Nerd Font ExtraBold
position = 0, -460
halign = center
valign = top
}
# Put a picture of choice here. Default is the current wallpaper
image {
monitor =
path = $HOME/.config/hypr/wallpaper_effects/.wallpaper_current
size = 160
rounding = -1
border_size = 0
border_color = $color11
rotate = 0
reload_time = -1
position = 0, 400
halign = center
valign = bottom
}
# USER
label {
monitor =
text =  $USER
color = $color13
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
dots_center = true
font_size = 24
font_family = JetBrainsMono Nerd Font ExtraBold
position = 0, 150
halign = center
valign = bottom
}
# INPUT FIELD
input-field {
monitor =
size = 300, 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
dots_center = true
outer_color = rgba(0, 0, 0, 0)
inner_color = rgba(255, 255, 255, 0.1)
font_color = $color11
fade_on_empty = false
font_family = JetBrainsMono Nerd Font ExtraBold
placeholder_text = <i><span foreground="##ffffff99">🔒 Type Password</span></i>
hide_input = false
position = 0, 250
halign = center
valign = bottom
}
# uptime
label {
monitor =
text = cmd[update:60000] echo "<b> "$(uptime -p || $Scripts/UptimeNixOS.sh)" </b>"
color = $color13
font_size = 18
font_family = JetBrainsMono Nerd Font ExtraBold
position = 0, 0
halign = right
valign = bottom
}
# weather edit the scripts for locations
# weather scripts are located in ~/.config/hypr/UserScripts Weather.sh and/or Weather.py
# see https://github.com/JaKooLit/Hyprland-Dots/wiki/TIPS#%EF%B8%8F-weather-app-related-for-waybar-and-hyprlock
label {
monitor =
text = cmd[update:3600000] [ -f ~/.cache/.weather_cache ] && cat ~/.cache/.weather_cache
color = $color13
font_size = 18
font_family = JetBrainsMono Nerd Font ExtraBold
position = 50, 0
halign = left
valign = bottom
}

View file

@ -1,12 +0,0 @@
[pyprland]
plugins = [
"scratchpads",
"magnify",
]
[scratchpads.term]
animation = "fromTop"
command = "kitty --class kitty-dropterm"
class = "kitty-dropterm"
size = "75% 60%"

View file

@ -1,23 +0,0 @@
#!/bin/bash
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# This is for custom version of waybar idle_inhibitor which activates / deactivates hypridle instead
PROCESS="hypridle"
if [[ "$1" == "status" ]]; then
sleep 1
if pgrep -x "$PROCESS" >/dev/null; then
echo '{"text": "RUNNING", "class": "active", "tooltip": "idle_inhibitor NOT ACTIVE\nLeft Click: Activate\nRight Click: Lock Screen"}'
else
echo '{"text": "NOT RUNNING", "class": "notactive", "tooltip": "idle_inhibitor is ACTIVE\nLeft Click: Deactivate\nRight Click: Lock Screen"}'
fi
elif [[ "$1" == "toggle" ]]; then
if pgrep -x "$PROCESS" >/dev/null; then
pkill "$PROCESS"
else
"$PROCESS"
fi
else
echo "Usage: $0 {status|toggle}"
exit 1
fi

View file

@ -1,11 +0,0 @@
#!/bin/bash
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Copied from Discord post. Thanks to @Zorg
# Get id of an active window
active_pid=$(hyprctl activewindow | grep -o 'pid: [0-9]*' | cut -d' ' -f2)
# Close active window
kill $active_pid

View file

@ -1,16 +0,0 @@
#!/bin/bash
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# For manually starting xdg-desktop-portal-hyprland
sleep 1
killall xdg-desktop-portal-hyprland
killall xdg-desktop-portal-wlr
killall xdg-desktop-portal-gnome
killall xdg-desktop-portal
sleep 1
/usr/lib/xdg-desktop-portal-hyprland &
/usr/libexec/xdg-desktop-portal-hyprland &
sleep 2
/usr/lib/xdg-desktop-portal &
/usr/libexec/xdg-desktop-portal &

View file

@ -1,57 +0,0 @@
#!/bin/bash
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Scripts for refreshing ags, waybar, rofi, swaync, wallust
SCRIPTSDIR=$HOME/.config/hypr/scripts
UserScripts=$HOME/.config/hypr/UserScripts
# Define file_exists function
file_exists() {
if [ -e "$1" ]; then
return 0 # File exists
else
return 1 # File does not exist
fi
}
# Kill already running processes
_ps=(waybar rofi swaync ags)
for _prs in "${_ps[@]}"; do
if pidof "${_prs}" >/dev/null; then
pkill "${_prs}"
fi
done
killall -SIGUSR2 waybar # added since wallust sometimes not applying
# quit ags
ags -q
# relaunch ags
ags &
# Kill waybar & swaync (yet again) # added since wallust sometimes not applying
_ps2=(waybar swaync)
for _prs2 in "${_ps2[@]}"; do
if pidof "${_prs2}" >/dev/null; then
killall "${_prs2}"
fi
done
# relaunch swaync
sleep 0.5
swaync > /dev/null 2>&1 &
#Restart waybar
sleep 1
waybar &
# Relaunching rainbow borders if the script exists
sleep 1
if file_exists "${UserScripts}/RainbowBorders.sh"; then
${UserScripts}/RainbowBorders.sh &
fi
exit 0

View file

@ -1,41 +0,0 @@
#!/bin/bash
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Modified version of Refresh.sh but waybar wont refresh
# Used by automatic wallpaper change
# Modified inorder to refresh rofi background, Wallust, SwayNC only
SCRIPTSDIR=$HOME/.config/hypr/scripts
UserScripts=$HOME/.config/hypr/UserScripts
# Define file_exists function
file_exists() {
if [ -e "$1" ]; then
return 0 # File exists
else
return 1 # File does not exist
fi
}
# Kill already running processes
_ps=(rofi)
for _prs in "${_ps[@]}"; do
if pidof "${_prs}" >/dev/null; then
pkill "${_prs}"
fi
done
# quit ags
ags -q
# Wallust refresh
${SCRIPTSDIR}/WallustSwww.sh &
# Relaunching rainbow borders if the script exists
sleep 1
if file_exists "${UserScripts}/RainbowBorders.sh"; then
${UserScripts}/RainbowBorders.sh &
fi
exit 0

View file

@ -1,39 +0,0 @@
#!/bin/bash
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Wallust Colors for current wallpaper
# Define the path to the swww cache directory
cache_dir="$HOME/.cache/swww/"
# Get a list of monitor outputs
monitor_outputs=($(ls "$cache_dir"))
# Initialize a flag to determine if the ln command was executed
ln_success=false
# Get current focused monitor
current_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}')
echo $current_monitor
# Construct the full path to the cache file
cache_file="$cache_dir$current_monitor"
echo $cache_file
# Check if the cache file exists for the current monitor output
if [ -f "$cache_file" ]; then
# Get the wallpaper path from the cache file
wallpaper_path=$(grep -v 'Lanczos3' "$cache_file" | head -n 1)
echo $wallpaper_path
# symlink the wallpaper to the location Rofi can access
if ln -sf "$wallpaper_path" "$HOME/.config/rofi/.current_wallpaper"; then
ln_success=true # Set the flag to true upon successful execution
fi
# copy the wallpaper for wallpaper effects
cp -r "$wallpaper_path" "$HOME/.config/hypr/wallpaper_effects/.wallpaper_current"
fi
# Check the flag before executing further commands
if [ "$ln_success" = true ]; then
# execute wallust
echo 'about to execute wallust'
# execute wallust skipping tty and terminal changes
wallust run "$wallpaper_path" -s &
fi

View file

@ -1,138 +0,0 @@
#!/usr/bin/env python3
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
# weather using python
import subprocess
from pyquery import PyQuery # install using `pip install pyquery`
import json
import os
# original code https://gist.github.com/Surendrajat/ff3876fd2166dd86fb71180f4e9342d7
# weather icons
weather_icons = {
"sunnyDay": "󰖙",
"clearNight": "󰖔",
"cloudyFoggyDay": "",
"cloudyFoggyNight": "",
"rainyDay": "",
"rainyNight": "",
"snowyIcyDay": "",
"snowyIcyNight": "",
"severe": "",
"default": "",
}
# get location_id
# to get your own location_id, go to https://weather.com & search your location.
# once you choose your location, you can see the location_id in the URL(64 chars long hex string)
# like this: https://weather.com/en-PH/weather/today/l/bca47d1099e762a012b9a139c36f30a0b1e647f69c0c4ac28b537e7ae9c1c200
location_id = "bca47d1099e762a012b9a139c36f30a0b1e647f69c0c4ac28b537e7ae9c1c200" # TODO
# NOTE to change to deg F, change the URL to your preffered location after weather.com
# Default is English-Philippines with Busan, South Korea as location_id
# get html page
url = "https://weather.com/en-PH/weather/today/l/" + location_id
html_data = PyQuery(url=url)
# current temperature
temp = html_data("span[data-testid='TemperatureValue']").eq(0).text()
# print(temp)
# current status phrase
status = html_data("div[data-testid='wxPhrase']").text()
status = f"{status[:16]}.." if len(status) > 17 else status
# print(status)
# status code
status_code = html_data("#regionHeader").attr("class").split(" ")[2].split("-")[2]
# print(status_code)
# status icon
icon = (
weather_icons[status_code]
if status_code in weather_icons
else weather_icons["default"]
)
# print(icon)
# temperature feels like
temp_feel = html_data(
"div[data-testid='FeelsLikeSection'] > span > span[data-testid='TemperatureValue']"
).text()
temp_feel_text = f"Feels like {temp_feel}c"
# print(temp_feel_text)
# min-max temperature
temp_min = (
html_data("div[data-testid='wxData'] > span[data-testid='TemperatureValue']")
.eq(1)
.text()
)
temp_max = (
html_data("div[data-testid='wxData'] > span[data-testid='TemperatureValue']")
.eq(0)
.text()
)
temp_min_max = f"{temp_min}\t\t{temp_max}"
# print(temp_min_max)
# wind speed
wind_speed = html_data("span[data-testid='Wind']").text().split("\n")[1]
wind_text = f"{wind_speed}"
# print(wind_text)
# humidity
humidity = html_data("span[data-testid='PercentageValue']").text()
humidity_text = f"{humidity}"
# print(humidity_text)
# visibility
visbility = html_data("span[data-testid='VisibilityValue']").text()
visbility_text = f"{visbility}"
# print(visbility_text)
# air quality index
air_quality_index = html_data("text[data-testid='DonutChartValue']").text()
# print(air_quality_index)
# hourly rain prediction
prediction = html_data("section[aria-label='Hourly Forecast']")(
"div[data-testid='SegmentPrecipPercentage'] > span"
).text()
prediction = prediction.replace("Chance of Rain", "")
prediction = f"\n\n (hourly) {prediction}" if len(prediction) > 0 else prediction
# print(prediction)
# tooltip text
tooltip_text = str.format(
"\t\t{}\t\t\n{}\n{}\n{}\n\n{}\n{}\n{}{}",
f'<span size="xx-large">{temp}</span>',
f"<big> {icon}</big>",
f"<b>{status}</b>",
f"<small>{temp_feel_text}</small>",
f"<b>{temp_min_max}</b>",
f"{wind_text}\t{humidity_text}",
f"{visbility_text}\tAQI {air_quality_index}",
f"<i> {prediction}</i>",
)
# print waybar module data
out_data = {
"text": f"{icon} {temp}",
"alt": status,
"tooltip": tooltip_text,
"class": status_code,
}
print(json.dumps(out_data))
simple_weather =f"{icon} {status}\n" + \
f"{temp} ({temp_feel_text})\n" + \
f"{wind_text} \n" + \
f"{humidity_text} \n" + \
f"{visbility_text} AQI{air_quality_index}\n"
try:
with open(os.path.expanduser("~/.cache/.weather_cache"), "w") as file:
file.write(simple_weather)
except:
pass

View file

@ -1,57 +0,0 @@
#!/bin/bash
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# wlogout (Power, Screen Lock, Suspend, etc)
# Set variables for parameters. First numbers corresponts to Monitor Resolution
# i.e 2160 means 2160p
A_2160=700
B_2160=700
A_1600=650
B_1600=650
A_1440=450
B_1440=450
A_1080=350
B_1080=350
A_720=50
B_720=50
# Check if wlogout is already running
if pgrep -x "wlogout" > /dev/null; then
pkill -x "wlogout"
exit 0
fi
# Detect monitor resolution and scaling factor
resolution=$(hyprctl -j monitors | jq -r '.[] | select(.focused==true) | .height / .scale' | awk -F'.' '{print $1}')
hypr_scale=$(hyprctl -j monitors | jq -r '.[] | select(.focused==true) | .scale')
# Set parameters based on screen resolution and scaling factor
if ((resolution >= 2160)); then
T_val=$(awk "BEGIN {printf \"%.0f\", $A_2160 * 2160 * $hypr_scale / $resolution}")
B_val=$(awk "BEGIN {printf \"%.0f\", $B_2160 * 2160 * $hypr_scale / $resolution}")
echo "Setting parameters for resolution >= 4k"
wlogout --protocol layer-shell -b 6 -T $T_val -B $B_val &
elif ((resolution >= 1600 && resolution < 2160)); then
T_val=$(awk "BEGIN {printf \"%.0f\", $A_1600 * 1600 * $hypr_scale / $resolution}")
B_val=$(awk "BEGIN {printf \"%.0f\", $B_1600 * 1600 * $hypr_scale / $resolution}")
echo "Setting parameters for resolution >= 2.5k and < 4k"
wlogout --protocol layer-shell -b 6 -T $T_val -B $B_val &
elif ((resolution >= 1440 && resolution < 1600)); then
T_val=$(awk "BEGIN {printf \"%.0f\", $A_1440 * 1440 * $hypr_scale / $resolution}")
B_val=$(awk "BEGIN {printf \"%.0f\", $B_1440 * 1440 * $hypr_scale / $resolution}")
echo "Setting parameters for resolution >= 2k and < 2.5k"
wlogout --protocol layer-shell -b 6 -T $T_val -B $B_val &
elif ((resolution >= 1080 && resolution < 1440)); then
T_val=$(awk "BEGIN {printf \"%.0f\", $A_1080 * 1080 * $hypr_scale / $resolution}")
B_val=$(awk "BEGIN {printf \"%.0f\", $B_1080 * 1080 * $hypr_scale / $resolution}")
echo "Setting parameters for resolution >= 1080p and < 2k"
wlogout --protocol layer-shell -b 6 -T $T_val -B $B_val &
elif ((resolution >= 720 && resolution < 1080)); then
T_val=$(awk "BEGIN {printf \"%.0f\", $A_720 * 720 * $hypr_scale / $resolution}")
B_val=$(awk "BEGIN {printf \"%.0f\", $B_720 * 720 * $hypr_scale / $resolution}")
echo "Setting parameters for resolution >= 720p and < 1080p"
wlogout --protocol layer-shell -b 3 -T $T_val -B $B_val &
else
echo "Setting default parameters"
wlogout &
fi

View file

@ -1,5 +0,0 @@
### https://github.com/JaKooLit ###
## https://github.com/JaKooLit/Hyprland-Dots
## This is to have a reference of which version would be
## note that this will always be higher than the released versions

View file

@ -1,21 +0,0 @@
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */
# /* wallust template - colors-hyprland */
$background = rgb(26272C)
$foreground = rgb(F5F3F2)
$color0 = rgb(4B4C52)
$color1 = rgb(5B4438)
$color2 = rgb(604A3F)
$color3 = rgb(515870)
$color4 = rgb(82756D)
$color5 = rgb(A0865E)
$color6 = rgb(A9A6A3)
$color7 = rgb(E8E5E3)
$color8 = rgb(A2A19F)
$color9 = rgb(7A5A4B)
$color10 = rgb(806254)
$color11 = rgb(6C7596)
$color12 = rgb(AE9B92)
$color13 = rgb(D6B27D)
$color14 = rgb(E2DDD9)
$color15 = rgb(E8E5E3)

View file

@ -51,8 +51,8 @@
"on-click-middle": "", "on-click-middle": "",
"on-click-right": "", "on-click-right": "",
"on-update": "", "on-update": "",
"on-scroll-up": "$HOME/.config/hypr/scripts/Brightness.sh --inc", "on-scroll-up": "$HOME/.config/scripts/Brightness.sh --inc",
"on-scroll-down": "$HOME/.config/hypr/scripts/Brightness.sh --dec", "on-scroll-down": "$HOME/.config/scripts/Brightness.sh --dec",
"smooth-scrolling-threshold": 1 "smooth-scrolling-threshold": 1
}, },
"backlight#2": { "backlight#2": {
@ -82,8 +82,8 @@
"format-time": "{H}h {M}min", "format-time": "{H}h {M}min",
"tooltip": true, "tooltip": true,
"tooltip-format": "{timeTo} {power}w", "tooltip-format": "{timeTo} {power}w",
"on-click-middle": "$HOME/.config/hypr/scripts/ChangeBlur.sh", "on-click-middle": "$HOME/.config/scripts/ChangeBlur.sh",
"on-click-right": "$HOME/.config/hypr/scripts/Wlogout.sh", "on-click-right": "$HOME/.config/scripts/Wlogout.sh",
}, },
"bluetooth": { "bluetooth": {
"format": " ", "format": " ",
@ -227,8 +227,8 @@
"on-click": "playerctl previous", "on-click": "playerctl previous",
"on-click-right": "playerctl next", "on-click-right": "playerctl next",
"scroll-step": 5.0, "scroll-step": 5.0,
"on-scroll-up": "$HOME/.config/hypr/scripts/Volume.sh --inc", "on-scroll-up": "$HOME/.config/scripts/Volume.sh --inc",
"on-scroll-down": "$HOME/.config/hypr/scripts/Volume.sh --dec", "on-scroll-down": "$HOME/.config/scripts/Volume.sh --dec",
"smooth-scrolling-threshold": 1, "smooth-scrolling-threshold": 1,
"player-icons": { "player-icons": {
"chromium": "", "chromium": "",
@ -310,10 +310,10 @@
], ],
}, },
"scroll-step": 5.0, "scroll-step": 5.0,
"on-click": "$HOME/.config/hypr/scripts/Volume.sh --toggle", "on-click": "$HOME/.config/scripts/Volume.sh --toggle",
"on-click-right": "pavucontrol -t 3", "on-click-right": "pavucontrol -t 3",
"on-scroll-up": "$HOME/.config/hypr/scripts/Volume.sh --inc", "on-scroll-up": "$HOME/.config/scripts/Volume.sh --inc",
"on-scroll-down": "$HOME/.config/hypr/scripts/Volume.sh --dec", "on-scroll-down": "$HOME/.config/scripts/Volume.sh --dec",
"tooltip-format": "{icon} {desc} | {volume}%", "tooltip-format": "{icon} {desc} | {volume}%",
"smooth-scrolling-threshold": 1, "smooth-scrolling-threshold": 1,
}, },
@ -340,10 +340,10 @@
"format": "{format_source}", "format": "{format_source}",
"format-source": " {volume}%", "format-source": " {volume}%",
"format-source-muted": "", "format-source-muted": "",
"on-click": "$HOME/.config/hypr/scripts/Volume.sh --toggle-mic", "on-click": "$HOME/.config/scripts/Volume.sh --toggle-mic",
"on-click-right": "pavucontrol -t 4", "on-click-right": "pavucontrol -t 4",
"on-scroll-up": "$HOME/.config/hypr/scripts/Volume.sh --mic-inc", "on-scroll-up": "$HOME/.config/scripts/Volume.sh --mic-inc",
"on-scroll-down": "$HOME/.config/hypr/scripts/Volume.sh --mic-dec", "on-scroll-down": "$HOME/.config/scripts/Volume.sh --mic-dec",
"tooltip-format": "{source_desc} | {source_volume}%", "tooltip-format": "{source_desc} | {source_volume}%",
"scroll-step": 5, "scroll-step": 5,
}, },
@ -354,10 +354,10 @@
"wireplumber": { "wireplumber": {
"format": "{icon} {volume} %", "format": "{icon} {volume} %",
"format-muted": " Mute", "format-muted": " Mute",
"on-click": "$HOME/.config/hypr/scripts/Volume.sh --toggle", "on-click": "$HOME/.config/scripts/Volume.sh --toggle",
"on-click-right": "pavucontrol -t 3", "on-click-right": "pavucontrol -t 3",
"on-scroll-up": "$HOME/.config/hypr/scripts/Volume.sh --inc", "on-scroll-up": "$HOME/.config/scripts/Volume.sh --inc",
"on-scroll-down": "$HOME/.config/hypr/scripts/Volume.sh --dec", "on-scroll-down": "$HOME/.config/scripts/Volume.sh --dec",
"format-icons": [ "format-icons": [
"", "", "󰕾", "" "", "", "󰕾", ""
], ],
@ -389,8 +389,8 @@
"on-click-middle": "", "on-click-middle": "",
"on-click-right": "", "on-click-right": "",
"on-update": "", "on-update": "",
"on-scroll-up": "$HOME/.config/hypr/scripts/Brightness.sh --inc", "on-scroll-up": "$HOME/.config/scripts/Brightness.sh --inc",
"on-scroll-down": "$HOME/.config/hypr/scripts/Brightness.sh --dec", "on-scroll-down": "$HOME/.config/scripts/Brightness.sh --dec",
"smooth-scrolling-threshold": 1, "smooth-scrolling-threshold": 1,
"tooltip-format": "{percent}%", "tooltip-format": "{percent}%",
}, },
@ -441,10 +441,10 @@
], ],
}, },
"scroll-step": 5.0, "scroll-step": 5.0,
"on-click": "$HOME/.config/hypr/scripts/Volume.sh --toggle", "on-click": "$HOME/.config/scripts/Volume.sh --toggle",
"on-click-right": "pavucontrol -t 3", "on-click-right": "pavucontrol -t 3",
"on-scroll-up": "$HOME/.config/hypr/scripts/Volume.sh --inc", "on-scroll-up": "$HOME/.config/scripts/Volume.sh --inc",
"on-scroll-down": "$HOME/.config/hypr/scripts/Volume.sh --dec", "on-scroll-down": "$HOME/.config/scripts/Volume.sh --dec",
"tooltip-format": "{icon} {desc} | {volume}%", "tooltip-format": "{icon} {desc} | {volume}%",
"smooth-scrolling-threshold": 1, "smooth-scrolling-threshold": 1,
}, },
@ -453,9 +453,9 @@
"format-source": "󰍬", "format-source": "󰍬",
"format-source-muted": "󰍭", "format-source-muted": "󰍭",
"on-click-right": "pavucontrol", "on-click-right": "pavucontrol",
"on-click": "$HOME/.config/hypr/scripts/Volume.sh --toggle-mic", "on-click": "$HOME/.config/scripts/Volume.sh --toggle-mic",
"on-scroll-up": "$HOME/.config/hypr/scripts/Volume.sh --mic-inc", "on-scroll-up": "$HOME/.config/scripts/Volume.sh --mic-inc",
"on-scroll-down": "$HOME/.config/hypr/scripts/Volume.sh --mic-dec", "on-scroll-down": "$HOME/.config/scripts/Volume.sh --mic-dec",
"max-volume": 100, "max-volume": 100,
"tooltip": true, "tooltip": true,
"tooltip-format": "{source_desc} | {source_volume}%", "tooltip-format": "{source_desc} | {source_volume}%",
@ -463,8 +463,8 @@
"custom/power_vertical": { "custom/power_vertical": {
"format": "⏻", "format": "⏻",
"exec": "echo ; echo 󰟡 power // blur", "exec": "echo ; echo 󰟡 power // blur",
"on-click": "$HOME/.config/hypr/scripts/Wlogout.sh", "on-click": "$HOME/.config/scripts/Wlogout.sh",
"on-click-right": "$HOME/.config/hypr/scripts/ChangeBlur.sh", "on-click-right": "$HOME/.config/scripts/ChangeBlur.sh",
"interval": 86400, "interval": 86400,
"tooltip": true, "tooltip": true,
}, },

View file

@ -11,7 +11,7 @@
"format-alt-click": "click", "format-alt-click": "click",
"interval": 3600, "interval": 3600,
"return-type": "json", "return-type": "json",
"exec": "$HOME/.config/hypr/scripts/Weather.sh", "exec": "$HOME/.config/scripts/Weather.sh",
//"exec": "$HOME/.config/hypr/UserScripts/Weather.py", //"exec": "$HOME/.config/hypr/UserScripts/Weather.py",
"exec-if": "ping wttr.in -c1", "exec-if": "ping wttr.in -c1",
"tooltip": true, "tooltip": true,
@ -49,7 +49,7 @@
"format": " ", "format": " ",
"on-click": "$HOME/.config/hypr/UserScripts/WallpaperSelect.sh", "on-click": "$HOME/.config/hypr/UserScripts/WallpaperSelect.sh",
"on-click-right": "$HOME/.config/hypr/UserScripts/WallpaperRandom.sh", "on-click-right": "$HOME/.config/hypr/UserScripts/WallpaperRandom.sh",
"on-click-middle": "$HOME/.config/hypr/scripts/WaybarStyles.sh", "on-click-middle": "$HOME/.config/scripts/WaybarStyles.sh",
"tooltip": true, "tooltip": true,
"tooltip-format": "Left Click: Wallpaper Menu\nMiddle Click: Random wallpaper\nRight Click: Waybar Styles Menu", "tooltip-format": "Left Click: Wallpaper Menu\nMiddle Click: Random wallpaper\nRight Click: Waybar Styles Menu",
}, },
@ -61,8 +61,8 @@
"escape": true, "escape": true,
"exec-on-event": true, "exec-on-event": true,
"interval": 60, "interval": 60,
"exec": "$HOME/.config/hypr/scripts/Hypridle.sh status", "exec": "$HOME/.config/scripts/Hypridle.sh status",
"on-click": "$HOME/.config/hypr/scripts/Hypridle.sh toggle", "on-click": "$HOME/.config/scripts/Hypridle.sh toggle",
"on-click-right": "hyprlock" "on-click-right": "hyprlock"
}, },
@ -70,13 +70,13 @@
"exec": "cat $HOME/.cache/kb_layout", "exec": "cat $HOME/.cache/kb_layout",
"interval": 1, "interval": 1,
"format": " {}", "format": " {}",
"on-click": "$HOME/.config/hypr/scripts/SwitchKeyboardLayout.sh", "on-click": "$HOME/.config/scripts/SwitchKeyboardLayout.sh",
}, },
"custom/light_dark": { "custom/light_dark": {
"format": "󰔎 ", "format": "󰔎 ",
"on-click": "$HOME/.config/hypr/scripts/DarkLight.sh", "on-click": "$HOME/.config/scripts/DarkLight.sh",
"on-click-right": "$HOME/.config/hypr/scripts/WaybarStyles.sh", "on-click-right": "$HOME/.config/scripts/WaybarStyles.sh",
"on-click-middle": "$HOME/.config/hypr/UserScripts/WallpaperSelect.sh", "on-click-middle": "$HOME/.config/hypr/UserScripts/WallpaperSelect.sh",
"tooltip": true, "tooltip": true,
"tooltip-format": "Left Click: Switch Dark-Light Themes\nMiddle Click: Wallpaper Menu\nRight Click: Waybar Styles Menu", "tooltip-format": "Left Click: Switch Dark-Light Themes\nMiddle Click: Wallpaper Menu\nRight Click: Waybar Styles Menu",
@ -84,7 +84,7 @@
"custom/lock": { "custom/lock": {
"format": "󰌾", "format": "󰌾",
"on-click": "$HOME/.config/hypr/scripts/LockScreen.sh", "on-click": "$HOME/.config/scripts/LockScreen.sh",
"tooltip": true, "tooltip": true,
"tooltip-format": "󰷛 Screen Lock", "tooltip-format": "󰷛 Screen Lock",
}, },
@ -93,13 +93,13 @@
"format": "", "format": "",
"on-click": "pkill rofi || rofi -show drun -modi run,drun,filebrowser,window", "on-click": "pkill rofi || rofi -show drun -modi run,drun,filebrowser,window",
"on-click-middle": "$HOME/.config/hypr/UserScripts/WallpaperSelect.sh", "on-click-middle": "$HOME/.config/hypr/UserScripts/WallpaperSelect.sh",
"on-click-right": "$HOME/.config/hypr/scripts/WaybarLayout.sh", "on-click-right": "$HOME/.config/scripts/WaybarLayout.sh",
"tooltip": true, "tooltip": true,
"tooltip-format": "Left Click: Rofi Menu\nMiddle Click: Wallpaper Menu\nRight Click: Waybar Layout Menu", "tooltip-format": "Left Click: Rofi Menu\nMiddle Click: Wallpaper Menu\nRight Click: Waybar Layout Menu",
}, },
// This is a custom cava visualizer // This is a custom cava visualizer
"custom/cava_mviz": { "custom/cava_mviz": {
"exec": "$HOME/.config/hypr/scripts/WaybarCava.sh", "exec": "$HOME/.config/scripts/WaybarCava.sh",
"format": "{}" "format": "{}"
}, },
@ -112,15 +112,15 @@
"on-click": "playerctl previous", "on-click": "playerctl previous",
"on-click-right": "playerctl next", "on-click-right": "playerctl next",
"scroll-step": 5.0, "scroll-step": 5.0,
"on-scroll-up": "$HOME/.config/hypr/scripts/Volume.sh --inc", "on-scroll-up": "$HOME/.config/scripts/Volume.sh --inc",
"on-scroll-down": "$HOME/.config/hypr/scripts/Volume.sh --dec", "on-scroll-down": "$HOME/.config/scripts/Volume.sh --dec",
"smooth-scrolling-threshold": 1, "smooth-scrolling-threshold": 1,
}, },
"custom/power": { "custom/power": {
"format": "⏻ ", "format": "⏻ ",
"on-click": "$HOME/.config/hypr/scripts/Wlogout.sh", "on-click": "$HOME/.config/scripts/Wlogout.sh",
"on-click-right": "$HOME/.config/hypr/scripts/ChangeBlur.sh", "on-click-right": "$HOME/.config/scripts/ChangeBlur.sh",
"tooltip": true, "tooltip": true,
"tooltip-format": "Left Click: Logout Menu\nRight Click: Change Blur", "tooltip-format": "Left Click: Logout Menu\nRight Click: Change Blur",
}, },

View file

@ -1,4 +1,4 @@
[manager] [mgr]
prepend_keymap = [ prepend_keymap = [
{ on = [ "<Space>", "m" ], run = "plugin mount", desc = "Displays mount dialog"}, { on = [ "<Space>", "m" ], run = "plugin mount", desc = "Displays mount dialog"},
{ on = [ "<Space>", 's'], run = "plugin what-size", desc = "Calc size of selection or cwd" }, { on = [ "<Space>", 's'], run = "plugin what-size", desc = "Calc size of selection or cwd" },

View file

@ -0,0 +1,18 @@
[manager]
prepend_keymap = [
{ on = [ "<Space>", "m" ], run = "plugin mount", desc = "Displays mount dialog"},
{ on = [ "<Space>", 's'], run = "plugin what-size", desc = "Calc size of selection or cwd" },
{ on = [ "<Space>", '<S-s>'], run = "plugin what-size --args='--clipboard'", desc = "Calc size of selection or cwd" },
{ on = ["<Space>", "<Space>"], desc = "Jump with zoxide", run = "plugin zoxide" },
{ on = "b", run = [ "toggle", "arrow next" ], desc = "Toggle the current selection state" },
{ on = "<S-l>", desc = "Move to the tab on the left", run = "tab_switch 1 --relative" },
{ on = "<S-h>", desc = "Move to the tab on the right", run = "tab_switch -1 --relative" },
{ on = ["c", 'm'], desc = "Change file mod", run = "plugin chmod"},
{ on = ["<Space>", 'c'], desc = "Compress file", run = "plugin ouch" }
]
append_keymap = [
{ on = ['c', 'v'], desc = "Drag selected files", run = "shell 'blobdrop -b \"$@\"'" },
{ on = ["c", 'k'], desc = "Send using KDE Connect", run = "plugin kdeconnect-send"}
]

1
.gitignore vendored
View file

@ -37,6 +37,7 @@
!/.config/terminal/ !/.config/terminal/
!/.config/xdg-desktop-portal/ !/.config/xdg-desktop-portal/
!/.config/xdg-desktop-portal-termfilechooser/ !/.config/xdg-desktop-portal-termfilechooser/
!/.config/scripts/
!/.ssh/ !/.ssh/
/.ssh/* /.ssh/*