Sample Header Ad - 728x90

Unix & Linux Stack Exchange

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

Latest Questions

9 votes
2 answers
11965 views
How to start the Xfce Terminal always maximized in Xfce?
I'd like to start the Xfce Terminal in Xfce always maximized. (Usually, I do that through the launcher in the panel.) I've already done that [for Emacs by means of X resources](https://unix.stackexchange.com/a/426914/4319); however, `xfce4-terminal` doesn't read X resources. How to make it be always...
I'd like to start the Xfce Terminal in Xfce always maximized. (Usually, I do that through the launcher in the panel.) I've already done that [for Emacs by means of X resources](https://unix.stackexchange.com/a/426914/4319) ; however, xfce4-terminal doesn't read X resources. How to make it be always started maximized?
imz -- Ivan Zakharyaschev (15862 rep)
Feb 27, 2018, 01:13 PM • Last activity: May 20, 2024, 04:23 AM
0 votes
2 answers
150 views
Window Manager: Add the maximize option to any window (even if the UI disabled the option)
Some graphical programs make use of a window which the user can scale unlimitedly but still disable the maximize option (for whichever dumb reason). [EDIT]: The window might be a subwindow of another window (don't know the technical term), and it is the only window (of the application instance) that...
Some graphical programs make use of a window which the user can scale unlimitedly but still disable the maximize option (for whichever dumb reason). I use Linux Mint with Cinnamon, using X11 I believe. Although this would help temporarily, I am ultimately not looking for a window manager command line which resizes the window but I want to change the window flags themselves, without having access to the source code and without being specific to one particular program. Rant: It appears to me that some programmers or UI designers want to force their view on a program, inconsiderate of the needs and preferences of the end user, ignorant of what actually is the optimal work flow in the end. enter image description here
Semnodime (397 rep)
Mar 26, 2023, 11:37 PM • Last activity: Mar 27, 2023, 12:35 AM
1 votes
0 answers
132 views
Maximised application windows incorrectly positioned after unlocking when using Dash to panel
I'm using Fedora 37 with gnome 43.2. I prefer a windows style workflow, with a bottom task bar, start menu etc. To achieve this, I've installed the gnome extension "Dash to panel", which works great in general, but I am running into one issue. When I maximise a window, it takes up the whole screen,...
I'm using Fedora 37 with gnome 43.2. I prefer a windows style workflow, with a bottom task bar, start menu etc. To achieve this, I've installed the gnome extension "Dash to panel", which works great in general, but I am running into one issue. When I maximise a window, it takes up the whole screen, minus the bottom task bar, as expected. However, if I lock and then unlock the computer, the window remains maximised but is positioned incorrectly; there is a gap at the top (where the panel originally was), and the bottom section of the window is behind the task bar. It's not a huge issue, I just have to un-maximise (?) and then maximise the window again, but it is a little annoying. Has anyone run into this issue before and have a possible fix?
Geoff (113 rep)
Jan 13, 2023, 03:11 AM
1 votes
2 answers
141 views
print all max values in text file using awk
I'm trying to print out all the max values in one column So the input looks like this ``` John. Marketing. 5000. Marcus. Manager. 9500. Jason. SW 9500. Cindy. Developer. 6000. ``` the output I want is ``` name: Marcus, sal: 9500. name: Jason, sal: 9500 ``` so far, my code is ```awk BEGIN {a=0} { if...
I'm trying to print out all the max values in one column So the input looks like this
John.      Marketing.   5000.  
Marcus.    Manager.     9500.  
Jason.     SW           9500.  
Cindy.     Developer.   6000.
the output I want is
name: Marcus, sal: 9500.    
   name: Jason, sal: 9500
so far, my code is
BEGIN {a=0}

    {
        if ($3> a)
           max=$3;
        output=$1
     }

    END{
      print "name: ", output, "sal:", max
    }
wannabe (11 rep)
Nov 16, 2022, 03:58 AM • Last activity: Nov 17, 2022, 05:23 AM
0 votes
1 answers
314 views
How to stop Firefox windows from maximizing too much?
I am running Debian on an older system, and so am using MWM, as it is lightweight. I am running Xorg at 1080x720 resolution. I'm not using multiple desktops. When I click "Maximize" on most applications, they correctly fill the screen. When I click "Maximize" on Mozilla Firefox though, it strangely...
I am running Debian on an older system, and so am using MWM, as it is lightweight. I am running Xorg at 1080x720 resolution. I'm not using multiple desktops. When I click "Maximize" on most applications, they correctly fill the screen. When I click "Maximize" on Mozilla Firefox though, it strangely maximizes to be almost 2000 pixels wide, and too tall, such that the right half and bottom half of Firefox are hidden. Since this behavior only appears in Firefox, I assume Firefox has its own internal way to handle being maximized (though I am clicking the "Maximize" button on the window manager). How can I correct this behavior, so Firefox correctly maximizes to fill the actual visible screen? **Update** I determined Firefox is maximizing to 2048x1536, which is actually a common resolution. Somehow it is confused and thinks my computer is running at that large a resolution.
Village (4177 rep)
Jul 18, 2022, 12:40 AM • Last activity: Jul 18, 2022, 09:57 PM
2 votes
4 answers
3176 views
Script to maximize an app when it starts
I am aware that this question is duplicated: https://unix.stackexchange.com/questions/43106/how-to-set-window-size-and-location-of-an-application-on-screen-via-command-line/283528#283528 https://unix.stackexchange.com/questions/159684/resizing-a-maximized-window-from-the-command-line I was able to s...
I am aware that this question is duplicated: https://unix.stackexchange.com/questions/43106/how-to-set-window-size-and-location-of-an-application-on-screen-via-command-line/283528#283528 https://unix.stackexchange.com/questions/159684/resizing-a-maximized-window-from-the-command-line I was able to solve my question with the first link. But I am struggling to learn Bash language and I would like to know what is going wrong with the following script: #!/bin/bash xfce4-settings-manager & sleep 0.1 xwininfo -name "xfce4-settings-manager" | grep xwininfo: | awk {'printf$4'} wmctrl -i -r $1 -b add,maximized_vert,maximized_horz & After running the script I check "xwininfo" takes another ID Value of the app. I don't understand why. Can someone give me a hand with this issue? Thanks in advance.
joshsoj (61 rep)
Mar 4, 2017, 09:43 AM • Last activity: Jan 14, 2021, 01:45 PM
0 votes
1 answers
722 views
How to get my terminal to open NeoVim with maximised window size using Openbox rc.xml key bindings?
I am using Openbox 3.6.1 windowing with Arch 5.6.4, and NeoVim 0.4.3, with gnome-terminal 3.36.1. These are the most up to date versions. I am currently sizing my gnome-terminal window using these lines within my NeoVim `.vimrc` file set lines=36 columns=128 However this is not ideal becasue I frequ...
I am using Openbox 3.6.1 windowing with Arch 5.6.4, and NeoVim 0.4.3, with gnome-terminal 3.36.1. These are the most up to date versions. I am currently sizing my gnome-terminal window using these lines within my NeoVim .vimrc file set lines=36 columns=128 However this is not ideal becasue I frequently have different window layout needs. What I want is for the window to open maximised, whatever my windowing layout. On the gnome-terminal command line, the following command opens file rc.xml with nvim in the gnome-terminal, with maximised window as expected. gnome-terminal --window --maximize -e "bash -c 'nvim /home/user/rc.xml'" I dont usually open files with nvim this way though. What I do is I call nvim in gnome terminal, using an Openbox key binding. Here are 3 example key bindings I have tried within the rc.xml file .. .. this keybinding opens the rc.xml file with nvim, but not with the maximised gnome-terminal window as needed ... gnome-terminal --window --maximize -e "bash -c 'nvim /home/user/rc.xml'" .. again .. this keybinding opens the rc.xml file with nvim, but not with the maximised gnome-terminal window as needed ... gnome-terminal --window --maximize -e "/bin/bash -c ' nvim /home/user/rc.xml; exit; exec /bin/bash -i'" .. again .. this keybinding opens the rc.xml file with nvim, but not with the maximised gnome-terminal window as needed ... /home/user/linux_config/script_vim/rc.xml.sh .. with the above script simply containing #!/bin/bash gnome-terminal --start-maximized -e \"bash -c 'nvim /home/user/rc.xml'\" I am not aware of any parameter within my .vimrc file that is stopping the terminal window opening maximised. Can anyone suggest how I can adjust my key binding to open this window maximised?
Kes (909 rep)
May 4, 2020, 01:19 PM • Last activity: May 4, 2020, 10:25 PM
5 votes
1 answers
2815 views
How to maximize window top/bottom half screen in Gnome?
Does somebody knows how to maximize a window to the half top or half bottom of a screen in gnome? I have found only how to do it left/right, but not top/bottom. Any ideas?
Does somebody knows how to maximize a window to the half top or half bottom of a screen in gnome? I have found only how to do it left/right, but not top/bottom. Any ideas?
Alejandro (284 rep)
Aug 2, 2018, 12:28 PM • Last activity: Aug 2, 2018, 12:58 PM
3 votes
1 answers
456 views
Maximizing a window (Keepassx2) from command line
I'm using `i3wm` and Keepassx2 on an Arch-Linux installation. I configured `i3` to automatically move a window with the window class `"Keepassx2"` to a certain workspace `$WSKP`. I also configured `$mod+P` to execute `Keepassx2`. Now I would like to write a custom script that is executed by `$mod+P`...
I'm using i3wm and Keepassx2 on an Arch-Linux installation. I configured i3 to automatically move a window with the window class "Keepassx2" to a certain workspace $WSKP. I also configured $mod+P to execute Keepassx2. Now I would like to write a custom script that is executed by $mod+P instead. This script should: - launch Keepassx2 when no other instance of it is currently running - maximize Keepassx2 and move focus to the specific workspace $WSKP when there already is a running instance I want this because I don't need the Keepass-Workspace to be open all the time and it takes another unnecessary keypress when tabbing through the workspaces. Checking whether there already is a running instance is easy: if [ $(pidof keepassx2) ]; then # maximize the running instance and move focus with i3-msg fi; But how do I accomplish maximizing the running instance?
herhuf (255 rep)
Sep 6, 2017, 12:47 PM • Last activity: Oct 10, 2017, 05:32 PM
Showing page 1 of 9 total questions