Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
1
answers
11823
views
BSPWM blank screen
I was determined to battle this through without having to ask for help ... yet here I am. I'm fairly new to this but I just can't get bspwm loading up with anything. Entering startx just gives me a blank screen. No error messages / cursor / responsiveness when attempting a superkey + Return for a ur...
I was determined to battle this through without having to ask for help ... yet here I am.
I'm fairly new to this but I just can't get bspwm loading up with anything. Entering startx just gives me a blank screen. No error messages / cursor / responsiveness when attempting a superkey + Return for a urxvt console or any other keybinding. Just nothing.
Setup:
Arch Linux
Xorg
bspwm 0.9.7-10-g2ffd9c1
urxvt (9.22)
Ryzen 3 2200g CPU with Radeon Vega graphics,
I first installed the xf86-video-ati driver and when that did not work, used mesa. The issue persists.
Here are my configs:
~/.xinitrc :
ix.io/2dPX
~/.config/bspwm/bspwmrc :
ix.io/2dQ4
~/.config/sxhkd/sxhkdrc :
ix.io/2dQ5
Xorg log (I notice no errors):
ix.io/2dQb
Both bspwmrc & sxhkdrc have file permissions as rwxr-xr-x
I simply can't see where I'm going wrong. Can anyone see the mistake? Or anything I can provide to put some more light on this?
Thank you for any help!
quicklime99
(55 rep)
Mar 9, 2020, 08:25 PM
• Last activity: Jun 8, 2025, 12:06 AM
0
votes
0
answers
50
views
BSPWM invalid descriptor not found
a few months ago there was a problem where the configuration with internet monitor only gives the error invalid descriptor found in "eDP-1-1", while with the connected HDMI-0 everything works fine. I'm trying different combinations, and I've found a working crutch. But it seems to me that it certain...
a few months ago there was a problem where the configuration with internet monitor only gives the error invalid descriptor found in "eDP-1-1", while with the connected HDMI-0 everything works fine. I'm trying different combinations, and I've found a working crutch. But it seems to me that it certainly shouldn't work that way. I use autorandr to configure the monitors, but just in case, I still recreate using xrandr. All the configs and scripts that may be required in my opinion are also provided.
**$HOME/.config/autorandr/postswitch**
#!/bin/bash
LOCK="/tmp/autorandr.lock"
# Ожидаем инициализации мониторов
#sleep 1
# Перезагружаем рабочие столы
if autorandr | grep "^docked (detected)"; then
bspc monitor HDMI-0 -d 1 2 3 4 5 6 7
bspc monitor eDP-1-1 -d 8
bspc wm -O HDMI-0 eDP-1-1
elif autorandr | grep "^undocked (detected)"; then
xrandr --output eDP-1-1 --mode 1920x1080 --rate 60 --primary --output HDMI-0 --off
bspc monitor eDP-1-1 -d 1 2 3 4 5 6 7 8
if [[ -f "$LOCK" ]]; then
echo "exist"
rm "$LOCK"
exit 0
fi
touch "$LOCK"
echo "not exist"
bspc wm -r
#autorandr --load undocked
bspc monitor -d 1 2 3 4 5 6 7 8
bspc desktop -f 2
fi
# Перезапускаем полибар
#~/.config/polybar/launch.sh
# Обновляем об1ои
#~/.config/bspwm/scripts/launch.sh
**$HOME/.config/bspwm/bspwmrc**
#!/bin/sh
# Логирование
exec > ~/.bspwm.log 2>&1
# Запуск базовых сервисов
pgrep -x sxhkd > /dev/null || sxhkd &
xrdb merge ~/.Xresources
xsetroot -cursor_name left_ptr
if xrandr | grep 'HDMI-0 connected' >/dev/null; then
echo "docked"
autorandr --load docked
else
echo "undocked"
autorandr --load undocked
fi
# Настройки bspwm
bspc config focus_follows_pointer true
#bspc config window_animation_duration 0
bspc config border_width 0
bspc config borderless_monocle true
bspc config gapless_monocle false
bspc config window_gap 10
bspc config pointer_modifier mod4
bspc config pointer_action1 move
bspc config pointer_action2 resize_side
bspc config pointer_action3 resize_corner
# Правила для окон
bspc rule -a Eww sticky=on layer=above manage=off
bspc rule -a PlayerWindow state=floating sticky=on layer=above manage=off
bspc rule -a feh state=floating
# Автозапуск приложений
~/.config/bspwm/scripts/launch.sh &
~/.config/polybar/launch.sh
dunst -config $HOME/.config/bspwm/dunstrc &
pkill battery-alert; ~/bin/battery-alert &
#pgrep -x redshift > /dev/null || redshift
picom --config $HOME/.config/bspwm/picom_configurations/1.conf &
flameshot &
# Запуск autorandr при старте
#autorandr --change
Everything works with this configuration and there are no errors, but I don't like this approach, but I couldn't find a better solution. Also here are my specifications
==================================== OS: Arch Linux x86_64
⣿⣿⣿⣿⣿⣿⣿⠿⢛⢛⡛⡻⢿⣿⣿⣿⣿⠟⠛⢛⠻⢿⣿⣿⣿⣿⣿⣿⣿⣿ Kernel: 6.14.7-arch2-1
⣿⣿⣿⣿⢟⢱⡔⡝⣜⣜⢜⢜⡲⡬⡉⢕⢆⢏⢎⢇⢇⣧⡉⠿⣿⣿⣿⣿⣿⣿ Uptime: 11 mins
⣿⣿⡟⡱⣸⠸⢝⢅⢆⢖⣜⣲⣵⣴⣱⣈⡣⣋⢣⠭⣢⣒⣬⣕⣄⣝⡻⢿⣿⣿ Packages: 1975 (pacman), 18 (f
⣿⠟⡜⣎⢎⢇⢇⣵⣷⣿⣿⡿⠛⠉⠉⠛⢿⣦⢵⣷⣿⣿⣿⠟⠛⠋⠓⢲⡝⣿ Shell: fish 4.0.2
⢏⢰⢱⣞⢜⢵⣿⣿⣿⣿⣿⠁⠐⠄⠄⠄⠄⢹⣻⣿⣿⣿⠡⠄⠄⠄⠄⠄⠹⣺ Resolution: 1920x1080
⢕⢜⢕⢕⢵⠹⢿⣿⣿⣿⣿⡀⠸⠗⣀⠄⠄⣼⣻⣿⣿⣿⡀⢾⠆⣀⠄⠄⣰⢳ WM: bspwm
⡕⣝⢜⡕⣕⢝⣜⢙⢿⣿⣿⣷⣦⣤⣥⣤⣾⢟⠸⢿⣿⣿⣿⣦⣄⣉⣤⡴⢫⣾ Theme: Dracula-pink-accent [GT
⡪⡪⣪⢪⢎⢮⢪⡪⡲⢬⢩⢩⢩⠩⢍⡪⢔⢆⢏⡒⠮⠭⡙⡙⠭⢝⣨⣶⣿⣿ Icons: Papirus [GTK2], dracula
⡪⡪⡎⡮⡪⡎⡮⡪⣪⢣⢳⢱⢪⢝⢜⢜⢕⢝⢜⢎⢧⢸⢱⡹⡍⡆⢿⣿⣿⣿ Terminal: alacritty
⡪⡺⡸⡪⡺⣸⠪⠚⡘⠊⠓⠕⢧⢳⢹⡸⣱⢹⡸⡱⡱⡕⡵⡱⡕⣝⠜⢿⣿⣿ CPU: Intel i5-9300H (8) @ 4.10
⡪⡺⡸⡪⡺⢐⢪⢑⢈⢁⢋⢊⠆⠲⠰⠬⡨⡡⣁⣉⠨⡈⡌⢥⢱⠐⢕⣼⣿⣿ GPU: NVIDIA GeForce GTX 1650 M
⡪⣪⢣⢫⠪⢢⢅⢥⢡⢅⢅⣑⡨⡑⠅⠕⠔⠔⠄⠤⢨⠠⡰⠠⡂⣎⣼⣿⣿⣿ GPU: Intel CoffeeLake-H GT2 [U
⠪⣪⡪⡣⡫⡢⡣⡣⡣⡣⡣⣣⢪⡪⡣⡣⡲⣑⡒⡎⡖⢒⣢⣥⣶⣿⣿⣿⣿⣿ Memory: 2360MiB / 15857MiB
⢁⢂⠲⠬⠩⣁⣙⢊⡓⠝⠎⠮⠮⠚⢎⡣⡳⠕⡉⣬⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿ CPU Usage: 10%
⢐⠐⢌⠐⠅⡂⠄⠄⢌⢉⠩⠡⡉⠍⠄⢄⠢⡁⡢⠠⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿ Disk (/): 68G / 108G (67%)
abrikos 232
(1 rep)
Jun 2, 2025, 12:02 AM
• Last activity: Jun 2, 2025, 06:44 AM
1
votes
1
answers
2645
views
xfreerdp multiple screens don't work
I have dual monitor setup. I can't get `xfreerdp` to launch full screen on both monitors. $ xfreerdp /monitor-list * [0] 1920x1080 +0+0 [1] 1920x1080 +1920+0 ```xfreerdp /multimon``` - just launches inside window ```xfreerdp /monitors:0,1 /multimon``` - just launches inside window ```xfreerdp /monit...
I have dual monitor setup. I can't get
xfreerdp
to launch full screen on both monitors.
$ xfreerdp /monitor-list
* 1920x1080 +0+0
1920x1080 +1920+0
/multimon
- just launches inside window
/monitors:0,1 /multimon
- just launches inside window
/monitors:1,2 /multimon
- launches full screen on monitor 0
/monitors:0 /multimon
- launches full screen on monitor 0
/monitors:1 /multimon
- launches full screen on monitor 0
FreeRDP version 2.1.0
I am using Arch Linux
I have
as windows manager,
as a compositor.
$ xrandr
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
1920x1080 60.00*+ 59.94 50.00
1680x1050 59.95
1440x900 59.89
1280x1024 75.02 60.02
1280x960 60.00
1280x720 60.00 59.94 50.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94 59.93
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 521mm x 293mm
1920x1080 60.00*+ 59.94 50.00
1680x1050 59.95
1440x900 59.89
1280x1024 75.02 60.02
1280x960 60.00
1280x720 60.00 59.94 50.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94 59.93
USB-C-0 disconnected (normal left inverted right x axis y axis)
Danil
(31 rep)
May 18, 2020, 12:21 AM
• Last activity: May 30, 2025, 11:04 PM
0
votes
0
answers
77
views
How to find polybar background apps
[![enter image description here][1]][1] I have some icons on my polybar, with is background apps. I can't find which module is responsible for them. How can I find which module correspond with these apps? I use the standard config installed through the installer. The screen resolution is 1920x1080....

abrikos 232
(1 rep)
Jan 5, 2025, 02:09 PM
• Last activity: Jan 5, 2025, 04:10 PM
0
votes
0
answers
47
views
Help to set up bspwm on Ubuntu in VMware
I've installed bspwm and sxhkd on Ubuntu Server LTS 24.04 in vmware. I use lightDM as display manager, qterminal as terminal emulator. When I open a terminal in bspwm gui, it looks like there are some kind of buffer: a letter I typed would not appear until I type again. (for example, when I type 'He...
I've installed bspwm and sxhkd on Ubuntu Server LTS 24.04 in vmware. I use lightDM as display manager, qterminal as terminal emulator. When I open a terminal in bspwm gui, it looks like there are some kind of buffer: a letter I typed would not appear until I type again. (for example, when I type 'Hello', the 'e' wouldn't appear until I type 'l'), backspace and enter have the same problem.
Other TTYs are alright. Any ideas why that happens? Thanks in advance.
Enthalpia
(1 rep)
Oct 25, 2024, 04:57 PM
• Last activity: Oct 25, 2024, 05:04 PM
0
votes
0
answers
232
views
How to configure bspwm in WSL2 Ubuntu?
I'm trying to install bspwm in WSL2 Ubuntu-24.04 LTS, and each time I run bspwm, it says "Another window manager is already running", and I don't have any other window manager installed. What is the problem? xclock runs alright. Does that mean that WSL does not support bspwm? I am completely new to...
I'm trying to install bspwm in WSL2 Ubuntu-24.04 LTS, and each time I run bspwm, it says "Another window manager is already running", and I don't have any other window manager installed. What is the problem? xclock runs alright.
Does that mean that WSL does not support bspwm? I am completely new to linux and I canot find any guide about installing bspwm on WSL.
Enthalpia
(1 rep)
Oct 24, 2024, 03:52 PM
4
votes
2
answers
749
views
write error: broken pipe with lemonbar script
I'm trying to pipe a bar script into lemonbar in bspwm. In my bspwmrc I have: ~/.config/bspwm/lemonbar.sh | lemonbar -p lemonbar.sh contains: #!/bin/bash clock() { date +%H:%M:%S } while true; do echo "%{c}$(clock)" sleep 1; done Everything works as expected, except when I exit bspwm I get: line 12:...
I'm trying to pipe a bar script into lemonbar in bspwm.
In my bspwmrc I have:
~/.config/bspwm/lemonbar.sh | lemonbar -p
lemonbar.sh contains:
#!/bin/bash
clock() {
date +%H:%M:%S
}
while true; do
echo "%{c}$(clock)"
sleep 1;
done
Everything works as expected, except when I exit bspwm I get:
line 12: echo: write error: Broken pipe
Obviously the error has something to do with the echo on line 12 but I can't figure out exactly what
user217301
(41 rep)
Feb 21, 2017, 09:30 PM
• Last activity: Oct 5, 2024, 02:11 PM
0
votes
0
answers
60
views
X server does not keep running
since yesterday I run an issue with my GUI. I installed fresh arch Linux and I can not keep running bspwm-git, after login I get login console again. Here is my .xinitrc ``` #!/bin/sh userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/etc/X11/xinit/.Xresources sysmodmap=/etc/X11...
since yesterday I run an issue with my GUI. I installed fresh arch Linux and I can not keep running bspwm-git, after login I get login console again.
Here is my .xinitrc
Here is my .xserverrc
My .zprofile is now like this
Here is my .xinitrc
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec bspwm
Here is my .xserverrc
#!/bin/sh
exec /usr/bin/Xorg/ -nolisten tcp -nolisten local "$@" vt$XDG_VTNR
My .zprofile is now like this
if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" -le 2 ]; then
exec startx —- -keeptty
fi
And w/o option -keeptty x server shuts down right after login
Kernel parameters
title Arch Linux (linux)
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options cryptdevice=PARTUUID=4df4ad4e-79d0-46ec-8097-4644fa3a43f6:root root=/dev/mapper/root rw rootfstype=btrfs nvidia_drm.modeset=1 nvidia_drm.fbdev=1
Steex
(1 rep)
Dec 21, 2023, 07:33 PM
• Last activity: Dec 22, 2023, 08:43 PM
1
votes
0
answers
538
views
Are there any way to restore closed tabs in okular pdf viewer?
I am on an Arch Linux machine and okular is probably the best pdf viewer, except just one lacking feature which is restoring tabs when you reopen Okular. Now since there is no default option for doing it, and while I can always make a feature request, I was hoping for some easy out of the box soluti...
I am on an Arch Linux machine and okular is probably the best pdf viewer, except just one lacking feature which is restoring tabs when you reopen Okular. Now since there is no default option for doing it, and while I can always make a feature request, I was hoping for some easy out of the box solution, if there is any. I am using bspwm window manager.
If there is some window manager route then probably the same can be done for zathura too. I think zathura doesn't have a restore tab option either since it doesn't have a tab option. I am using zathura tabs through [tabc](https://www.reddit.com/r/bspwm/comments/pfajrd/bsptab_tabs_in_bspwm_with_tabbed/) .
souraj ghosh
(11 rep)
Dec 2, 2023, 02:19 PM
• Last activity: Dec 3, 2023, 03:15 AM
10
votes
3
answers
3442
views
How to zoom/magnify on linux without compiz (bspwm)
I'd like to have the functionality described in [this video](https://youtu.be/sACNU_819TU?t=2m40s). Basically, use super+scrollup/down or pinch in/out on my touchpad to zoom in a certain area of the screen like on a phone or tablet. Sadly I need compiz to get the described effect. How can I zoom in...
I'd like to have the functionality described in [this video](https://youtu.be/sACNU_819TU?t=2m40s) . Basically, use super+scrollup/down or pinch in/out on my touchpad to zoom in a certain area of the screen like on a phone or tablet.
Sadly I need compiz to get the described effect. How can I zoom in without using compiz?
I'm using Arch Linux with bspwm + compton.
What I've tried:
*
xzoom
, which can zoom but spawns a new window instead of zooming in on the spot. Not what I want.
* KDE's kmag
, pretty much the same as xzoom
but with a nice GUI.
* Magnifier , where you can mouse over an area to zoom that area of the screen, which is not really what I want. I want to actually zoom in the whole screen like in the video above.
There's are open issues in compton's repositories:
* https://github.com/chjj/compton/issues/188 (dead repo)
* https://github.com/yshui/compton/issues/43 (new fork)
zjeffer
(495 rep)
Jul 6, 2019, 09:43 AM
• Last activity: Nov 15, 2023, 11:10 AM
0
votes
1
answers
273
views
Line of spikes overlap text on Kitty terminal emulator
When I run kitty terminal emulator, a line of black spikes overlaps the text in each line. I'm running a VM with Debian 12, bspwm, picom with default configuration. I've got no idea what can be happening, but I'm pretty sure is something to do with kitty. Any idea where to start? [

Iván Araolaza
(31 rep)
Oct 12, 2023, 08:14 PM
• Last activity: Oct 12, 2023, 11:56 PM
1
votes
3
answers
15329
views
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 layouts super + e *action to be executed* ``` --...
**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 layouts
super + e
*action to be executed*
----------
**LOCALES**
First, I do not know whether I am required to add Serbian locales as I only (from time to time) want to activate the Serbian keyboard layouts. My thinking is that keymaps are enough. Just in case, I generated Serbian locales; so now when I run localectl list-local
, the output is:
en_US.UTF-8
sr_RS.UTF-8
sr_RS.UTF-8@latin
These respectively correspond to:
- English locale for the U.S. – UTF-8 encoding
- Serbian locale for Serbia – Cyrillic script – UTF-8 encoding
- Serbian locale for Serbia – Latin script – UTF-8 encoding
----------
**KEYMAPS**
The three layouts I want to use (be able to shuffle through) are:
- us
= US English
- sr-cy
= Serbian in Cyrillic script
- sr-latin
= Serbian in Latin script
I know that I can edit /etc/vconsole.conf
and set KEYMAP=sr_cy
instead of us
or use localectl set-keymap sr_cy
.
Here are my **concerns** with that:
1. It is not an elegant solution.
2. I cannot shuffle through different layouts. I have to run the command and specify the desired layout each time.
2. Would such change persists globally even after I log out or reboot the system? If the answer is yes, I will potentially be in trouble. I use LVM on LUKS encryption and for me to decrypt my disk I need us
layout. Hence, if I forget to switch from Cyrillic script before rebooting, it's bye bye forever.
----------
**QUESTION**
Is there any way for me to add multiple keymaps in /etc/vconsole.conf
and have the us
be the default one? If so, what do I need to do to switch between them. Is it a simple command or do I need a small script? If that is not an option, what is the best way to get to my end goal.
I have tried finding the answer to having multiple keymaps but I was not able to find anything applicable to my problem. I would appreciate a solution or even advice and suggestions especially if it advances my knowledge. Thank you in advance!
Vladimir
(219 rep)
May 20, 2022, 07:12 PM
• Last activity: May 17, 2023, 11:50 AM
0
votes
0
answers
204
views
ArchLinux BSPWM
I just installed archlinux using the archinstall script, and I selected bspwm as my desktop. It finished and my screen is blank with just the cursor showing. What would be the next step towards making it usable and maybe looking like exodiaos
I just installed archlinux using the archinstall script, and I selected bspwm as my desktop. It finished and my screen is blank with just the cursor showing. What would be the next step towards making it usable and maybe looking like exodiaos
Sanele
(1 rep)
Mar 18, 2023, 06:03 AM
1
votes
0
answers
54
views
Can't open url from other applications in firefox
When I try to open an external URL from an application while **Firefox is open** I get this message: [![Error Message][1]][1] After I close all Firefox instances and try again, Firefox **starts but freezes and continuously loading** with no results like this: [![Firefox freezes][2]][2] I am using **...
When I try to open an external URL from an application while **Firefox is open** I get this message:
After I close all Firefox instances and try again, Firefox **starts but freezes and continuously loading** with no results like this:
I am using **Bbarebone Debian with


bspwm
**. I really need this features as I am using it in some application to login (unityhub in this example).
Mohammed Sitni
(11 rep)
Nov 24, 2022, 04:19 PM
• Last activity: Nov 28, 2022, 04:26 PM
1
votes
0
answers
138
views
DPMS & PowerSave on laptop
I have an HP PowerBook 440 G4 with Debian Bullseye & BSWPM installed. My locker is `lightdm` with `slick-greeter` without a screensaver. My `xset q` says: ``` DPMS (Energy Star): Standby: 600 Suspend: 600 Off: 600 DPMS is Enabled Monitor is On ``` I installed `xfce4-power-manager` in order to put my...
I have an HP PowerBook 440 G4 with Debian Bullseye & BSWPM installed.
My locker is
lightdm
with slick-greeter
without a screensaver.
My xset q
says:
DPMS (Energy Star):
Standby: 600 Suspend: 600 Off: 600
DPMS is Enabled
Monitor is On
I installed xfce4-power-manager
in order to put my laptop in suspend mode after a certain period of time, but it only turned off my monitor. I get this by default without the power manager.
So, I want to suspend my laptop after a certain amount of inactivity, as I can get with a power manager in a desktop environment, i.e. after X minutes on battery
and after X minutes on AC
.
How can I achieve this?
Mafsi
(141 rep)
Oct 5, 2022, 10:57 AM
1
votes
0
answers
395
views
Trying to capture one monitor with maim
I have two monitors and I would like to only screenshot the main one, maim by default screenshots both monitors as one big monitor, and doing ```maim -x :0.0``` doesn't work. I'm trying to figure this out so I searched and found the commands ```ls /tmp/.X11-unix``` which returns ```X0``` and ```ls /...
I have two monitors and I would like to only screenshot the main one, maim by default screenshots both monitors as one big monitor, and doing
-x :0.0
doesn't work. I'm trying to figure this out so I searched and found the commands /tmp/.X11-unix
which returns
and /tmp/.X11-unix | tr 'X' ':'
which return :0
. It looks like it's detecting both monitors as one or am I wrong? I did | grep ' connected'
and it shows
HDMI-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 598mm x 336mm
DP-5 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
Please keep in mind I have no idea what I'm doing I'm very new to linux and I'm trying to learn it so I switched to it as my daily driver to learn. What can I do to be able to screenshot one monitor?
Yousef
(111 rep)
Sep 30, 2022, 05:15 PM
• Last activity: Sep 30, 2022, 05:31 PM
0
votes
1
answers
993
views
How to logout from tty without killing xorg
I'm currently using bspwm as my window manager, it launches automatically thanks to my `.zprofile` & `.xinitrc` How can i go back to the tty login without running `bspc quit` I know that i can change to another tty using ctrl + shift + F {1,10} But since i'm not using any display/login manager, i wo...
I'm currently using bspwm as my window manager, it launches automatically thanks to my
.zprofile
& .xinitrc
How can i go back to the tty login without running bspc quit
I know that i can change to another tty using ctrl+shift+F {1,10}
But since i'm not using any display/login manager, i would like to use tty as my "block screen" so whenever i enter my user password all my windows still open.
Carlos
(1 rep)
Jul 14, 2022, 11:05 PM
• Last activity: Jul 15, 2022, 11:55 AM
0
votes
1
answers
274
views
How to set keybindings systemwide?
I am using bspwm in Arch Linux, without any Desktop Environment. I have swapped the escape and Capslock key for VIM, but the thing is, the keys only work in bspwm, i.e, if I change the tty then, the keys work as it never changed. I used `setxkbmap -option caps:swapescape`
I am using bspwm in Arch Linux, without any Desktop Environment. I have swapped the escape and Capslock key for VIM, but the thing is, the keys only work in bspwm, i.e, if I change the tty then, the keys work as it never changed. I used
setxkbmap -option caps:swapescape
Afroz Alam
(21 rep)
Dec 3, 2021, 11:50 AM
• Last activity: Jul 11, 2022, 01:39 PM
0
votes
0
answers
700
views
Bspwm session displays only grey screen and keybindings dont work
Here are my bspwmrc and sxhkdrc files ```#! /bin/sh #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" "IV" "V" wm-restack = bspwm bspc config...
Here are my bspwmrc and sxhkdrc files
#! /bin/sh
#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" "IV" "V"
wm-restack = bspwm
bspc config border_width 0
bspc config window_gap 25
bspc config split_ratio 0.52
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config focus_follows_pointer true
bspc rule -a Gimp desktop='^8' state=floating follow=on
bspc rule -a Chromium desktop='^2'
bspc rule -a mplayer2 state=floating
bspc rule -a kupfer.py focus=on
bspc rule -a Screenkey manage=off
----------
#
# wm independent hotkeys
#
# terminal emulator
super + Return
alacritty
# program launcher
super + p
dmenu_run
# make sxhkd reload its configuration files:
super + Escape
pkill -USR1 -x sxhkd
#
# bspwm hotkeys
#
# quit/restart bspwm
super + alt + {q,r}
bspc {quit,wm -r}
# close and kill
super + {_,shift + }w
bspc node -{c,k}
# alternate between the tiled and monocle layout
super + m
bspc desktop -l next
# send the newest marked node to the newest preselected node
super + y
bspc node newest.marked.local -n newest.!automatic.local
# swap the current node and the biggest window
super + g
bspc node -s biggest.window
#
# state/flags
#
# set the window state
super + {t,shift + t,s,f}
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
# set the node flags
super + ctrl + {m,x,y,z}
bspc node -g {marked,locked,sticky,private}
#
# focus/swap
#
# focus the node in the given direction
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
# focus the node for the given path jump
super + {p,b,comma,period}
bspc node -f @{parent,brother,first,second}
# focus the next/previous window in the current desktop
super + {_,shift + }c
bspc node -f {next,prev}.local.!hidden.window
# focus the next/previous desktop in the current monitor
super + bracket{left,right}
bspc desktop -f {prev,next}.local
# focus the last node/desktop
super + {grave,Tab}
bspc {node,desktop} -f last
# focus the older or newer node in the focus history
super + {o,i}
bspc wm -h off; \
bspc node {older,newer} -f; \
bspc wm -h on
# focus or send to the given desktop
super + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} '^{1-9,10}'
#
# preselect
#
# preselect the direction
super + ctrl + {h,j,k,l}
bspc node -p {west,south,north,east}
# preselect the ratio
super + ctrl + {1-9}
bspc node -o 0.{1-9}
# cancel the preselection for the focused node
super + ctrl + space
bspc node -p cancel
# cancel the preselection for the focused desktop
super + ctrl + shift + space
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
#
# move/resize
#
# expand a window by moving one of its side outward
super + alt + {h,j,k,l}
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
# contract a window by moving one of its side inward
super + alt + shift + {h,j,k,l}
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
# move a floating window
super + {Left,Down,Up,Right}
bspc node -v {-20 0,0 20,0 -20,20 0}
When i log in with gnome my window manager works fine so i think the problem is with bspwm because after logging into a bspwm session the only thing i can see is a grey screen with no errors or no cursor response whatsoever. The keybindings i set in sxhkdrc also do not seem to work either.
PsyQuake
(1 rep)
May 30, 2022, 05:09 PM
0
votes
1
answers
671
views
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 "libinput" Option "XkbLayout" "us,ru" Option "XkbVariant"...
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 "libinput"
Option "XkbLayout" "us,ru"
Option "XkbVariant" "colemak,"
Option "XkbOptions" "grp:win_space_toggle"
EndSection
And it works, but when I press the Super key and the key I need (for example, d), sxhkd recognizes it as a QWERTY's g.
Also I tried setting it up on the startup of X11 in the ~/.xinitrc:
setxkbmap -layout 'us,ru' -variant 'colemak,' -option 'grp:win_space_toggle'
but it doesn't work too (the same problem).
I've been using sway (a wayland wm) with this exactly settings (they made their own implementation of xkb I think) and it worked as it should. However, with standard Xorg it does not.
kelvium
(1 rep)
May 23, 2022, 07:23 AM
• Last activity: May 23, 2022, 01:31 PM
Showing page 1 of 20 total questions