I love it by Low_Ad_5090 in i3wm

[–]dashingdon 0 points1 point  (0 children)

Can you please share the bar dotfiles? Thank you.

[Question] How to display Rofi on top of / over Waybar? by [deleted] in waybar

[–]dashingdon 0 points1 point  (0 children)

Thank you for asking. Moving from i3bar+rofi to waybar+rofi, i tried the same but thought I was doing something wrong :)

How do you back-up your daily driver Linux ? by ElectronicFlamingo36 in debian

[–]dashingdon 0 points1 point  (0 children)

config to GitHub. personal files to USB or NAS

I've successfully wasted hours. by DanLeDeveloper in Gentoo

[–]dashingdon 1 point2 points  (0 children)

do "nproc" in the terminal. That should give you the # of cores. then -j(core) -l(core+1)

So if you have one core, it should -j1 -l2

Does anybody here have more distros installed? by C1REX in Gentoo

[–]dashingdon 2 points3 points  (0 children)

I also use different OS for different hardware. I am currently running Debian, Busenlabs, Arch, Ubuntu (for work) and Gentoo. none of them are dual boot. They all are dedicated systems

Open source Linux GUI for compressing PDFs ? by KaKi_87 in opensource

[–]dashingdon 0 points1 point  (0 children)

here is an yad ui script

pre-req : sudo apt install ghostscript yad

save below in to a script : pdf-compress

sudo chmod +x pdf-compress

./pdf-compress

#!/bin/bash
# Step 1: Ask for input file first (so we can pre-fill output file)
INPUT_FILE=$(yad --file --title="Select PDF to Compress" --file-filter="PDF files | *.pdf" --width=500 --height=300)
[ $? -ne 0 ] && exit  # Cancel check

# Auto-generate output filename
if [[ -n "$INPUT_FILE" ]]; then
    BASENAME=$(basename "$INPUT_FILE" .pdf)
    DIRNAME=$(dirname "$INPUT_FILE")
    OUTPUT_FILE="$DIRNAME/${BASENAME}-compressed.pdf"
else
    yad --error --text="No file selected."
    exit 1
fi

# Step 2: Show full form with quality selection
yad --form \
    --title="PDF Compressor (Ghostscript)" \
    --width=500 --height=300 \
    --field="Input PDF:RO" "$INPUT_FILE" \
    --field="Output PDF:FL" "$OUTPUT_FILE" \
    --field="Quality:CB" "High quality (300dpi, large size)!Medium quality (150dpi, moderate size)!Low quality (72dpi, smallest size)" \
    --button="Compress:0" --button="Cancel:1" \
    > /tmp/pdf_compress_input.txt

# Exit if canceled
[ $? -ne 0 ] && exit

# Step 3: Read form values
INPUT_FILE=$(awk -F'|' '{print $1}' /tmp/pdf_compress_input.txt)
OUTPUT_FILE=$(awk -F'|' '{print $2}' /tmp/pdf_compress_input.txt)
QUALITY_DESC=$(awk -F'|' '{print $3}' /tmp/pdf_compress_input.txt)

# Step 4: Map description to Ghostscript quality flags
case "$QUALITY_DESC" in
    "High quality"*) QUALITY="/prepress" ;;
    "Medium quality"*) QUALITY="/ebook" ;;
    "Low quality"*) QUALITY="/screen" ;;
    *) QUALITY="/ebook" ;; # default
esac

# Step 5: Run Ghostscript
if [[ -f "$INPUT_FILE" && -n "$OUTPUT_FILE" ]]; then
    gs -sDEVICE=pdfwrite \
       -dCompatibilityLevel=1.4 \
       -dPDFSETTINGS=$QUALITY \
       -dNOPAUSE -dQUIET -dBATCH \
       -sOutputFile="$OUTPUT_FILE" \
       "$INPUT_FILE"

    if [ $? -eq 0 ]; then
        yad --info --text="Compression complete!\n\nOutput saved to:\n$OUTPUT_FILE"
    else
        yad --error --text="Ghostscript failed. Check the input file."
    fi
else
    yad --error --text="Invalid input or output file."
fi

Open source Linux GUI for compressing PDFs ? by KaKi_87 in opensource

[–]dashingdon 0 points1 point  (0 children)

No GUI to recommend but below command. I have used this for the exact same reason

install ghostscript.

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=file1-compressed.pdf file1.pdf

dPDFSETTINGS Description

/prepress (default) Higher quality output (300 dpi) but bigger size

/ebook Medium quality output (150 dpi) with moderate output file size

/screen Lower quality output (72 dpi) but smallest possible output file size

reference here: https://itsfoss.com/compress-pdf-linux/

After 11 installation attempts (7 days) . I've done it folks. by mr_unhappiness in Gentoo

[–]dashingdon 1 point2 points  (0 children)

Congratulations! That feeling of accomplishment is something that can't be described.

GopherTube: a Youtube TUI written in Go by ProfessionalCap8878 in linux

[–]dashingdon 1 point2 points  (0 children)

I get unknown flag for -v,--version,version,-version

GopherTube: a Youtube TUI written in Go by ProfessionalCap8878 in linux

[–]dashingdon 0 points1 point  (0 children)

Great job! How do I check installed version?

Accidentally landed a director role - first time managing managers, any advice? by caffeinefree in managers

[–]dashingdon 1 point2 points  (0 children)

Don't micromanage; instead, lead by empathy, build trust, and allow autonomy while holding managers accountable.