LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-13-2019, 09:18 PM   #1
mshlinux
Member
 
Registered: Mar 2013
Location: Yangon, Myanmar.
Distribution: Fedora, Arch
Posts: 177

Rep: Reputation: Disabled
keyboard shortcuts for zoom in/out of st terminal not working


Hi,

I am having a problem. I install st terminal from this page: https://st.suckless.org/.
I found some of this in config.h file
Code:
	{ TERMMOD,              XK_Prior,       zoom,           {.f = +1} },
	{ TERMMOD,              XK_k,       zoom,           {.f = +1} },
	{ TERMMOD,              XK_Next,        zoom,           {.f = -1} },
	{ TERMMOD,              XK_j,        zoom,           {.f = -1} },
But I can't change the font size or zoom in/out the terminal st by the keyboard shortcuts like Alt+Shift+PageUP/PageDown or Alt+j, Alt+k, Alt+Shift+j, Alt+Shift+k

What is I am missing? May be a patch?
 
Old 12-14-2019, 06:19 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
We are missing the whole picture:
What does any part of this C snippet actually do?
I guess of particular intrest is TERMMOD and KP_*.
In other words, what keyboard shortcut is supposed to de/increase font size?

Another important question: does the chosen font scale?
 
Old 12-14-2019, 08:31 AM   #3
mshlinux
Member
 
Registered: Mar 2013
Location: Yangon, Myanmar.
Distribution: Fedora, Arch
Posts: 177

Original Poster
Rep: Reputation: Disabled
I found this in config.h
Code:
/* Internal keyboard shortcuts. */
#define MODKEY Mod1Mask
#define TERMMOD (ControlMask|ShiftMask)
This means TERMMOD is Ctrl+Shift. So, Ctrl+Shift+PageUp and PageDown are to zoom in and zoom out st terminal.
sorry for the post. I found it myself. :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why would my columns in LibreOffice separate as zoom out and overlap as zoom in 1sweetwater! Linux - Software 18 02-10-2015 08:50 AM
Query regarding "Zoom in" and "Zoom Out" on Fedora-17 ajaygarg Linux - Desktop 2 12-03-2012 11:59 PM
Zoom Zoom barnelli-jones LinuxQuestions.org Member Intro 1 06-27-2012 08:55 PM
plasma hangs - zoom out but no zoom in CollieJim Linux - Desktop 3 04-06-2010 08:53 AM
Assigning keyboard shortcuts to keyboard keys the who Linux - Hardware 3 02-20-2004 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration