Results 1 to 7 of 7

Thread: How to set konsole's default font size

  1. #1

    Default How to set konsole's default font size

    I can set the default for my profile just by going to "Edit current profile..." however I have scripts that launch konsole windows and in those cases the settings, including the font size, are reverting to a default that I don't know how to change. These tiny fonts on my high res. screen are too small, does anyone know how to change konsole's default font size?

    Also the script sometimes launches a root user window which if it did pick up profile info it would probably get it from the root user instead mine so knowing where konsole stores it's per user settings would be useful as well knowing how to change the over all defaults.

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,890

    Default Re: How to set konsole's default font size

    Quote Originally Posted by Reg_gie View Post
    Also the script sometimes launches a root user window which if it did pick up profile info it would probably get it from the root user instead mine ........
    I do not think so. The window is on the user's desktop. The root .profile, etc. is working on the shell process that runs "inside" the window, not on the window.
    Henk van Velden

  3. #3
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,442

    Default Re: How to set konsole's default font size

    My understanding is that the default font size derives from KDE‘s System settings>Fonts - perhaps I am wrong?

  4. #4
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,373
    Blog Entries
    3

    Default Re: How to set konsole's default font size

    Quote Originally Posted by Reg_gie View Post
    ..." however I have scripts that launch konsole windows and in those cases the settings, including the font size, are reverting to a default that I don't know how to change.
    It looks as if your script can use:
    Code:
    konsole --profile profile-name
    to specify a profile to use. Maybe define a suitable profile for what you want, and modify your scripts to use it.

    By the way, I ran
    Code:
    konsole --help
    to get that information.

    When you are opening a root window, it might depend on whether your environment still has $HOME set to your home directory or to "/root".
    openSUSE Leap 15.1; KDE Plasma 5;

  5. #5
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,581

    Default Re: How to set konsole's default font size

    Quote Originally Posted by john_hudson View Post
    My understanding is that the default font size derives from KDE‘s System settings>Fonts - perhaps I am wrong?
    You are not wrong. I just checked with a virgin user profile. Konsole by default is using the monospace font family and size specified as you wrote, in Plasma's "System Settings" -> "Fonts" (which you can open directly with "kcmshell5 fonts"). When I open Konsole to the appearance tab, its size matches the system settings size in effect at the time Konsole is opened. The way I understand it, when changing the font size directly from within Konsole, it is on a per profile basis, Thus, I purposely don't do it there, so that system settings retains control.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  6. #6

    Default Re: How to set konsole's default font size

    Quote Originally Posted by mrmazda View Post
    You are not wrong...
    I did see those settings and it didn't help but I know why. For reasons I won't go into I need to use
    Code:
    sudo -i
    before I run my script and that causes it to pull from the KDE environment of the root user. What I need to do is log into KDE as root, change the settings in the desktop and then it will behave as I want.

    It would have been nice to know where KDE sets that font size (probably buried somewhere in ~/.config/ or ~/.kde4/ ) and then I could just edit a configuration file, most likely, but figuring that out is probably more trouble than it is worth when I can just log in as root and make the changes I want.

    Thanks for the great response and help everyone!

  7. #7

    Default Re: How to set konsole's default font size

    Well, I was wrong. After testing it still had that tiny font size however there were two profiles called "root shell" (is that just my system or do you guys have two as well?) and it seems when playing with it I only increased the font size on one of them. As Murphy would have it not the one that it was defaulting to as root. When I did the same thing to the other the font finally changed so that's the one to which root is defaulting.

    This is the line that's called in case anyone is interested
    Code:
    konsole --new-tab --noclose -e "./includes/spawned.sh $1 $2 $3 $4 $5 $6 $7 $8 $9" &
    . I run a bunch of parallel processes by spawning off a bunch of konsole windows and I get a nice visual of their progress this way. I used to run them in the background without a window tab for each but the visual has it's advantages. The spawned file is nothing more than
    Code:
    #!/bin/bash
    TX_FILE_FOR_BG_PROCESSES="logs/varsToTx.sh" # This we have to hard code since this is a spawned process and all variables have been lost.
    if [ -e "$TX_FILE_FOR_BG_PROCESSES" ]; then
      . "./$TX_FILE_FOR_BG_PROCESSES"
    fi
    . $1 $2 $3 $4 $5 $6 $7 $8 $9
    The suggestion to add "--profile <profile>" would have undoubtedly worked as well.

    Again, thanks everyone.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •