Questions tagged [sxhkd]

15 questions
3
votes
1 answer

Where do I get xcb_event.h?

I'm 'make'-ing SXHKD on MX Linux to try keybindings and I get: $ make cc -std=c99 -pedantic -Wall -Wextra -D_POSIX_C_SOURCE=200112L -DVERSION=\"0.6.1\" -c -o sxhkd.o src/sxhkd.c src/sxhkd.c:25:10: fatal error: xcb/xcb_event.h: No such file or…
1toneboy
  • 103
  • 9
2
votes
1 answer

Launching urxvt with calendar (cal) using sxhkd

Hi I'm trying to launch cal with sxhkd. And it doesn't work, the terminal window is closed right after the command is executed. I tried to do it using the following: # launch urxvt 20x8 with cal super + c urxvt -geometry 20x8 -e cal -m I also…
user419050
  • 339
  • 3
  • 11
1
vote
1 answer

How can I bind "modifier + arrow" keys to home/end/pageup/pagedown under X?

I have a new 60% keyboard (NuPhy Air60), but it does not have any way to trigger pageup/pagedown or home/end keys. My goal is to recover these commands with a custom keybinding, using a modifier key like hyper or alt, in combination with the arrow…
ChaseMoskal
  • 111
  • 3
1
vote
1 answer

Which process handles XF86 keys?

There are multimedia buttons in my keyboard, the key I am actually interested in are Brightness keys (XF86MonBrightness{UP|DOWN}). I am using bspwm window manager, and without any sxhkdrc config the brightness is automatically handled, I want to…
Afroz Alam
  • 21
  • 2
1
vote
0 answers

bind held key without blocking typing

I have a foot pedal that I would like to toggle a file's contents when pressed and released. I have got the foot pedal acting like a normal key with a keycode and disabled it from repeating with xset -r . But when I bind it to a command…
utamdekq
  • 21
  • 2
1
vote
2 answers

Is it possible to change bspwm binds to work like tmux binds?

I come from tmux and I was wondering if its possible to configure sxhkd and bspwm to have binds just like it. For example, Assuming my C-w is my prefix rather than the default C-b tmux prefix C-w h # move to left pane C-w j # move to bottom pane C-w…
PrimRock
  • 133
  • 5
1
vote
1 answer

Why am I having these issues in sxhkd?

First issue: So, in my sxhkd config, I have these lines: super + i; b export b=$(acpi); notify-send -t 2000 $b super + i; r export r=$(free -h | awk '{print $6}' | sed 's/available//'); notify-send -t 2000 'Available memory' $r The first…
Akshat Vats
  • 439
  • 2
  • 8
  • 21
1
vote
1 answer

Can't start sxhkd as a systemd service

I'm using bspwm on my Arch Linux install and I need to run the sxhkd hotkey daemon to launch my applications. Up to now, the launch script was in my .config/bspwm/bspwmrc (which is a simple bash script file): # Keyboard bindings manager pkill…
Ben
  • 227
  • 3
  • 16
0
votes
0 answers

Bind a key to press another key with sxhkd

I recently switched over from using windows where I used to use AutoHotKey for a few temporary shortcuts and key remapping. This is a small section of the code I used: d:: { sendinput, [ sleep, 30 sendinput, !o sleep, 30 } Pressing d…
0
votes
0 answers

Bspwm session displays only grey screen and keybindings dont work

Here are my bspwmrc and sxhkdrc files #AUTOSTART picom --config ~/.config/picom/picom.conf nitrogen --restore & $HOME/.config/polybar/launch.sh pgrep -x sxhkd > /dev/null || sxhkd & xsetroot -cursor_name left_ptr & bspc monitor -d "I" "II" "III"…
PsyQuake
  • 1
  • 1
0
votes
1 answer

X11: can't set custom keyboard layout when pressing Super key

I want to change the default QWERTY layout to colemak layout. I use bspwm with its default sxhkd. I tried setting it in the X11 config file: /etc/X11/xorg.conf.d/30-keyboard.conf: Section "InputClass" Identifier "KeyboardDefaults" Driver…
kelvium
  • 1
  • 1
  • 1
0
votes
3 answers

Switching keyboard layouts

END GOAL I use Arch Linux with bspwm as my window manager and sxhkd as a hotkey daemon. I want to map a certain key combination in my sxhkdrc so that it shuffles through different keyboard layouts. For example: # Shuffle through keyboard…
Vladimir
  • 149
  • 2
  • 8
0
votes
1 answer

xdotool not working with sxhkd?

ctrl + 2 xdotool type Test Message Added the above line to sxhkdrc with no effect. Using different commands works, but for some reason any xdotool command doesn't work... If i run that command in dmenu or terminal it works. man sxhkd says the…
0
votes
1 answer

Setting a keyboard shortcut to interactively select a screenshot (sxhkd/scrot)

I would like to add a keyboard shortcut using sxhkd let me select a region of my desktop to screenshot using scrot. This should be accomplished by adding this section to my sxhkd file, ctrl + alt + x scrot --select but this doesn't work. The…
Mike Pierce
  • 737
  • 1
  • 6
  • 23
0
votes
1 answer

How to remap a combination of buttons clicks to run a script

I'm running BSPWM as my tiling window manager, and SXHKD as my mapping tool. And i want to kill the current window when i click a combination of: button1 + button1 + button3 (double left click + right click). I tried adding this to my sxhkd…