Skip to content

u/vixfew

In this archive from Nov 2016 to Jan 2025

23
posts
215
comments
6
media
1.2k
score
1 saved before deletion

Top posts

Inspired by a recent post, I made an experimental patch for pacman to enable notes and such (extended data field)

NB: this is not Arch official thing or anything like, just me poking at pacman in my free time :) pacman source pkgbuild with patch changes: -S -U operations: --xdata <key>=<value> this will add a key=value field into the local database. keys are intended to be unique, I heard there are some in use...

27 points2 comments
Open on Reddit

How do I force frequent filesystem cache sync when copying through GUI (thunar) to removable media?

I'm not sure if that's thunar problem or linux in general (or just me lol). Most of you probably know how sometimes files seemingly being copied in fraction of a second, but what actually happens is kernel still moving stuff on the background for a long time. I think rsync does copy properly and dd...

9 points2 comments
Open on Reddit

Top comments

The beauty of open source - you can edit pacman :)

pacman uses putchar for drawing progress bar, which works only for ASCII. I'm too lazy to check for utf8 support, so I just replaced it with fputs and added a color code. Pretty much every terminal emulator supports utf8, right? Right? :3

diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 75c74f8b..e9cf87c2 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -194,7 +194,7 @@ static void fill_progress(const int bar_percent, const int disp_percent,
                }
            } /* else regular progress bar */
            else if(i > hashlen - hash) {
-               putchar('#');
+               fputs("\033[31;1m❤\033[m", stdout);
            } else {
                putchar('-');
            }

this patch is against v6.0.0 and it replaces default progress bar with red hearts

edit:

https://aur.archlinux.org/packages/pacman-hearts/

https://github.com/vixfwis/pacman-hearts

PKGBUILD copied from pacman-git and edited from there. looks like this https://i.imgur.com/s1ajlRH.png

38 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.