Column Seperator in Rofi Script #1871
-
I have written a script to view window with workspace names. The script looks like:
For the dbus commands it need the extension https://github.com/blueray453/gnome-utils-by-blueray453 Anyway there are implementation details. The issue is, I am calling it using:
It looks like: The issue is with the column separator. When I asked last time you said:
I am using monospace font. How can I use spaces/tabs to make column here? You also gave me link to https://davatorium.github.io/rofi/1.7.5/rofi-script.5/ The page does not describe how Is there any way i can use If you look at |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
For example,
Here i put two tabs in each line. But it is not separating in column. One more thing: You can see that the icon is in But |
Beta Was this translation helpful? Give feedback.
-
There is no column separator.
Asking the same question again does not change the answer:
Using tabs and tab-stops to align text is a pretty basic thing (from typewriter era) that most software implement (word, google docs, etc). echo -en "e\tbbub\tc\naap\tb\td" | rofi -dmenu echo -en "e\tbbub\tc\naap\tb\td" | rofi -dmenu -theme-str 'element-text { tab-stops: [ 10em, 20em, 30em]; }' See documentation.
They are characters, see man ascii.
or see
Again the answer has not changed:
There is no column separator
Because the icon widget is separated from the text and its location is specified by the theme (see man rofi-theme), and again:
|
Beta Was this translation helpful? Give feedback.
-
I think i can handle it from here. The only issue remaining is:
Here if i replace |
Beta Was this translation helpful? Give feedback.
-
If I run
The output of the command is:
However, If I run
The output is like:
Not sure what to do here. |
Beta Was this translation helpful? Give feedback.
There is no column separator.
Asking the same question again does not change the answer:
Using tabs and tab-stops to align text is a pretty basic thing (from typewriter era) that most software implement (word, google docs, etc).
See documentation.