You are not logged in.
Offline
Thx bloom
"An example script using notify-send is provided in examples/notification."
i cant seem to find that script anywhere, is it on github somewhere?
best
Z
Offline
Fixed.
I can confirm that this is now fixed; thanks!
Is there any way to prevent sxhkd from attempting to expand curly brackets in a command? For instance, I'm trying to use:
bspc alternate_desktop && bspc send_to $(bspc list_desktops --quiet | awk '/~/ {print $1}') --follow
which doesn't work. I guess I could either place the above command in a script or replace awk with grep '~' | cut -d ' ' -f1.
I use linux and I dont understand nothing in this post.
Offline
bloom wrote:Fixed.
I can confirm that this is now fixed; thanks!
Is there any way to prevent sxhkd from attempting to expand curly brackets in a command? For instance, I'm trying to use:
bspc alternate_desktop && bspc send_to $(bspc list_desktops --quiet | awk '/~/ {print $1}') --follow
which doesn't work. I guess I could either place the above command in a script or replace awk with grep '~' | cut -d ' ' -f1.
You should be able to escape them with backslashes (`\{print $1\}`).
Offline
You should be able to escape them with backslashes (`\{print $1\}`).
That was too easy. Thanks!
I use linux and I dont understand nothing in this post.
Offline
hi again bloom
im aware im an idiot but i cant get it to work (the visual cue). i dl the sample script and start sxhkd with -s PATH to script but i cant get anything to show up? what am i doing wrong
sorry for being slow
Z
Offline
hi again bloom
im aware im an idiot but i cant get it to work (the visual cue). i dl the sample script and start sxhkd with -s PATH to script but i cant get anything to show up? what am i doing wrong
sorry for being slow
Z
Everything.
sxhkd writes to the socket specified by '-s' and the script reads from this socket.
# Make the socket
mkfifo /path/to/sxhkd_socket
# Start the notifier
sxhkd_notify /path/to/sxhkd_socket &
# Start sxhkd
sxhkd -s /path/to/sxhkd_socket
Offline
ModeraorModerator comment
im aware im an idiot but i cant get it to work (the visual cue). i dl the sample script and start sxhkd with -s PATH to script but i cant get anything to show up? what am i doing wrong
zeltak,
I assume you are not posting from your phone, but even if you are -- These are not SMS based forums. Please, our community norm is to use complete English sentences with proper punctuation and spelling. We do, of course, make every accommodation for non-native speakers who try their best. SMS shorthand does not qualify.
Please see our policy
https://wiki.archlinux.org/index.php/Fo … ow_to_Post
Last edited by ewaller (2013-07-06 15:11:48)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Moderaor comment
zeltak wrote:im aware im an idiot but i cant get it to work (the visual cue). i dl the sample script and start sxhkd with -s PATH to script but i cant get anything to show up? what am i doing wrong
zeltak,
I assume you are not posting from your phone, but even if you are -- These are not SMS based forums. Please, our community norm is to use complete English sentences with proper punctuation and spelling. We do, of course, make every accommodation for non-native speakers who try their best. SMS shorthand does not qualify.
Please see our policy
https://wiki.archlinux.org/index.php/Fo … ow_to_Post
wtf? i see nothing wrong with his post...
*edit* Moderator is written with a "t" (sorry, couldn't resist)
Last edited by Rasi (2013-07-06 10:58:34)
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
thx Stebalien
worked like a charm
Z
Offline
thx Stebalien
worked like a charm
Z
oh-oh, sms talk detected (thx instead of thank you)!
but what i really wanted to say: thanks bloom, this is a neat little tool.
Last edited by Rasi (2013-07-06 19:39:55)
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
Would it be possible to implement i3-esque "modes"? Syntactically, perhaps something similar to:
super + r : {h,j,k,l}
which would bind the {h,j,k,l} keys until the "mode" is exited.
I use linux and I dont understand nothing in this post.
Offline
Would it be possible to implement i3-esque "modes"? Syntactically, perhaps something similar to:
super + r : {h,j,k,l}
which would bind the {h,j,k,l} keys until the "mode" is exited.
Brought by a4c9908.
A mode can be exited via the Escape key.
The replay event character prefix is now ~.
Offline
Brought by a4c9908.
Thanks, this is awesome. It still times out if no keys are pressed; is this supposed to happen?
I use linux and I dont understand nothing in this post.
Offline
bloom wrote:Brought by a4c9908.
Thanks, this is awesome. It still times out if no keys are pressed; is this supposed to happen?
Seems that way. Either set all timeouts to 0 or modify types.c:
if (chained && !locked && timeout > 0)
alarm(timeout);
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Offline
You might like the idea of press durations. For example, if I hold the key down for X seconds the command will be executed.
Also, in extension to that, press duration intervals. For example, when I press the key the command is executed and if keep the key held down it will execute the command every X seconds.
With both features used for the same binding, there's the press duration at the beginning with the intervals starting after the initial execution.
These features would be pretty useful for numbered controls (volume, brightness, window gaps), power management (suspend on key held down for 5 seconds), etc. Thanks in advance for consideration!
Edit: If you do implement these features, you may want to disable repeating commands on key press hold for normal binds.
Last edited by Iao (2013-09-12 13:14:56)
Offline
Offline
Commit f013d17 seems to render sxhkd unusable. It builds and runs without issue but doesn't respond to keypresses while running. As I was typing, the pull request was submitted that should fix this.
Unrelated to the above, and perhaps unrelated to sxhkd all together: if a tabbed instance containing any embedded windows is the only window on its bspwm desktop when it's closed, sxhkd becomes unresponsive. This doesn't happen if another window immediately receives focus or if tabbed has nothing embedded when closed.
I'm able to remedy this by switching to a different tty and executing:
DISPLAY=:0 bspc desktop -f \^3
or
DISPLAY=:0 st &
at which point sxhkd begins responding to keypresses again.
Also, @Nindwen asked in the bspwm thread: "is there a way to easily use one key to cycle through multiple actions?" and gave the example:
super + something
{ bspc desktop -f pad,
bspc desktop -f last }
If doable, this might be a useful addition.
Last edited by Supplantr (2013-09-20 16:17:16)
I use linux and I dont understand nothing in this post.
Offline
Unrelated to the above, and perhaps unrelated to sxhkd all together: if a tabbed instance containing any embedded windows is the only window on its bspwm desktop when it's closed, sxhkd becomes unresponsive. This doesn't happen if another window immediately receives focus or if tabbed has nothing embedded when closed.
Could you provide further instructions on how to reproduce?
Also, @Nindwen asked in the bspwm thread: "is there a way to easily use one key to cycle through multiple actions?"
If doable, this might be a useful addition.
Agreed.
Offline
@ bloom, you might want to fix your email on the sxhkd github page. Lavabit is gone ...
Offline