Development ISO with i3 Live and offline install

but may this idea is better then using sizes that do not fit for both normal dpi and hidpi only to have something that fit for all needs … if it is possible to detect hidpi it should be possible to sed the config files to fit that needs, this could be helpful for xfce4-offline install also?

╭─joekamprad@empowered64 ~ 
╰─$ xdpyinfo | grep dots
  resolution:    96x96 dots per inch

╭─joekamprad@empowered64 ~ 
╰─$ xdpyinfo | grep 'dimensions:'
  dimensions:    3200x1080 pixels (846x285 millimeters)
4 Likes

Yes! Although for xfce there is a button in the welcome menu to scale the screen, but would make better first impression to make it readable out of the box.

question is what does xdpyinfo | grep dots is showing on hidpi display setup, is it different?

@Zircon34

personally i like this :blush: But i understand why @joekamprad not put it in ( possible head explode for new user ) :rofl:

#Set Gaps 

set $mode_gaps Gaps: (o)uter, (i)nner, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_horiz Horizontal Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_verti Vertical Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_top Top Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_right Right Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_bottom Bottom Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_left Left Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $mod+Shift+g mode "$mode_gaps"

mode "$mode_gaps" {
        bindsym o      mode "$mode_gaps_outer"
        bindsym i      mode "$mode_gaps_inner"
        bindsym h      mode "$mode_gaps_horiz"
        bindsym v      mode "$mode_gaps_verti"
        bindsym t      mode "$mode_gaps_top"
        bindsym r      mode "$mode_gaps_right"
        bindsym b      mode "$mode_gaps_bottom"
        bindsym l      mode "$mode_gaps_left"
        bindsym Return mode "$mode_gaps"
        bindsym Escape mode "default"
}

mode "$mode_gaps_outer" {
        bindsym plus  gaps outer current plus 5
        bindsym minus gaps outer current minus 5
        bindsym 0     gaps outer current set 0

        bindsym Shift+plus  gaps outer all plus 5
        bindsym Shift+minus gaps outer all minus 5
        bindsym Shift+0     gaps outer all set 0

        bindsym Return mode "$mode_gaps"
        bindsym Escape mode "default"
}
mode "$mode_gaps_inner" {
        bindsym plus  gaps inner current plus 5
        bindsym minus gaps inner current minus 5
        bindsym 0     gaps inner current set 0

        bindsym Shift+plus  gaps inner all plus 5
        bindsym Shift+minus gaps inner all minus 5
        bindsym Shift+0     gaps inner all set 0

        bindsym Return mode "$mode_gaps"
        bindsym Escape mode "default"
}
mode "$mode_gaps_horiz" {
        bindsym plus  gaps horizontal current plus 5
        bindsym minus gaps horizontal current minus 5
        bindsym 0     gaps horizontal current set 0

        bindsym Shift+plus  gaps horizontal all plus 5
        bindsym Shift+minus gaps horizontal all minus 5
        bindsym Shift+0     gaps horizontal all set 0

        bindsym Return mode "$mode_gaps"
        bindsym Escape mode "default"
}
mode "$mode_gaps_verti" {
        bindsym plus  gaps vertical current plus 5
        bindsym minus gaps vertical current minus 5
        bindsym 0     gaps vertical current set 0

        bindsym Shift+plus  gaps vertical all plus 5
        bindsym Shift+minus gaps vertical all minus 5
        bindsym Shift+0     gaps vertical all set 0

        bindsym Return mode "$mode_gaps"
        bindsym Escape mode "default"
}
mode "$mode_gaps_top" {
        bindsym plus  gaps top current plus 5
        bindsym minus gaps top current minus 5
        bindsym 0     gaps top current set 0

        bindsym Shift+plus  gaps top all plus 5
        bindsym Shift+minus gaps top all minus 5
        bindsym Shift+0     gaps top all set 0

        bindsym Return mode "$mode_gaps"
        bindsym Escape mode "default"
}
mode "$mode_gaps_right" {
        bindsym plus  gaps right current plus 5
        bindsym minus gaps right current minus 5
        bindsym 0     gaps right current set 0

        bindsym Shift+plus  gaps right all plus 5
        bindsym Shift+minus gaps right all minus 5
        bindsym Shift+0     gaps right all set 0

        bindsym Return mode "$mode_gaps"
        bindsym Escape mode "default"
}
mode "$mode_gaps_bottom" {
        bindsym plus  gaps bottom current plus 5
        bindsym minus gaps bottom current minus 5
        bindsym 0     gaps bottom current set 0

        bindsym Shift+plus  gaps bottom all plus 5
        bindsym Shift+minus gaps bottom all minus 5
        bindsym Shift+0     gaps bottom all set 0

        bindsym Return mode "$mode_gaps"
        bindsym Escape mode "default"
}
mode "$mode_gaps_left" {
        bindsym plus  gaps left current plus 5
        bindsym minus gaps left current minus 5
        bindsym 0     gaps left current set 0

        bindsym Shift+plus  gaps left all plus 5
        bindsym Shift+minus gaps left all minus 5
        bindsym Shift+0     gaps left all set 0

        bindsym Return mode "$mode_gaps"
        bindsym Escape mode "default"
}




I like the control it give but others no need /want it , so i add ( i know it make config insane ) :rofl:

like i say " keep it simple " let new user add if they need

4 Likes

Along those lines, what config file would I have to alter to set up running a script at user log-in to mount my servers? :pray:

Pudge

I agree totally with keeping it unbloated, but do not see how gaps are related to font and icon sizing.

Enabling readability is a vital function.

When I install and run i3wm on my high dpi screen I cannot read a single word. I need to put screen 2mm in front of my eye or use a handlense to read the config file and try to edit it :rofl: makes sense?

Do you have a high dpi screen or do you want me to report what I see?

my point was … i want it so i add it …

@Pudge :pray: that above my pay grade :woozy_face:

edit i prob could work it out given time … i sure you know anyway :blush:

2 Likes

Haha ok

i have no hidpi screen in my set, would be nice to see your output :wink:
→ And in terminal you can increase size by simple pressing [Ctrl+]

If you have a command for it simple add it like so:
exec --no-startup-id >path-to-script // command itself<

3 Likes

So if the script is in /home/user/bin and named AutoMountServer the following

exec --no-startup-id >/home/don/bin // AutoMountServer<

Nice. This was a show stopper, Danke schön for the fix.

Pudge

$ xdpyinfo | grep dots
  resolution:    48x48 dots per inch
$ xdpyinfo | grep 'dimensions:'
  dimensions:    3840x2160 pixels (2032x1143 millimeters)

note I changed my config files (this is not vanilla eos), as described here: Ten tweaks for EOS i3 wm on lenovo with high dpi

2 Likes

and on my other lenovo t490s with “normal screen” I get:

$ xdpyinfo | grep dots
  resolution:    96x96 dots per inch
$ xdpyinfo | grep 'dimensions:'
  dimensions:    1920x1080 pixels (508x286 millimeters)
1 Like

I have these results:

$ xdpyinfo | grep -P 'resolution|dimensions'
  dimensions:    3840x2160 pixels (1016x572 millimeters)
  resolution:    96x96 dots per inch

Would it help to set the preferred display mode?
That can be done with xrandr:

output="name-of-the-output"     # from 'xrandr --query'
$ xrandr --output "$output" --auto

i put some placeholder signs there only :wink:

# AutoMountServer
exec --no-startup-id /home/don/bin

is the right format

the issue is more to use xpyinfo to detect if it is a hidpi display and then sed config to the right font size and theme option inside config text files or via command (for gtk theme)
// i do think about getting more hardware detected automatic for all different stuff currently :wink:

1 Like

@Shjim , you sure love those gaps. :rofl:
Only thing that I don’t see there is a reset to some default value. For example I have this in my config as a “startup condition”.

# Set inner/outer gaps
gaps inner 12
gaps outer -8

And for a reset command.

# reset gaps
bindsym $mod+Ctrl+g gaps inner all set 12; gaps outer all set -8
2 Likes

Better

exec --no-startup-id /home/don/bin/AutoMountServer

There is also exec_always which runs the script every time you restart i3 - not so practical for mounting drives, more useful for example for restarting graphic features like picom.

exec_always --no-startup-id "killall picom; sleep 1; picom -b"

Also there is alway systemd.mount if you want to go fancy. :grinning: It can for example make sure that the network is up before it tries to mount a network drive.

2 Likes

@vlkon

that liite part :rofl: yes i can have your way but i change as i like on different WS …

we all different :+1:

2 Likes

Just a quick note. Does anyone else have problems with i3 lock with this ISO? As in you select lock from rofi and it does nothing (spinning cursor)?
Second. In the past two days when updating i am receiving permission warnings about the file /etc/sudoers.d/ I have not made any changes to the install save some theming. The last one was about an hour ago when sudo got an update.

@joekamprad ?