openbsd:xsession
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| openbsd:xsession [2026/07/03 12:33] – created Alexey | openbsd:xsession [2026/07/06 17:34] (current) – [# window manager] Alexey | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== .xsession ====== | ====== .xsession ====== | ||
| + | |||
| + | ===== # environment ===== | ||
| < | < | ||
| Line 5: | Line 7: | ||
| export LC_CTYPE=" | export LC_CTYPE=" | ||
| export EDITOR=mcedit | export EDITOR=mcedit | ||
| + | export MOZ_ACCELERATED=1 MOZ_WEBRENDER=1 | ||
| </ | </ | ||
| + | |||
| + | ===== # screen ===== | ||
| + | |||
| + | < | ||
| + | # Lenovo x201i + vga monitor | ||
| + | xrandr --output LVDS1 --auto --rotate normal --pos 0x0 --output VGA1 --auto --right-of LVDS1 | ||
| + | # xrandr --dpi 96 | ||
| + | </ | ||
| + | |||
| + | ===== # keyboard ===== | ||
| < | < | ||
| setxkbmap " | setxkbmap " | ||
| + | setxkbmap | ||
| + | |||
| + | # setxkbmap -model pc105 -layout us,ru -variant ,winkeys -option grp: | ||
| </ | </ | ||
| + | |||
| + | ===== # window manager ===== | ||
| < | < | ||
| - | xmessage -buttons cwm: | + | xmessage -buttons cwm: |
| case $? in | case $? in | ||
| - | 0) xterm -bg black -fg white +sb mc & | ||
| - | / | ||
| - | ;; | ||
| 1) xterm -bg black -fg white +sb mc & | 1) xterm -bg black -fg white +sb mc & | ||
| / | / | ||
| Line 24: | Line 39: | ||
| 3) icewm-session | 3) icewm-session | ||
| ;; | ;; | ||
| - | *) xterm -bg black -fg green -maximized -fa ' | + | 0|4) if [ -x / |
| + | eval dbus-launch --sh-syntax --exit-with-x11 | ||
| + | fi | ||
| + | exec / | ||
| + | ;; | ||
| + | 99|*) | ||
| + | | ||
| ;; | ;; | ||
| esac | esac | ||
| - | |||
| </ | </ | ||
| + | ===== Result: ===== | ||
| + | |||
| + | {{: | ||
openbsd/xsession.1783081991.txt.gz · Last modified: 2026/07/03 12:33 by Alexey
