LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-25-2015, 10:53 AM   #1
Rockitglider7
Member
 
Registered: Nov 2013
Location: South Florida
Distribution: Slackware 14 on a Dell Inspiron 1420
Posts: 30

Rep: Reputation: Disabled
Question about desktop shortcut


Hello,

I have a Slackware 14 setup with a unix server and I run a program from the unix server, the command line for the shortcut on the slackware desktop is:

xterm -T "SSM Unix Terminal" -fg white -bg darkblue -geometry 80X24+180+220 -fn 12X24 -e telnet 192.168.1.1

I bought new monitors and they are wide screen and the auto selection in Linux selects such a high resolution that I need to make the unix program open in a larger window, My question is can I increase the numbers in the geometry portion of the command line to achieve this, and do I need to change all the numbers, and is there a limit or a certain combination for the resolution to look right on the screen? I'm assuming that (-fg) is the foreground color, & (-bg) is the background color, & (-geometry) is the size and shape of the window, & I'm guessing that (-fn) is the font size, and maybe the color too? So is it just a matter of trial and error to get the desired size? Thanks for any help you can provide.

Sincerely, Kit
 
Old 10-25-2015, 11:36 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
What window manager/desktop environment are you using?
 
Old 10-25-2015, 12:01 PM   #3
Rockitglider7
Member
 
Registered: Nov 2013
Location: South Florida
Distribution: Slackware 14 on a Dell Inspiron 1420
Posts: 30

Original Poster
Rep: Reputation: Disabled
Hello,

I'm using the kde desktop.

Kit
 
Old 10-25-2015, 12:11 PM   #4
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
You do not have to guess anything that is documented.

Run

Quote:
man xterm
and read the manual.
 
Old 10-25-2015, 01:01 PM   #5
Rockitglider7
Member
 
Registered: Nov 2013
Location: South Florida
Distribution: Slackware 14 on a Dell Inspiron 1420
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ChrisAbela View Post
You do not have to guess anything that is documented.

Run



and read the manual.
Okay,

I read most of that, but didn't understand much of it. I confirmed that bg and fg and fn are what I thought they were, but I didn't see anything about sizing. I does say that there is no default for geometry, but it doesn't tell me how to change it. It does say to see: x(7) but I'm not sure what that means.

Kit
 
Old 10-25-2015, 01:16 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
Quote:
Originally Posted by Rockitglider7 View Post
It does say to see: x(7) but I'm not sure what that means.
It says that to know more you could type
man 7 X
Case matters, so X should be a capital (or upper case) letter in this case.

Last edited by Didier Spaier; 10-25-2015 at 01:18 PM.
 
Old 10-25-2015, 04:29 PM   #7
Rockitglider7
Member
 
Registered: Nov 2013
Location: South Florida
Distribution: Slackware 14 on a Dell Inspiron 1420
Posts: 30

Original Poster
Rep: Reputation: Disabled
Hello,

I read the manual on xterm and tried to resize the window for the program, but it didn't help as the app from the unix server won't change size with the window. I was able to change the resoluton on one of the machines that I rebuilt recently, so it will work like that but the one with older hardware won't keep the desktop size change after restarting the machine. Both have version 14 slackware. Thanks for your help anyway.

Kit
 
Old 10-25-2015, 08:07 PM   #8
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Post

Quote:
Originally Posted by Rockitglider7 View Post
Hello,

I have a Slackware 14 setup with a unix server and I run a program from the unix server, the command line for the shortcut on the slackware desktop is:

xterm -T "SSM Unix Terminal" -fg white -bg darkblue -geometry 80X24+180+220 -fn 12X24 -e telnet 192.168.1.1

I bought new monitors and they are wide screen and the auto selection in Linux selects such a high resolution that I need to make the unix program open in a larger window, My question is can I increase the numbers in the geometry portion of the command line to achieve this, and do I need to change all the numbers, and is there a limit or a certain combination for the resolution to look right on the screen? I'm assuming that (-fg) is the foreground color, & (-bg) is the background color, & (-geometry) is the size and shape of the window, & I'm guessing that (-fn) is the font size, and maybe the color too? So is it just a matter of trial and error to get the desired size? Thanks for any help you can provide.
Just add your chosen xterm settings to ~/.Xresources and merge the changes in when you start kde. Then start xterm with a simple xterm command.

Here are the xterm settings I have in ~/.Xresources:

Code:
! Some programs read this .Xresources file in $HOME and others read the older
! .Xdefaults. The easiest thing to do is symlink .Xdefaults to this file so that
! edits are automatically updated.
!
!    ln -sf ~/.Xresources ~/.Xdefaults
!
! Comments are preceded with an exclamation mark. Some programs will
! report an error if you use the more common hash # symbol instead.
!
! Note that when specifying font sizes the values size and pixelsize
! refer to point size and pixel size respectively.
!
! general settings
!
Xft.dpi: 96
Xft.rgba:rgb
Xft.hinting:true
Xft.hintstyle:hintslight
Xft.antialias:true

! xterm settings
!
! colours - see below
! XTerm*background:#3f3f3f
! XTerm*foreground:#dcdccc

XTerm*vt100*geometry:82x48
XTerm*toolBar:false
XTerm*fullscreen:never
XTerm*termName:xterm-256color
XTerm*saveLines:8192
XTerm*loginShell:false
XTerm*cursorUnderline:false
XTerm*cursorBlink:true
XTerm*visualBell:true
XTerm*urgentOnBell:true
XTerm*internalBorder:2
! Make the Alt key work the way I want in Emacs
XTerm*vt100*utf8:1
XTerm*vt100*eightBitInput:false
XTerm*vt100*metaSendsEscape:true
XTerm*vt100*locale:UTF-8
! Menu settings
XTerm.mainMenu.line1.foreground:	white
XTerm.mainMenu.line2.foreground:	white
XTerm.mainMenu.suspend.foreground:	red
XTerm.mainMenu.continue.foreground:	red
XTerm.mainMenu.interrupt.foreground:	red
XTerm.mainMenu.hangup.foreground:	red
XTerm.mainMenu.terminate.foreground:	red
XTerm.mainMenu.kill.foreground:		red
XTerm.mainMenu.quit.foreground:		yellow
XTerm.mainMenu*borderColor:		white

XTerm.vtMenu.foreground:		white
XTerm.vtMenu*foreground:		#0cf
XTerm.vtMenu*borderColor:		white
XTerm.vtMenu.softreset.foreground:	#0fa
XTerm.vtMenu.hardreset.foreground:	#0fa
XTerm.vtMenu.tekshow.foreground:	#4cc
XTerm.vtMenu.tekmode.foreground:	#4cc
XTerm.vtMenu.vthide.foreground:		#4cc
XTerm.vtMenu.line1.foreground:		white
XTerm.vtMenu.line2.foreground:		white

! Font settings
!
! characters that a good font needs to distinguish:
! 1 l I i
! 0 O D B 8
! n m w
!
XTerm*faceName:xft:DejaVu Sans Mono:pixelsize=16
! XTerm*faceName:xft:Bitstream Vera Sans Mono:pixelsize=12
! XTerm*faceName:xft:Consolas:pixelsize=13
! XTerm*faceName:xft:Lucida Console:pixelsize=13
! XTerm*faceName:xft:Inconsolata:pixelsize=14
! XTerm*faceName:xft:Envy Code R:pixelsize=13
! XTerm*faceName:xft:ProggyCleanSZBP:pixelsize=12
! XTerm*faceName:xft:Terminus:pixelsize=14

! Change colours used by commands like ls because default
! dircolors are unreadable on a dark background. See
! /etc/dircolors for defaults.

! defaults:
! color0       (black)
! color1       (red)
! color2       (green)
! color3       (yellow)
! color4       (blue)
! color5       (magenta)
! color6       (cyan)
! color7       (white)
! color8       (bright black)
! color9       (bright red)
! color10      (bright green)
! color11      (bright yellow)
! color12      (bright blue)
! color13      (bright magenta)
! color14      (bright cyan)
! color15      (bright white)

*background:rgb:33/33/33
*foreground:gray90
*color0:#3f3f3f
*color1:#9d8383
*color2:#60a381
*color3:#dfaf8f
*color4:#7da2c8
*color5:#c073a8
*color6:#70B3B6
*color7:#DCDCDC
*color8:#7BA38F
*color9:#DCA3A3
*color10:#72D5A3
*color11:#F0DFAF
*color12:#94BFF3
*color13:#EC93D3
*color14:#93E0E3
*color15:#FFFFFF
Just create a small script as follows and drop it in ~/.kde/Autostart and your selected xterm changes will be merged whenever you start kde.

Code:
#!/bin/sh
xrdb -load ~/.Xresources
(You can also use the .Xresources file to specify settings for other X apps, namely xpdf, rxvt-unicode, xcalc, and so on.)

Last edited by Gerard Lally; 10-25-2015 at 08:11 PM.
 
  


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
Desktop shortcut old geezer Linux - Newbie 8 02-04-2013 01:09 PM
create a shortcut in /home/username/Desktop but not still not appear on desktop! swgiant Linux - Newbie 1 09-27-2008 11:51 AM
desktop shortcut? Sean2 Mandriva 3 12-11-2003 08:13 PM
Desktop Shortcut MasterC Linux - Software 13 09-27-2002 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:00 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