Skip to content

u/jzbor

In this archive from Aug 2019 to May 2023

25
posts
137
comments
6
media
836
score
3 saved before deletion

Yeah I know. Sadly it is much more complicated. I just wanted to write myself something that works for me with the possibility to upgrading it to wayland later. Also there currently isn't really a Rust library providing good and stable wayland support, so that is probably also something I will wait for.

1 points

Depending on your distro/desktop environment you could try PowerProfiles. GNOMES recent versions support it, I have no clue whether KDE does. But apart from GUI options you can use powerprofilesctl to set the profile to power-saver if you want your battery to last longer (at a relevant performance penalty of course).

11 points

I think what you mean is one GUI program visible to the user. A typical Linux system consists of a Linux kernel and several other programs to get a basic running system. This seems to cause a bit of confusion here. If your goal is in fact to just have one GUI application visible to the user the answer is "yes". For example you can use the Cage Wayland Compositor, which is designed to run a single app maximized to the whole screen. There are many other possibilities to achieve this in Linux though.

9 points

For me its mostly updates and dependency resolving. Not to say it wouldn't work without, but it's just much less hassle and I think I wouldn't always have up-to-date AUR packages installed if I had to manage updating myself. To be honest I think without AUR helpers I would have just written a script for it which would have basically been an AUR helper...

2 points

I do think that RTFM shouldn't always be the answer to a request for support, especially since they are sometimes either incomplete or hard to read. In this case though I think it's not a problem with the man page, but rather that sxhkd simply does not support the feature you want it to have. Here is the description of "chord chains" according to the manpage:

When multiple chords are separated by semicolons, the hotkey is a chord
chain: the command will only be executed after receiving each chord of
the chain in consecutive order.
7 points

I think that is neither what is meant by "chords" in sxhkd's context nor supported in another way besides just defining both versions explicitly. It states in the man page that each part of a chord must be activated consecutively.

2 points

I think it is actually about the command - meaning the line that follows the key combination. Now I have not tested or verified this, but I think it would look something like this:

alt + x
    ; sleep 3
    ; notify-send "Hello world"

This should only send "Hello world" after a delay of 3 seconds, whilst it would otherwise be executed instantly in parallel...

2 points
          HOTKEY
               [;]COMMAND

           HOTKEY      := CHORD_1 ; CHORD_2 ; ... ; CHORD_n
           CHORD_i     := [MODIFIERS_i +] [~][@]KEYSYM_i
           MODIFIERS_i := MODIFIER_i1 + MODIFIER_i2 + ... + MODIFIER_ik

From sxhkd's manpage. AFAIK you could try 'alt + q; alt+t'. I also am not sure whether chording means pressing the keys at the same time. I think it's rather pressing them one after another...

3 points

I am not sure how it handles soft links, but I think it copies them without changing their reference or defreferencing them. -u only copies files newer than in the destination (if a file with the same name already exists). -a states that you want to also preserve all file attributes (like permissions, timestamps, etc.). I think the -r might even be obsolete, cause it is included in -a. If you want to copy linked files instead of just their links this is also possible with cp.

3 points

With pass you usually sync your passwords via git (e.g. github, gitlab, etc.). So the app is probably asking for a link to your git repository. There should be a guide on how to set this up in the ArchWiki iirc. Apart from the app you can probably use any syncing service - all you passwords are simply stored in ~/.passwordstore or something similar (I am not sure I remember the dir name correctly).

1 points

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.