Comments (9)
It is also possible to make a tmpfs (which is stored in ram and hence cleared on shutdown), like so (in /etc/fstab
):
tmpfs /home/username/.cache/cliphist/ tmpfs rw,nodev,nosuid,nofail,x-systemd.device-timeout=5
This could be added to the readme
from cliphist.
thanks for the suggestion
though clearing the db on shutdown is out of scope since the cliphist is supervised by wl-clipboard
from cliphist.
yes that should work fine 👍
from cliphist.
seems to work for me
from cliphist.
@w-jablonski if you build form source, i just made the db path configureable with a flag
alternatively, you can change any flag with an env var or config file.
for example env CLIPHIST_DB_PATH=$HOME/D/X/run/cliphist
or instead create a ~/.config/cliphist/config which looks like:
db-path $HOME/D/X/run/cliphist-db
max-items 100
then you can just use cliphist
anywhere without an env prefix or -max-items param
from cliphist.
Thanks. So regarding a configurable path for the db, is it possible? And would something like the following work?
exec XDG_CACHE_HOME="$HOME/my_directory" wl-paste --watch cliphist store
Thanks for your time.
from cliphist.
This actually doesn't work. Specifically, this line works when executed in terminal:
wl-paste --type text --watch cliphist -max-items 100 store
But the below one doesn't:
XDG_CACHE_HOME="$HOME/D/X/run" wl-paste --type text --watch cliphist -max-items 100 store
It still creates a folder in $HOME/.cache and the file at $HOME/D/X/run/cliphist/db is empty.
from cliphist.
Thanks, I missed the other half there.
So I can get it to work using:
In Sway config:
exec "env XDG_CACHE_HOME=$HOME/D/X/run wl-paste --type text --watch cliphist -max-items 100 store"
Then in terminal:
env XDG_CACHE_HOME="$HOME/D/X/run" cliphist list | fzf --layout=reverse --no-info | env XDG_CACHE_HOME="$HOME/D/X/run" cliphist decode | wl-copy
But strangely, if I put the second half in a script.sh
and run something like foot script.sh
then everything works fine except when I select an old entry it doesn't move to the top of the list - even though it copies to clipboard correctly...
Any advice on this? And thanks for your help anyway.
from cliphist.
Sadly, I need to wait for new release or an AUR package.
Thanks!
from cliphist.
Related Issues (20)
- Feature request: add auto expiration duration
- Where is cliphist storing all clipboard logs/from where it fetch those clipboard logs? HOT 2
- how do I copy cliphist items to clipboard? HOT 1
- Set clipboard database location HOT 1
- Possible to use with xclip ? HOT 6
- won't preserve clipboard after copy source is closed HOT 4
- How to play notification sound for succesfull copy? HOT 1
- reset numbers HOT 1
- Implement secret clipboard entry conventions HOT 4
- Copying Image from browser comes with HTML and Image HOT 1
- Fzf now support sixel HOT 5
- Items in clipboard history don't properly copy HOT 9
- Image files not copying/decoding correctly HOT 1
- How to configure cliphist to save in history the selected text with mouse? HOT 1
- Missing version tag HOT 2
- Sync with KDE Connect? HOT 3
- How do I delete the last four items? HOT 1
- rofi show current selection as bg image. HOT 1
- Invalid arguments are silently ignored
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cliphist.