This commit is contained in:
2025-08-13 21:46:48 +02:00
commit c3e2e6509b
818 changed files with 54187 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
#!/bin/bash
if [ "$1" = "--freeze" ]; then
extra_args="--freeze"
fi
# variables
theme="$HOME/.config/rofi/scripts/screenshot/style.rasi"
hyprshot="$HOME/.config/hypr/scripts/hyprshot"
save_dir="$HOME/pictures/screenshots/pc"
filename="captura-$(date +%Y-%m-%d-%s).png"
command="$hyprshot -o $save_dir -f $filename $extra_args"
# options to be displayed
region="󰆞"
output=""
window=""
folder=""
selected="$(echo -e "$region\n$output\n$window\n$folder" | rofi -dmenu -theme "${theme}")"
case $selected in
$region)
$command -m region
;;
$output)
$command -m output
;;
$window)
$command -m window
;;
$folder)
~/.config/rofi/scripts/screenshot/screenshot_selection
;;
esac

View File

@@ -0,0 +1,28 @@
#!/bin/bash
screenshots_dir=$HOME/pictures/screenshots/pc
theme="$HOME/.config/rofi/scripts/wallpaper/style.rasi"
build_theme() {
rows=$1
cols=$2
icon_size=$3
echo "element{orientation:vertical;}element-text{horizontal-align:0.5;}element-icon{size:$icon_size.0000em;}listview{lines:$rows;columns:$cols;}"
}
rofi_cmd="rofi -dmenu -i -show-icons -theme-str $(build_theme 5 4 10) -theme ${theme}"
choice=$(
ls -t --escape "$screenshots_dir" -p | grep -v / |
while read A; do echo -en "$A\x00icon\x1f$screenshots_dir/$A\n"; done |
$rofi_cmd
)
screenshot="$screenshots_dir/$choice"
if command -v satty &>/dev/null; then
satty -f "$screenshot"
else
xdg-open "$screenshot"
fi

View File

@@ -0,0 +1,168 @@
// Config
configuration {
show-icons: false;
me-select-entry: "";
me-accept-entry: [ MousePrimary, MouseSecondary, MouseDPrimary ];
}
@theme "~/.config/rofi/theme/catppuccin-macchiato.rasi"
// Main Window
window {
transparency: "real";
location: center;
anchor: center;
fullscreen: false;
width: 450px;
x-offset: 0px;
y-offset: 0px;
enabled: true;
margin: 0px;
padding: 0px;
border: 2px solid;
border-radius: 10px;
border-color: @accent;
cursor: "default";
background-color: @background;
}
// Main Box
mainbox {
enabled: true;
spacing: 15px;
margin: 0px;
padding: 30px;
border: 0px solid;
border-radius: 5px;
border-color: @selected;
background-color: transparent;
children: [ "message", "listview" ];
}
// Inputbar
inputbar {
enabled: false;
spacing: 15px;
margin: 0px;
padding: 0px;
border: 0px;
border-radius: 5px;
border-color: @selected;
background-color: transparent;
text-color: @foreground;
children: [ "textbox-prompt-colon", "prompt" ];
}
dummy {
background-color: transparent;
}
textbox-prompt-colon {
font: "Symbols Nerd Font 12";
enabled: false;
expand: false;
str: "";
padding: 0 14px;
border-radius: 10px;
border-color: @urgent;
border: 2px solid;
background-color: @background;
text-color: @foreground;
vertical-align: 0.5;
horizontal-align: 0.5;
}
prompt {
enabled: false;
padding: 12px;
border-radius: 10px;
border-color: @active;
border: 2px solid;
background-color: @background;
text-color: @foreground;
}
// Message
message {
enabled: false;
margin: 0px;
padding: 12px;
border: 0px solid;
border-radius: 10px;
border-color: @selected;
background-color: @background-tb;
text-color: @foreground;
}
textbox {
background-color: inherit;
text-color: inherit;
vertical-align: 0.5;
horizontal-align: 0.5;
placeholder-color: @foreground;
blink: true;
markup: true;
}
error-message {
padding: 12px;
border: 0px solid;
border-radius: 10px;
border-color: @selected;
background-color: @background;
text-color: @foreground;
}
// Listview
listview {
enabled: true;
columns: 4;
lines: 1;
cycle: true;
dynamic: true;
scrollbar: false;
layout: vertical;
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 15px;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: @selected;
background-color: transparent;
text-color: @foreground;
cursor: "default";
}
// Elements
element {
enabled: true;
spacing: 0px;
margin: 0px;
padding: 10px;
border: 0px solid;
border-radius: 10px;
border-color: @accent;
background-color: transparent;
text-color: @foreground;
cursor: pointer;
}
element-text {
font: "Symbols Nerd Font 24";
background-color: transparent;
text-color: inherit;
cursor: inherit;
vertical-align: 0; // NOTE: Change this back to 0.5 once https://github.com/davatorium/rofi/issues/2076 is resolved
horizontal-align: 0.5;
}
element selected.normal {
background-color: var(foreground);
border-color: var(selected);
border: 0px solid;
text-color: var(background);
}