Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Questions about environmental variables
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
nurali
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2022
Posts: 146
Location: Somewhere,Earth

PostPosted: Mon May 29, 2023 1:12 pm    Post subject: [SOLVED]Questions about environmental variables Reply with quote

Hello everyone
I am trying lapce(a written-in-Rust editor) these days,but I got a strange scaling problem
But finally I started it up with a normal DPI by using this:
Code:
GDK_DPI_SCALE=0.5 GDK_SCALE=2.0 lapce

I want to write this into some place that only affective for lapce(Because other applications are fine by Xft.dpi)
/etc/portage/package.env doesn't seem to be prepared for situation like this
Whre should I put it?


Last edited by nurali on Tue May 30, 2023 1:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1877
Location: Switzerland (Romandie)

PostPosted: Mon May 29, 2023 2:30 pm    Post subject: Reply with quote

You can put it into a sh or bash script in ~/bin. Be sure that directory is into your PATH.
Back to top
View user's profile Send private message
saturnalia0
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2016
Posts: 136

PostPosted: Mon May 29, 2023 9:51 pm    Post subject: Reply with quote

Code:

alias lapce="GDK_DPI_SCALE=0.5 GDK_SCALE=2.0 lapce"


You can put that on your ~/.bashrc, then just call as lapce.
Back to top
View user's profile Send private message
nurali
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2022
Posts: 146
Location: Somewhere,Earth

PostPosted: Tue May 30, 2023 1:24 pm    Post subject: Reply with quote

Dominique_71 wrote:
You can put it into a sh or bash script in ~/bin. Be sure that directory is into your PATH.

Thanks for replying
I binded it to a shortcut key of my DWM :D
Back to top
View user's profile Send private message
nurali
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2022
Posts: 146
Location: Somewhere,Earth

PostPosted: Tue May 30, 2023 1:26 pm    Post subject: Reply with quote

saturnalia0 wrote:
Code:

alias lapce="GDK_DPI_SCALE=0.5 GDK_SCALE=2.0 lapce"


You can put that on your ~/.bashrc, then just call as lapce.

Thank you for replying
Done by using shortcut on DWM
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum