SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 14 on a Dell Inspiron 1420
Posts: 30
Rep:
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:
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.
Distribution: Slackware 14 on a Dell Inspiron 1420
Posts: 30
Original Poster
Rep:
Quote:
Originally Posted by ChrisAbela
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.
Distribution: Slackware 14 on a Dell Inspiron 1420
Posts: 30
Original Poster
Rep:
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.
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.