View previous topic :: View next topic |
Author |
Message |
nurali Tux's lil' helper
Joined: 17 Nov 2022 Posts: 146 Location: Somewhere,Earth
|
Posted: Mon May 29, 2023 1:12 pm Post subject: [SOLVED]Questions about environmental variables |
|
|
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 |
|
|
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1877 Location: Switzerland (Romandie)
|
Posted: Mon May 29, 2023 2:30 pm Post subject: |
|
|
You can put it into a sh or bash script in ~/bin. Be sure that directory is into your PATH. |
|
Back to top |
|
|
saturnalia0 Tux's lil' helper
Joined: 13 Oct 2016 Posts: 136
|
Posted: Mon May 29, 2023 9:51 pm Post subject: |
|
|
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 |
|
|
nurali Tux's lil' helper
Joined: 17 Nov 2022 Posts: 146 Location: Somewhere,Earth
|
Posted: Tue May 30, 2023 1:24 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
nurali Tux's lil' helper
Joined: 17 Nov 2022 Posts: 146 Location: Somewhere,Earth
|
Posted: Tue May 30, 2023 1:26 pm Post subject: |
|
|
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 |
|
|
|