How to start st-terminal maximized and set proper icon?

Hello, I have downloaded and compiled st terminal.

~/.local/share/applications/st.desktop

[Desktop Entry]
Name=Simple Terminal
GenericName=Terminal
Comment=Suckless terminal emulator for X
Exec=st -t "Simple Terminal" -e tmux
Terminal=false
Type=Application
Encoding=UTF-8
Icon=st
Categories=System;TerminalEmulator;
Keywords=shell;prompt;command;commandline;cmd;
Path=/usr/local/bin/st
StartupNotify=true

I have created keyboard shortcut as well. alt + shift + t and tired to add --maximize and
--maximized, but it doesn’t work.

I also created ~/.Xresources file and tried the following options

st.fullscreen: maximized / maximize
st.maximize: true
st.maximized: true

How can I make this work with Xresources or xfwm ?? I am on XFCE.

The icon is not showing when I open the terminal. There is a default xfce icon not an st one.
st-icon

Thanks.

Solved → how to start st-terminal maximized.

  1. You need to install anygeometry patch.
  2. You need to have xdpyinfo installed on your PC / Laptop
  3. In your desktop entry/keyboard shortcut paste this command
    xdpyinfo | awk ‘/dimensions/ {print $2}’ → Gives the screen resolution
Exec=st -t "Simple Terminal" -G `xdpyinfo | awk '/dimensions/ {print $2}'` # for desktop entry
st -t "Simple Terminal" -G `xdpyinfo | awk '/dimensions/ {print $2}'`      # for keyboard shortcut

Solved → how to set proper icon.

  1. You need to install netwmicon patch.
  2. sudo make clean install
  3. Optional if you like to change the icon run ./netwmicon.sh path/to/your/image.png from your st folder.

That’s it.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.