Questions tagged [x-dwm]

For questions about the Dynamic Window Manager (dwm) for X. For questions about the Windows API, use [dwm].

Product Homepage: https://dwm.suckless.org

36 questions
13
votes
1 answer

How to port WM to wayland?

Are there any examples to port existing WM from X11 to wayland? For example, porting light-weighted WMs (such as dwm, wmii, awesome) to wayland. Maybe, portings dwm to wayland is a good example.
Vivodo
  • 1,542
  • 2
  • 17
  • 31
6
votes
1 answer

How to install dwm in Arch Linux

I installed dwm 6.0 using the file provided here and then... # make install # dwm But running "dwm" gives error: "dwm: cannot open display". I tried "exec dwm", but it starts a new login dialog, basically a new session. Note: I installed a display…
Omar Awamry
  • 1,462
  • 3
  • 15
  • 29
3
votes
2 answers

X-DWM -- help me fix a bug in C source code

I am using dwm (6.2) window manager and I found a bug which I would love to solve. Window manager uses "master area" and "stack area" where windows are put: It is possible to move window at the top of the "stack area" to the bottom of the "master…
71GA
  • 1,132
  • 6
  • 36
  • 69
3
votes
3 answers

Annoying gaps between windows in dwm

I'm trying to figure out how can I get rid of these gaps between windows. Please, see the screens below. At the first screen there is a gap at the bottom a gap (about 15px). At the second one - gap at the center between two windows. I've already…
Timur Fayzrakhmanov
  • 17,967
  • 20
  • 64
  • 95
3
votes
1 answer

How I can implement circle switching layouts?

By default in dwm config.h provide one keybinding per layout. { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, I want to obtain function in my dwm…
proofit404
  • 281
  • 1
  • 13
2
votes
1 answer

Can dwm handle a keybinding sequence pressed one after another?

Can the dwm (https://dwm.suckless.org/) window manager natively handle a keybinding sequence pressed one after another (as opposed to pressing them together simultaneously) like in spacemacs? If not, is it possible to make dwm work with something…
Jensun Ravichandran
  • 959
  • 1
  • 11
  • 28
2
votes
1 answer

Snapshoting a workspace in WM: layout and programs which are opened

I was wondering if it was possible to snapshot a workspace, i.e. save state not only of the layout but also of the windows which were opened. Why do I need this? Because I switch between different workflows. I may program for a while and then I…
Andrew
  • 125
  • 1
  • 8
2
votes
1 answer

In dwm how can I send a window to another tag from the command line?

Using the default keyboard layout in dwm, I can send a window to tag 9 using Alt+Shift+9, for example. Can I do the same thing programatically? (I want to achieve a toggle feature for certain windows - showing them on one key press and hiding them…
user569825
  • 2,369
  • 1
  • 25
  • 45
2
votes
1 answer

Configure dwm (Linux) to peek when MODKEY is held

I just installed dwm on Arch and am loving it. However, I found that I have no use for the status bar except when I'm switching tags, so I thought a useful feature would be to only display it while MODKEY is pressed. I know that MODKEY+b toggles the…
GeoffChurch
  • 395
  • 1
  • 13
1
vote
1 answer

How to make Screenshot in DWM with maim format string in C to execute command -

I want to create shortcut to make screenshots in DWM with maim. Command works for bash but for C there are spaces and symbols so DWM can't execute this command correctly. static const char *maim[] = {"maim ~/Screenshots/$(date +%F-%H_%M_%S).png",…
YukaMax
  • 31
  • 3
1
vote
1 answer

Question about if else statements in bash

I'm attempting to write a function for dwmbar in bash using playerctl to return metadata about a song. If there is nothing playing, e.g. if playerctl status returns No players found. I want it to show nothing. The example below however prints…
2346254765
  • 31
  • 3
1
vote
1 answer

How do I get android studio to work on dwm?

When opening android studio , the starting screen comes up , but with no contents (just a grey window). It works flawlessly when I change to kde via the option before login. Even after pasting "export _JAVA_AWT_WM_NONREPARENTING=1" into the terminal…
1
vote
1 answer

detecting when a usb drive is connected script not working as intended

im using DWM (Tiling Window Manager) with dwmblocks for the statusbar on my laptop. i have 3 usb ports on this laptop. im using this script to detect and show a block(icon) on the statusbar when i connect a usb drive. if [[ "$(dmesg -S | tail | grep…
apoorv569
  • 143
  • 1
  • 12
1
vote
1 answer

How to change reaction time and typing speed on holding a key in suckless dwm?

In source code must be some function or variable for that, but I can't find it and I don't know how to even google it
De Scar
  • 61
  • 1
  • 5
1
vote
0 answers

How to get pulseaudio volume in C?

I am writing my own status bar program for suckless dwm and the last thing left on the list is getting volume percentage from default pulseaudio sink. In bash, I have solved this with this pipe: pactl list sinks | awk '$1=="Volume:" {print $5}' Is…
Anej
  • 31
  • 3
1
2 3