Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
0 answers
20 views
With the Openbox window manager, can I force a window to have window decorations?
I am running a closed-source Java application in the Openbox window manager. The application runs, but the application's main window is displayed without window decorations. Presumably, the application itself is requesting that its main window be displayed without window decorations. I would prefer...
I am running a closed-source Java application in the Openbox window manager. The application runs, but the application's main window is displayed without window decorations. Presumably, the application itself is requesting that its main window be displayed without window decorations. I would prefer that the application's main window have window decorations. My question is: Is it possible to forcefully add window decorations to an already created and displayed window? If not, why not? Possibly relevant X properties:
$  obxprop  |  grep  DEC
_OL_DECOR_DEL(ATOM) = _OL_DECOR_HEADER, _OL_DECOR_RESIZE, _OL_DECOR_CLOSE
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_MOVE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW, _OB_WM_ACTION_UNDECORATE
I have tried the following: 1. Selecting Un/Decorate in the window’s Openbox client menu. 2. Setting the following in Openbox’s rc.xml file.
yes
3. Removing the _OL_DECOR_DEL property with xprop -remove _OL_DECOR_DEL. None of the above have had any effect. The window refuses to display decorations.
mpb (1831 rep)
Jul 8, 2025, 08:06 PM
6 votes
2 answers
2463 views
How do I access the Lubuntu menu in Openbox?
Is there a way to include the Lubuntu applications menu in an Openbox menu (`~/.config/openbox/menu.xml`) so I can use it within a pure Openbox session?
Is there a way to include the Lubuntu applications menu in an Openbox menu (~/.config/openbox/menu.xml) so I can use it within a pure Openbox session?
August Karlstrom (1986 rep)
May 14, 2014, 04:07 PM • Last activity: Jun 18, 2025, 10:03 PM
0 votes
0 answers
59 views
Shutdown computer on idle
I've Openbox/Porteus on my laptop and I want to shutdown computer when idle 10 minutes. I edited `/etc/elogind/logind.conf` deleting **#** set *idleaction* to *poweroff* and, *idleactionsec* to 1min (to test). I rebooted computer but shutdown on idle didn't work. How can I shutdown computer when idl...
I've Openbox/Porteus on my laptop and I want to shutdown computer when idle 10 minutes. I edited /etc/elogind/logind.conf deleting **#** set *idleaction* to *poweroff* and, *idleactionsec* to 1min (to test). I rebooted computer but shutdown on idle didn't work. How can I shutdown computer when idle 10 minutes?
Onur Can (1 rep)
Aug 11, 2024, 12:12 PM • Last activity: May 30, 2025, 08:39 AM
0 votes
0 answers
29 views
after removing BSPWM all applications open on half of screen
I usually use a minimal openbox based DE (Debian 12). I tried BSPWM a while ago and then decided to go back to openbox. However, after completely removing BSPWM and its config files, I found that applications cannot be maximized to full screen. I can manually expand them with the mouse, but when I c...
I usually use a minimal openbox based DE (Debian 12). I tried BSPWM a while ago and then decided to go back to openbox. However, after completely removing BSPWM and its config files, I found that applications cannot be maximized to full screen. I can manually expand them with the mouse, but when I click the "maximize" button, all applications are expanded to exactly half the screen. I deleted the entire ~/.cache folder, but it does not help. Please help!my bug
Anton Vakulenko (23 rep)
Nov 27, 2024, 03:18 PM
2 votes
2 answers
108 views
fbpanel: increase text size
I am using `fbpanel` on debian. In the config file `~/.config/fbpanel/default`, I have this section which defines the "start menu": Plugin { type = menu config { IconSize = 26 image = /usr/share/pixmaps/debian-logo.png systemmenu { } separator { } item { name = logout icon = application-exit action...
I am using fbpanel on debian. In the config file ~/.config/fbpanel/default, I have this section which defines the "start menu": Plugin { type = menu config { IconSize = 26 image = /usr/share/pixmaps/debian-logo.png systemmenu { } separator { } item { name = logout icon = application-exit action = killall -u testuser --quiet } } } I am able to change the icon size, but how do I increase the text size? The text size is too small. enter image description here I am also using openbox, in case that is relevant
Martin Vegter (586 rep)
Oct 26, 2024, 01:02 PM • Last activity: Nov 4, 2024, 01:47 PM
0 votes
0 answers
49 views
Is tint2's "Hide tasks from different monitors" option always on?
I just recently started using tint2/Openbox through Archcraft, and I'm liking it a lot so far. But there's one little thing I want to configure, and it seems like tint2 is capable of doing this, but perhaps the implementation is bugged, or perhaps I am misunderstanding how this works. I come from Wi...
I just recently started using tint2/Openbox through Archcraft, and I'm liking it a lot so far. But there's one little thing I want to configure, and it seems like tint2 is capable of doing this, but perhaps the implementation is bugged, or perhaps I am misunderstanding how this works. I come from Windows mainly, and I wanted to mirror some of the things I liked about the UX on Windows, and one thing in particular is how multi-monitor behavior is handled on the taskbars. In Windows, with multiple monitors up, you can see every desktop task from across both of them. Now, it appears that there are multiple settings embedded in tint2 to handle this. I've checked both the tint2rc file itself and the configuration tool for tint2 and they both seem to imply this. The line taskbar_hide_different_monitor = 0 in the tint2rc file would appear to be the setting for this. It is set to 0 by default already, yet despite this, it does not appear to work as such in this screenshot. The tasks on my right monitor only appear on the right monitor's taskbar, not on the left. Screenshot of my taskbars across my two monitors Am I misunderstanding the purpose of this particular line on the configuration, is this simply something unsupported by tint2, or is this type of setting possible through a different setting? I'd like to get this solved, since it's really my only nitpick with tint2. Thanks!
user642373 (1 rep)
Sep 1, 2024, 06:13 PM • Last activity: Sep 1, 2024, 06:20 PM
0 votes
1 answers
691 views
How to change or permanently set background image(wallpaper) in openbox WM?
Hey I just installed Arch Linux in Virtualbox btw with **openbox**, **gdm** and **rofi**. I wanted to **set a wallpaper** for the ***background***. So, I added this line in the end of my **`/home/user/.bashrc`** file - ```sh feh --bg-fill ~/wallpapers/squid-girl.png ``` The problem is that it doesn'...
Hey I just installed Arch Linux in Virtualbox btw with **openbox**, **gdm** and **rofi**. I wanted to **set a wallpaper** for the ***background***. So, I added this line in the end of my **/home/user/.bashrc** file -
feh --bg-fill ~/wallpapers/squid-girl.png
The problem is that it doesn't set the wallpaper just after I successfully login in an openbox-session but after I open an terminal window in an openbox-session. So, that is the matter. Now how am I supposed to/should set it?
Debajyati Dey (17 rep)
Jul 21, 2024, 10:04 AM • Last activity: Jul 21, 2024, 10:16 AM
-4 votes
2 answers
547 views
How can I find out what the most lightweight terminal emulator is?
I am trying to reduce the disk space by my system, by removing packages I don't or rarely use, as well as the RAM needed for my programs and background tasks. I need the terminal mostly for displaying various things (calendar, actual time, output of some shell/bash commands, etc.). I'm using `gnome-...
I am trying to reduce the disk space by my system, by removing packages I don't or rarely use, as well as the RAM needed for my programs and background tasks. I need the terminal mostly for displaying various things (calendar, actual time, output of some shell/bash commands, etc.). I'm using gnome-terminal right now, but this ought to be done smarter (here: more resource efficient). Mainly, I don't really need a colourful output, so I thought about xterm doing this, but I couldn't manage transferring the command(s) I'm using with gnome-terminal to another terminal emulator. The first question would be here: How can I find out which is the most lightweight terminal emulator for use with a window manager (not a full desktop environment)? Here's a code snippet from my rc.xml of my window manager openbox: true sh -c 'echo "$(date)\t\tbeginning of session lock" >> ~/.lock.log; i3lock -uc 000000' true Kalender no gnome-terminal --hide-menubar --window-with-profile=calendar --title='calendar month' --geometry=66x9 -- bash -c 'ncal -C3; read -sn1' true lxterminal --geometry=40x32 -t "To Do's" -e "vi ~/todo" I rewrote the code for very simple commands like the first shortcut, but I didn't manage to "convert" the second shortcut into the form of the third one.
muggi (759 rep)
Jul 2, 2024, 07:19 PM • Last activity: Jul 9, 2024, 06:42 AM
1 votes
2 answers
6182 views
I want to increase the size of the close button on the openbox
I am using in the OPENBOX X- window. Was subjected to increasing the size of the title bar, it is the relatively small size of the close button. Can I file through rc.xml adjust the size of the picture? I want to increase the size of the button and the Maximize button Picture of the I close . [![ent...
I am using in the OPENBOX X- window. Was subjected to increasing the size of the title bar, it is the relatively small size of the close button. Can I file through rc.xml adjust the size of the picture? I want to increase the size of the button and the Maximize button Picture of the I close . enter image description here
DonBit (569 rep)
Apr 7, 2016, 06:35 AM • Last activity: Apr 11, 2024, 02:40 PM
0 votes
0 answers
105 views
Autostart openbox-autostart
I use the official image of the ubuntu 20.04 for NanoPi M4. It uses LXQT desktop environment. I'm trying to add a programm to the autolaunch. I put this into the ~/.config/vnc.desktop: [Desktop Entry] Version=1.0 Type=Application Name=VNC Path=/home/pi/Files Exec=/home/pi/Files/vnc.sh And this into...
I use the official image of the ubuntu 20.04 for NanoPi M4. It uses LXQT desktop environment. I'm trying to add a programm to the autolaunch. I put this into the ~/.config/vnc.desktop: [Desktop Entry] Version=1.0 Type=Application Name=VNC Path=/home/pi/Files Exec=/home/pi/Files/vnc.sh And this into the /home/pi/Files/vnc.sh: x0vncserver -passwordfile /home/pi/.vnc/passwd -display :0 I used chmod +x /home/pi/Files/vnc.sh and sudo chmod +x /home/pi/Files/vnc.sh But I don't get vnc autostarting after reboot. /usr/lib/aarch64-linux-gnu/openbox-xdg-autostart --list has this in the output: [*] VNC File: /home/pi/.config/autostart/vnc.desktop Executes: /home/pi/Files/vnc.sh And I see that vnc is in autostart in the system GUI. But it is not starting. Also I found that it starts when I launch /usr/lib/aarch64-linux-gnu/openbox-autostart manually in a terminal. So, it looks for me that openbox-autostart doesnt't autostart itself. How can I fix this?
Dmitry (143 rep)
Apr 8, 2024, 07:29 AM
4 votes
1 answers
344 views
Problem with mouse area not reaching lower section
Under Debian 9.3 and 9.8 with OPENBOX and LIGHTDM. I have a problem with the mouse pointer on screen. Depending on the orientation, there is a section on screen that the mouse pointer doesn’t go. BUT, click, move and drag events still occur in this section, just “blindly”. The tested resolution, cor...
Under Debian 9.3 and 9.8 with OPENBOX and LIGHTDM. I have a problem with the mouse pointer on screen. Depending on the orientation, there is a section on screen that the mouse pointer doesn’t go. BUT, click, move and drag events still occur in this section, just “blindly”. The tested resolution, correctly reported by xrandr, is 1920x1080 or 1080x1920. In “normal” or “left” orientation (--rotate normal, --rotate left), there is approx. 4px on the left of the screen that the pointer doesn’t go into. In “inverted” or “right” orientation, there is a rather large section on the left (approx. 20% of the screen) that the pointer doesn’t go into. BUT, as I said, I can still “move” into this section and click on things. The mouse pointer just stops at the edge of the “invisible line” on screen. If I move in the blind section and “come back”, the pointer “jumps” from where it was stuck to the place where I “surface back” as if the position of the pointer on screen was suddenly updated. I tried playing with --fb and --panning switches to xrandr but it doesn’t correct anything. It extends the desktop and I can pan right or down but the mouse pointer is still sticking to the invisible line. See images : enter image description here Do anyone have an idea ? Thank you.
SpX (55 rep)
Feb 26, 2019, 08:22 PM • Last activity: Mar 28, 2024, 10:15 AM
2 votes
1 answers
1116 views
Terminal urxvt shows squares instead of ASCII bold characters
I have just installed urxvt terminal, but the characters with bold formatting are replaced by squares: ![][1] When I copy the squares and paste them elsewhere, the text is displayed fine. What configuration do I have to change to show bold characters? Thanks. (I'm using Gentoo and Openbox.) [1]: htt...
I have just installed urxvt terminal, but the characters with bold formatting are replaced by squares: Image When I copy the squares and paste them elsewhere, the text is displayed fine. What configuration do I have to change to show bold characters? Thanks. (I'm using Gentoo and Openbox.)
Clara Sánchez (63 rep)
Sep 28, 2017, 03:15 PM • Last activity: Feb 5, 2024, 10:37 PM
1 votes
1 answers
85 views
log out from slim, or slim restart results in blank screen for several minutes
I am using slim login manager. when I log out from my session, or restart slim from the commandline: service slim restart I get blank console for couple of minutes, before the slim login screen appears again. When I attach to the slim process with strace, I see many "Resource temporarily unavailable...
I am using slim login manager. when I log out from my session, or restart slim from the commandline: service slim restart I get blank console for couple of minutes, before the slim login screen appears again. When I attach to the slim process with strace, I see many "Resource temporarily unavailable" and "Connection timed out" lines: socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0) = 4 connect(4, {sa_family=AF_UNIX, sun_path=@"/tmp/.X11-unix/X0"}, 20) = -1 ECONNREFUSED (Connection refused) close(4) = 0 socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0) = 4 getsockopt(4, SOL_SOCKET, SO_SNDBUF, , ) = 0 connect(4, {sa_family=AF_UNIX, sun_path="/tmp/.X11-unix/X0"}, 110) = -1 ENOENT (No such file or directory) close(4) connect(4, {sa_family=AF_INET, sin_port=htons(6000), sin_addr=inet_addr("127.0.0.1")}, 16) = ? ERESTARTSYS (To be restarted if SA_RESTART is set) --- SIGUSR1 {si_signo=SIGUSR1, si_code=SI_USER, si_pid=5440, si_uid=0} --- rt_sigaction(SIGUSR1, {sa_handler=0x55961af808a0, sa_mask=[USR1], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f545cc5afd0}, {sa_handler=0x55961af808a0, sa_mask=[USR1], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f545cc5afd0}, 8) = 0 rt_sigreturn({mask=[]}) = 42 connect(4, {sa_family=AF_INET, sin_port=htons(6000), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 ETIMEDOUT (Connection timed out) close(4) full strace here after few minutes slim login screen reappears again, and everything works fine. When I restart computer, slim works fine the first time, probably because I have autologin in my /etc/slim.conf: auto_login yes What is going on? And how can I fix it?
Martin Vegter (586 rep)
Sep 23, 2023, 02:14 PM • Last activity: Sep 29, 2023, 06:15 AM
0 votes
1 answers
118 views
openbox: change text and "box" size when switching virtual desktops
when I switch between virtual desktops, openbox shows briefly a "box" with icons of virtual desktops and desktop name (number). This is ridiculously small on my large monitor, I can barely read the desktop number: [![enter image description here][1]][1] [1]: https://i.sstatic.net/lDqni.jpg where in...
when I switch between virtual desktops, openbox shows briefly a "box" with icons of virtual desktops and desktop name (number). This is ridiculously small on my large monitor, I can barely read the desktop number: enter image description here where in the openbox configuration file (rc.xml) can I change the size of this box and the text size of the virtual desktop number? I would be happy if it only showed the desktop number in large font size
Martin Vegter (586 rep)
Aug 15, 2023, 06:15 PM • Last activity: Aug 19, 2023, 03:03 AM
2 votes
1 answers
474 views
change gtk-2 font only for specific application
I have changed general font size for gtk-2 applications by adding this to my `gtkrc` file: gtk-font-name = "Sans 16" this also affected the text size in the application "dock", or however it is called, in the panel: [![enter image description here][1]][1] Now even the text "New Tab - Chromium" does...
I have changed general font size for gtk-2 applications by adding this to my gtkrc file: gtk-font-name = "Sans 16" this also affected the text size in the application "dock", or however it is called, in the panel: enter image description here Now even the text "New Tab - Chromium" does not fit there anymore. Can I selectively only change the text size in the application dosck, while leaving the general gtk-2 test size ? I am using openbox and fbpanel.
Martin Vegter (586 rep)
Aug 4, 2023, 04:28 PM • Last activity: Aug 13, 2023, 11:33 AM
1 votes
0 answers
151 views
Convert GUI text selections, in place, from "UPPER CASE", "lower case", or "Sentence Case" to desired case with keybindings
I use Arch linux and Openbox window manager and bash. Everything is up to date with the latest available versions. Often I need to change the case of selected text that is the wrong case in applications such as - libreoffice writer - google docs - gedit - geany eg I select the text "THE BRIGHT DAY"...
I use Arch linux and Openbox window manager and bash. Everything is up to date with the latest available versions. Often I need to change the case of selected text that is the wrong case in applications such as - libreoffice writer - google docs - gedit - geany eg I select the text "THE BRIGHT DAY" and wish to change it with some simple keystrokes/ keybinding to "the bright day". Below I have implemented very simple command line tools called by Openbox key bindings to change the case as desired. These are stored in Openbox's keybindings/ set-up file rc.xml file as follows ###################################### ########## c-fn - key chain ########## ###################################### # change selected text to lowercase bash -c ' clip_zz="$(echo $(xsel) | awk '\''{print tolower($0)}'\'')"; xdotool type --clearmodifiers -- "$clip_zz" ' # CHANGE SELECTED TEXT TO UPPERCASE bash -c ' clip_zz="$(echo $(xsel) | awk '\''{print toupper($0)}'\'')"; xdotool type --clearmodifiers -- "$clip_zz" ' # Change Selected Text To Sentence Case Like This With Each Words First Letter Being Capatalised bash -c ' clip_zz="$(echo $(xsel) | awk '\''{print tolower($0)}'\'' | sed '\''s@\([[:lower:]]\)\([[:alnum:]]*\)@\u\1\2@g'\'')"; xdotool type --clearmodifiers -- "$clip_zz" ' Although these work when going from upper to lower case it will replace "IT'S" with "itNs" because of a limitation in xdotool. I'm wondering if this can be done more neatly with "xclip" or "xsel" or some another way. It's very handy to have universal keybindings for changing the case of any selected text.
Kes (909 rep)
Jul 18, 2023, 09:22 AM • Last activity: Jul 18, 2023, 01:07 PM
4 votes
2 answers
2264 views
Is Openbox a non-reparenting window manager?
Installing jre7-openjdk prints this message: > when you use a non-reparenting window manager set > _JAVA_AWT_WM_NONREPARENTING=1 in /etc/profile.d/jre.sh My WM is openbox, have I to edit the file?
Installing jre7-openjdk prints this message: > when you use a non-reparenting window manager set > _JAVA_AWT_WM_NONREPARENTING=1 in /etc/profile.d/jre.sh My WM is openbox, have I to edit the file?
whizzo (121 rep)
Apr 13, 2013, 12:53 PM • Last activity: Jun 27, 2023, 02:44 PM
1 votes
1 answers
582 views
openbox: disable "grab" window that moves together with mouse cursor
Normally in Openbox I can move windows around by holding Alt and grabbing the window with left mouse button. But sometimes I accidentally "grab" a window and then it is stuck to my mouse without holding any keyboard key. The window moves with my mouse, and my mouse cursor changes to a "hand" cursors...
Normally in Openbox I can move windows around by holding Alt and grabbing the window with left mouse button. But sometimes I accidentally "grab" a window and then it is stuck to my mouse without holding any keyboard key. The window moves with my mouse, and my mouse cursor changes to a "hand" cursors. I can never find out how I did it, but it happens often enough, usually when I am doing something fast on the keyboard in the lower left corner around Alt and Ctrl and moving mouse simultaneously. Anyway, how can I disable this?
Martin Vegter (586 rep)
Apr 21, 2023, 04:29 AM • Last activity: Apr 25, 2023, 11:51 AM
3 votes
2 answers
1086 views
disable formatting when using cut and paste
I am using `openbox` as my window manager. When I copy and paste using Ctrl+c and Ctrl+v from one application into another, it transfers the text formatting together with the text. I have to use plaintext editor in between, so that the formatting is lost. This is pure evil. I assume this was invente...
I am using openbox as my window manager. When I copy and paste using Ctrl+c and Ctrl+v from one application into another, it transfers the text formatting together with the text. I have to use plaintext editor in between, so that the formatting is lost. This is pure evil. I assume this was invented by the same people who gave us CapsLock and NumLock, just to drive people crazy and waste millions of man-hours yearly. Anyway, how can I disable this in openbox? I am aware of this [post](https://unix.stackexchange.com/questions/219688/remove-formatting-from-copy-paste-buffer) , but I am not sure how to integrate the suggested solution in my situation. I don't use any external clipboard program, I don't have xclip or xsel installed. I assume the copy/paste functionality is native to openbox? UPDATE: ===== as I explained in the comments, this happens for example when copying from chromium and pasting into firefox. Using Ctrl+Shift+v does seem to work, and pastes text without formatting. However, it is another extra step i need to remember. I have Ctrl+v ingrained in my muscle memory. is it possible to re-define the key shortcut, so that Ctrl+v acts as if i used Ctrl+Shift+v ?
Martin Vegter (586 rep)
Apr 9, 2023, 11:43 AM • Last activity: Apr 18, 2023, 07:35 AM
0 votes
0 answers
67 views
How openbox knows .bash_aliases used in its autostart file
I'm using two commands in a file executed by my `.config/openbox/autostart.sh` which are also aliased in my `.bash_alises` and one of them changes from time to time. The thing is that I also use these commands aliases in my `.bash_aliases` and changing all files with every change in every same way i...
I'm using two commands in a file executed by my .config/openbox/autostart.sh which are also aliased in my .bash_alises and one of them changes from time to time. The thing is that I also use these commands aliases in my .bash_aliases and changing all files with every change in every same way is quite annoying. I'd like to have my aliases been known by the Openbox autostart file. ## My .config/openbox/autostart.sh (mainly)
. $GLOBALAUTOSTART
lxterminal -e "$(cat ~/.config/openbox/terminal.sh)" # command for a clean autostart file
## My .config/openbox/terminal.sh
a="b"

while [[ -n "$a" ]]; do
        read a
        if [[ "$a" =~ "o" ]] || [[ "$a" =~ "O" ]]; then
                sudo mount -t davfs example.com/webdav ~/exampleCom
                rsync -giloprtu --specials exampleCom/dir0/ dirs/directory_0
                rsync -giloprtu --specials exampleCom/dir1/ dirs/directory_1
                sudo umount exampleCom
        fi
[…]
done
## My .bash_aliases
alias RS='rsync -giloprtu --specials'
alias RSYNC='sudo mount -t davfs example.com/webdav ~/exampleCom
RS exampleCom/dir0/ dirs/directory_0
RS exampleCom/dir1/ dirs/directory_1
sudo umount exampleCom'
## Desired .config/openbox/terminal.sh
a="b"

while [[ -n "$a" ]]; do
        read a
        if [[ "$a" =~ "o" ]] || [[ "$a" =~ "O" ]]; then
                RSYNC # read from my ~/.bash_aliases
        fi
[…]
done
muggi (759 rep)
Mar 25, 2023, 03:47 PM • Last activity: Mar 25, 2023, 04:03 PM
Showing page 1 of 20 total questions