FreeBSD Desktop – Part 12 – Configuration – Openbox

Time to cut the bullshit and actually make some real configuration. In today’s article of the FreeBSD Desktop series I will describe how to configure the Openbox window manager.

You may want to check other articles in the FreeBSD Desktop series on the FreeBSD Desktop – Global Page where you will find links to all episodes of the series along with table of contents for each episode’s contents.

Features

Comparing to earlier articles in the series it will be HUGE, sorry for that. I could cut it into smaller parts but that would require editing of the Openbox configuration, its shortcuts and menus over and over again, so for the sake of simplicity its better to put it all at once. As it is as that big there will be mistakes, but I will fix them ASAP.

Here is the list of all features that will be available in this Openbox configuration.

  • Nice looking Openbox theme.
  • Openbox Menu (static) with nice looking icons.
  • Openbox Menu for FreeBSD top(1)/ps(1) commands and config files/logs.
  • Openbox Menu for FreeBSD default sound output.
  • Openbox Menu and shortcuts for FreeBSD sound volume increase/decrease.
  • Openbox Menu for FreeBSD for CPU frequency scaling.
  • Openbox Menu for FreeBSD network management with network.sh script.
  • Openbox Menu for screenshots/wallpapers management.
  • Openbox Menu for Recent files.
  • Random wallpaper handling.
  • Random xterm(1) theme at every terminal start with lost of great themes.
  • Openbox shortcuts and script for Aero Snap like behavior.
  • Openbox Dmenu shortcuts and integration.
  • Openbox configured with nice fonts.
  • Openbox shortcuts for most important tasks.
  • Warning for low battery on laptop.
  • I probably forgot about dozen other features – let me know in comments πŸ™‚

Here is how the Openbox menus and window borders and window switching would look like.

openbox-alt-tab

openbox-menu

Here are all the files with needed configuration.

Doas

To make most scripts work Your user (vuk in the series) needs to be in the wheel, operator and network groups and doas(1) (sudo(8) equivalent) needs to be installed and configured in the following way.

# pkg install doas

# pw groupmod wheel    -m vuk
# pw groupmod operator -m vuk
# pw groupmod network  -m vuk

# cat /usr/local/etc/doas.conf
permit nopass :wheel as root

permit nopass :network as root cmd ifconfig
permit nopass :network as root cmd dhclient
permit nopass :network as root cmd umount
permit nopass :network as root cmd wpa_supplicant
permit nopass :network as root cmd ppp
permit nopass :network as root cmd killall args -9 dhclient
permit nopass :network as root cmd killall args -9 wpa_supplicant
permit nopass :network as root cmd killall args -9 ppp
permit nopass :network as root cmd cat args /etc/ppp/ppp.conf
permit nopass :network as root cmd /etc/rc.d/netif args onerestart
permit nopass :network as root cmd tee args /etc/resolv.conf
permit nopass :network as root cmd tee args -a /etc/resolv.conf

Scripts

In this post I attach scripts I have made and used for about 13 years since I started to use FreeBSD on the desktop. Download them all in the scripts.tar.gz file and unpack them into the ~/scripts to make it look like that.

% find scripts | sort
scripts/__openbox_cpufreq.sh
scripts/__openbox_current_wallpaper.sh
scripts/__openbox_delete_wallpaper.sh
scripts/__openbox_dmenu.sh
scripts/__openbox_edit_screenshot.sh
scripts/__openbox_edit_wallpaper_gimp.sh
scripts/__openbox_freebsd_sound.sh
scripts/__openbox_lock_zzz.sh
scripts/__openbox_lock.sh
scripts/__openbox_recent.sh
scripts/__openbox_reload_wallpaper.sh
scripts/__openbox_restart_conky.sh
scripts/__openbox_restart_dzen2.sh
scripts/__openbox_restart_plank.sh
scripts/__openbox_restart_tint2.sh
scripts/__openbox_show_screenshot.sh
scripts/__openbox_stats_ps_KILLALL.sh
scripts/__openbox_stats_top_cpu_KILL.sh
scripts/__openbox_stats_top_cpu_RENICE.sh
scripts/__openbox_stats_top_mem_KILL.sh
scripts/__openbox_stats_top_mem_RENICE.sh
scripts/aero-snap.sh
scripts/fc-cache.sh
scripts/firefox-clean.sh
scripts/network.sh
scripts/random_wallpaper.sh
scripts/shot.sh
scripts/xterm.sh
scripts/desktop-kill-shit.sh
scripts/desktop-battery-warning.sh

Make sure they remain executable.

% chmod +x ~/scripts/*

To make them work properly add ~/scripts into the ${PATH} variable at the beginning of the ~/.xinitrc file.

# PATH TO SCRIPTS
  export PATH=${PATH}:~/scripts


All of my scripts have this ‘mysterious’ line at the end. Its for statistics to check which scripts are run when (or it at all to which ones to delete).

echo '1' >> ~/scripts/stats/$( basename ${0} )

Thus it is needed to create the ‘stats’ directory.

% mkdir -p ~/scripts/stats

I have implemented that about two months ago and here are the results.

% wc -l ~/scripts/stats/* | sort -n
       1 /home/vermaden/scripts/stats/__openbox_show_screenshot.sh
       2 /home/vermaden/scripts/stats/__openbox_cpufreq.sh
       2 /home/vermaden/scripts/stats/__openbox_current_wallpaper.sh
       2 /home/vermaden/scripts/stats/__openbox_fullscreen.sh
       4 /home/vermaden/scripts/stats/__openbox_restart_dzen2.sh
       4 /home/vermaden/scripts/stats/dzen2-fifo.sh
       5 /home/vermaden/scripts/stats/__openbox_dmenu.sh
       5 /home/vermaden/scripts/stats/__openbox_restart_conky.sh
       5 /home/vermaden/scripts/stats/__openbox_restart_tint2.sh
       6 /home/vermaden/scripts/stats/__openbox_delete_wallpaper.sh
       7 /home/vermaden/scripts/stats/__openbox_freebsd_sound.sh
       8 /home/vermaden/scripts/stats/aero-snap.sh
      12 /home/vermaden/scripts/stats/__openbox_edit_screenshot.sh
      16 /home/vermaden/scripts/stats/__openbox_lock_zzz.sh
      16 /home/vermaden/scripts/stats/__openbox_lock.sh
      22 /home/vermaden/scripts/stats/shot.sh
      24 /home/vermaden/scripts/stats/network.sh
     214 /home/vermaden/scripts/stats/xterm.sh
     960 /home/vermaden/scripts/stats/random_wallpaper.sh
    2767 /home/vermaden/scripts/stats/desktop-battery-warning.sh
   13834 /home/vermaden/scripts/stats/desktop-kill-shit.sh
   17916 total

Of course I limited the output only to scripts that are available in this article, but be patient, more to come later πŸ™‚

Dependencies

To make these scripts work and generally to make all this setup work we will need these dependencies.

  • arandr
  • qt5ct
  • qtconfig-qt4
  • sakura
  • leafpad
  • geany
  • caja
  • thunar
  • libreoffice
  • galculator
  • pidgin
  • firefox
  • chrome
  • deadbeef
  • transmission-gtk
  • gnumeric
  • abiword
  • audacity
  • filezilla
  • midori
  • gimp
  • lupe
  • xvidcap
  • zenity
  • xterm
  • xrdb
  • scrot
  • feh
  • wmctrl
  • xdotool
  • viewnior
  • tint2
  • plank
  • dzen2
  • conky
  • mate-screensaver
  • xlockmore
  • gimp
  • dmenu
  • powerdxx
  • htop
  • galculator

To install them all with pkg(8) just type this line below.

# pkg install \
    geany caja thunar libreoffice galculator pidgin firefox chrome midori \
    abiword deadbeef transmission-gtk gnumeric  audacity filezilla zenity \
    gimp lupe recorder xvidcap  xterm xrdb scrot feh wmctrl xdotool tint2 \
    viewnior plank dzen2 conky mate-screensaver xlockmore powerdxx arandr \
    qt5ct gfontview galculator qtconfig qtconfig-qt4 sakura leafpad dmenu \
    htop 
   

I also assume that wallpapers will be kept under ~/gfx/wallpapers dir and screenshots made under ~/gfx/screenshots directory, so lets create them now.

% mkdir -p ~/gfx/wallpapers
% mkdir -p ~/gfx/screenshots

Crontab

Some of these scripts needs to be put into crontab(1) to work, here are their entries.

% crontab -l
# DESKTOP
  *     *     * * * ~/scripts/desktop-kill-shit.sh                                       1> /dev/null 2> /dev/null
  */5   *     * * * ~/scripts/desktop-battery-warning.sh
  */20  *     * * * ~/scripts/random_wallpaper.sh ~/gfx/wallpapers                       1> /dev/null 2> /dev/null
  12,0  *     * * * /usr/bin/find ~/.cache -mtime +10 -delete                            1> /dev/null 2> /dev/null
  0     */3   * * * /usr/bin/find ~/.local/share/Trash/files -mtime +1 -delete  1> /dev/null 2> /dev/null

Fonts

I use Ubuntu Mono font for the Openbox menus and Fira Sans font for the Openbox window bar titles, thus you will download them in the fonts.tar.gz file and extract them like that into the ~/.fonts directory, if if does not exists, create it.

% find .fonts
.fonts/fira-sans-bold-italic.otf
.fonts/fira-sans-bold.otf
.fonts/fira-sans-italic.otf
.fonts/fira-sans-regular.otf
.fonts/ubuntu-mono-bold-italic.ttf
.fonts/ubuntu-mono-bold.ttf
.fonts/ubuntu-mono-italic.ttf
.fonts/ubuntu-mono-regular.ttf

To make sure that Openbox will ‘see’ them you can verify it using the fc-match(1) command like below.

% fc-match 'Fira Sans'
fira-sans-regular.otf: "Fira Sans" "Regular"

% fc-match 'Ubuntu Mono'
ubuntu-mono-regular.ttf: "Ubuntu Mono" "Regular"

Openbox

Openbox consists mostly of two files.

  • ~/.config/openbox/menu.xml
  • ~/.config/openbox/rc.xml

There are also these two, but its pointless to use them as we set our environment and start our apps/daemons in the ~/.xinitrc file (with ~/.xsession symlink to it), but anyway.

  • ~/.config/openbox/autostart
  • ~/.config/openbox/environment

The icons for the Openbox menu are kept under ~/.config/openbox/icons directory.

Download whole Openbox configuration in the openbox.tar.gz file and unpack it into the ~/.config/openbox to make it look like that.

% find .config/openbox -maxdepth 1
.config/openbox
.config/openbox/rc.xml
.config/openbox/menu.xml
.config/openbox/icons
.config/openbox/environment
.config/openbox/autostart

Openbox Theme

The theme we will use at start is the Openbox Flat made by myself, I do not remember if I put it online on the https://www.box-look.org/ site but that does not matter. Grab it in the openbox-flat-theme.tar.gz file and unpack it like that into the ~/.themes directory, create it if it does not exists.

% find .themes/openbox_flat
.themes/openbox_flat
.themes/openbox_flat/openbox-3
.themes/openbox_flat/openbox-3/iconify.xbm
.themes/openbox_flat/openbox-3/XPM
.themes/openbox_flat/openbox-3/XPM/over.xpm
.themes/openbox_flat/openbox-3/XPM/close.xpm
.themes/openbox_flat/openbox-3/XPM/max.xpm
.themes/openbox_flat/openbox-3/XPM/stick.0.xpm
.themes/openbox_flat/openbox-3/XPM/min.xpm
.themes/openbox_flat/openbox-3/XPM/shade.xpm
.themes/openbox_flat/openbox-3/XPM/stick.1.xpm
.themes/openbox_flat/openbox-3/max.xbm
.themes/openbox_flat/openbox-3/close.xbm
.themes/openbox_flat/openbox-3/bullet.xbm
.themes/openbox_flat/openbox-3/shade.xbm
.themes/openbox_flat/openbox-3/themerc
.themes/openbox_flat/openbox-3/desk.xbm
.themes/openbox_flat/openbox-3/desk_toggled.xbm

Openbox FreeBSD Submenus

The ‘systemOpenbox submenu is for FreeBSD top(1)/ps(1) commands and config files/logs.

openbox-system.jpg

The ‘soundOpenbox submenu is for FreeBSD default sound output selection.

openbox-sound.jpg

The ‘recentOpenbox submenu is for Recent files.

openbox-recent.jpg

Check ‘screenshot:‘ and ‘wallpaper:‘ in the ‘x11Openbox submenu for screenshots/wallpapers management.

Check ‘cpu:‘ in the ‘utilitiesOpenbox submenu for FreeBSD for CPU frequency scaling.

Check ‘NETWORK:‘ in the ‘daemonsOpenbox submenu for FreeBSD network management with network.sh script.

Shortcuts

Lets start with the most basic ones. [SUPER] is the so called Windows key.

Shortcuts – Virtual Desktops

  • [ALT] + [F1] – switch to 1st virtual desktop.
  • [ALT] + [F2] – switch to 2nd virtual desktop.
  • [ALT] + [F3] – switch to 3rd virtual desktop.
  • [ALT] + [F4] – switch to 4th virtual desktop.
  • [SHIFT] + [ALT] + [F1] – move current window to 1st virtual desktop.
  • [SHIFT] + [ALT] + [F2] – move current window to 2nd virtual desktop.
  • [SHIFT] + [ALT] + [F3] – move current window to 3rd virtual desktop.
  • [SHIFT] + [ALT] + [F4] – move current window to 4th virtual desktop.

Shortcuts – Menus

  • [SUPER] + [SPACE] – show Openbox root menu.
  • [SUPER] + [ALT] + [SPACE] – show Openbox window list menu.
  • [ALT] + [SPACE] – show current window options menu (client menu).

Shortcuts – Window Management

  • [ALT] + [TAB] – cycle windows focus forward.
  • [SHIFT] + [ALT] + [TAB] – cycle windows focus backward.
  • [CTRL] + [ALT] + [Q] – close current window.
  • [CTRL] + [ALT] + [F] – put current window info fullscreen.
  • [ALT] + [Up] – shade current window.
  • [ALT] + [Down] – minimize current window.
  • [ALT] + [ESC] – send current window below all other windows.

Shortcuts – Advanced Aero Snap

  • [SUPER] + [Up] – move window to half of the screen from top.
  • [SUPER] + [Down] – move window to half of the screen from bottom.
  • [SUPER] + [Left] – move window to half of the screen from left.
  • [SUPER] + [Right] – move window to half of the screen from right.
  • [SUPER] + [CTRL] + [Up] – move window to top-left part of the screen.
  • [SUPER] + [CTRL] + [Down] – move window to bottom-left part of the screen.
  • [SUPER] + [ALT] + [Up] – move window to top-right part of the screen.
  • [SUPER] + [ALT] + [Down] – move window to bottom-right part of the screen.
  • [SUPER] + [ESC] – move window to center – but without fullscreen.

Shortcuts – Mouse

  • [Scroll Up] on Desktop – previous virtual desktop.
  • [Scroll Down] on Desktop – next virtual desktop.
  • [Scroll Up] on (unshaded) Window Titlebar – shade current window.
  • [Scroll Up] on (shaded) Window Titlebar – unshade current window.
  • [Middle Click] on Window Titlebar – send window to background.
  • [Right Click] on Window Titlebar – show window options menu (client menu).
  • [Left Click] on Window Titlebar Icon – show window options menu (client menu).
  • [Middle Click] on Window Titlebar Icon – close window.

Shortcuts – Various

  • [CTRL] + [SHIFT] + [ESC] – launch xterm(1) with htop(1) started with doas(1) for root provilages.
  • [SUPER] + [E] – start Explorer Caja primary file manager.
  • [SUPER] + [E] – start Thunar secondary file manager.
  • [SUPER] + [D] – show desktop – minimize all windows.
  • [SUPER] + [R] – launch dmenu(1) starter.
  • [SUPER] + [L] – lock the screen.
  • [ALT] + [SHIFT] + [SUPER] + [L] – lock the screen and go to sleep.
  • [CTRL] + [PrintScreen] – make screenshot of the whole screen.
  • [SHIFT] + [CTRL] + [PrintScreen] – make screenshot of current window (click without moving the mouse) or selection (select part of the screen).

Shortcuts – Volume

These two work from keyboard.

  • [SUPER] + [ALT] + [PageUp] – increase volume.
  • [SUPER] + [ALT] + [PageDown] – decrease volume.

These below with mouse.

For those who do not have mouse with buttons on the wheel like the Lenovo ThinkPad Precision Wireless Mouse (0B47163) for example, use [ALT] key with mouse scroll up/scroll down on the desktop to increase/decrease volume.

If you do have such mouse, then left on the wheel to decrease and right on the wheel to increase volume.

Random Wallpaper

The random wallpaper handling is done with the ~/scripts/random_wallpaper.sh script. Be sure to put some images into the ~/gfx/wallpapers directory to make it work and to configure crontab(1) properly as shown earlier.

Random xterm(1) Theme

To have random xterm(1) theme on every startup you need three things, the ~/.Xdefaults default config file which is used by xterm(1), the ~/scripts/xterm.sh script and the ~/.config/Xdefaults directory with xterm(1) themes. I gathered all these themes all over the Internet, only the VERMADEN and VERMADEN-OLD themes are created by me.

I have expanded this topic a lot more here –Β FreeBSD Desktop – Part 25 – Configuration – Random Terminal Theme – in dedicated article.

Little preview of some of the included xterm(1) themes.

openbox-xterm.jpg

To make xterm(1) icon look better you will also need icons.tar.gz file download and extract with the end result looking as follows.

% find .icons
.icons/vermaden/xterm.xpm

Download and extract the xterm.tar.gz file to make its contents look like that.

% find ~/.config/Xdefaults 
.config/Xdefaults
.config/Xdefaults/themes
.config/Xdefaults/themes/Xdefaults.theme.DARK.N0TCH2K
.config/Xdefaults/themes/Xdefaults.theme.DARK.MOLOKAI
.config/Xdefaults/themes/Xdefaults.theme.DARK.FRONTEND-DELIGHT
.config/Xdefaults/themes/Xdefaults.theme.DARK.GRUVBOX-DARK
.config/Xdefaults/themes/Xdefaults.theme.DARK.TWILIGHT
.config/Xdefaults/themes/Xdefaults.theme.DARK.MONOKAI-SODA
.config/Xdefaults/themes/Xdefaults.theme.DARK.IC-GREEN-PPL
.config/Xdefaults/themes/Xdefaults.theme.DARK.GRUVBOX-TILIX
.config/Xdefaults/themes/Xdefaults.theme.DARK.NEOPOLITAN
.config/Xdefaults/themes/Xdefaults.theme.DARK.LOVELACE
.config/Xdefaults/themes/Xdefaults.theme.DARK.ARTHUR
.config/Xdefaults/themes/Xdefaults.theme.DARK.VERMADEN
.config/Xdefaults/themes/Xdefaults.theme.DARK.3024NIGHT
.config/Xdefaults/themes/Xdefaults.theme.DARK.SOLARIZED
.config/Xdefaults/themes/Xdefaults.theme.DARK.NORD
.config/Xdefaults/themes/Xdefaults.theme.DARK.VERMADEN-OLD
.config/Xdefaults/themes/Xdefaults.theme.DARK.HIGHWAY
.config/Xdefaults/themes/Xdefaults.theme.DARK.HARPER
.config/Xdefaults/themes/Xdefaults.theme.DARK.FLATUI
.config/Xdefaults/themes/Xdefaults.theme.DARK.SPACEDUST
.config/Xdefaults/themes/Xdefaults.theme.DARK.EARTHSONG
.config/Xdefaults/themes/Xdefaults.theme.DARK.PALI
.config/Xdefaults/themes/Xdefaults.theme.DARK.ALIENBLOOD
.config/Xdefaults/themes/Xdefaults.theme.DARK.ELIC
.config/Xdefaults/themes/Xdefaults.theme.LIGHT.SOLARIZED-LIGHT
.config/Xdefaults/themes/Xdefaults.theme.DARK.ELEMENTARY
.config/Xdefaults/themes/Xdefaults.theme.DARK.ELEMENTAL
.config/Xdefaults/themes/Xdefaults.theme.DARK.FREYA

Thats a lot of information for one article, feel free to ask me for anything related or about things that I might forgot to put here.

UPDATE 1 – network.sh Integration

In other article I described how to manage various network sources with the network.sh script – FreeBSD Network Management with network.sh Script – available here.

Below is an example of integration of that network.sh script with Openbox window manager.

network.sh.openbox.menu.jpg

… and here is the code used in the ~/.config/openbox/menu.xml file.

network.sh.openbox.menu.code

Of course you can integrate network.sh script with almost anything – its just a command πŸ™‚

EOF

45 thoughts on “FreeBSD Desktop – Part 12 – Configuration – Openbox

  1. Pingback: FreeBSD Desktop – Part 13 – Configuration – Dzen2 | vermaden

  2. Pingback: In Other BSDs for 2018/07/07 – DragonFly BSD Digest

  3. Pingback: FreeBSD Desktop – Part 14 – Configuration – Tint2 | vermaden

  4. Pingback: FreeBSD desktop (12) | 0ddn1x: tricks with *nix

  5. Pingback: FreeBSD Desktop – Part 11 – Key Components – Blue Light Spectrum Suppress | vermaden

  6. Pingback: FreeBSD Desktop – Part 10 – Key Components – Locking Solution | vermaden

  7. Pingback: FreeBSD Desktop – Part 9 – Key Components – Keyboard/Mouse Shortcuts | vermaden

  8. Pingback: FreeBSD Desktop – Part 7 – Key Components – Wallpaper Handling | vermaden

  9. Pingback: FreeBSD Desktop – Part 8 – Key Components – Application Launcher | vermaden

  10. Pingback: FreeBSD Desktop – Part 5 – Key Components – Status Bar | vermaden

  11. Pingback: FreeBSD Desktop – Part 15 – Configuration – Fonts & Frameworks | vermaden

  12. Pingback: FreeBSD Desktop – Part 1 – Simplified Boot | vermaden

  13. Pingback: FreeBSD Desktop – Part 2 – Install | vermaden

  14. Pingback: FreeBSD Desktop – Part 3 – X11 Window System | vermaden

  15. Pingback: FreeBSD Desktop – Part 6 – Key Components – Task Bar | vermaden

  16. Pingback: FreeBSD Desktop – Part 4 – Key Components – Window Manager | vermaden

  17. Pingback: FreeBSD Desktop – Part 16 – Configuration – Pause Any Application | vermaden

  18. Pingback: FreeBSD Desktop – Part 17 – Automount Removable Media | πŸ†…πŸ…΄πŸ†πŸ„ΌπŸ„°πŸ„³πŸ…”πŸ…

      1. vermaden Post author

        Jak sie chce miec wszystko tak jak sie chce to niestety troche czasu to zajmuje πŸ™‚

        Mozesz leciec na default i nie tracic czasu na configi ale sie wkurzac ze cos nie jest tak jak chcesz albo poswiecic czas i poustawiac wszystko, ale to trwa …

        Tak zle i tak zle πŸ™‚

        Like

  19. Pingback: FreeBSD Desktop – Part 2.1 – Install FreeBSD 12 | πšŸπšŽπš›πš–πšŠπšπšŽπš—

  20. Th33xil3

    Hey great tutorialπŸ‘First of.

    As i start x it doesnt start any scripts and only see the standard openbox.. in the pipemenu i can see the programs that i installed but no nice menu.

    Like

    Reply
  21. th33xil3

    okay i’m really new to freebsd so please help me out..

    the .xinitrc is
    #PATH TO SCRIPTS
    export PATH=${PATH}:~/scripts

    # SET PROPER locale(l) with LC_ALL VARIABLE.
    export LC_ALL=en_US.UTF-8

    # PRESTARTED APPS
    xterm &
    xsetroot -solid black &
    ~/scripts__openbox_restart_dzen2.sh &
    # WINDOW MANAGER
    openbox

    Also i can only start the windows manager with command x not by the xdd login manager

    Like

    Reply
    1. vermaden Post author

      The ~/.xinitrc file is parsed by xinit/startx commands, it is not touched by XDM.

      To make it work create this symlink:
      % ln -s ~/.xinitrc ~/.xsession

      This way the ~/.xsession will point to the ~/.xinitrc file which should make XDM work.

      Like

      Reply
  22. Th33xil3

    I did the symlink with
    % ln -s ~/.xinitrc ~/.xsession

    The file is in my /usr/home/username/.xinitrc and ./xsession,symlink also

    And script are also in home directory

    Like

    Reply
  23. Pingback: FreeBSD Desktop – Part 18 – Global Dashboard | πšŸπšŽπš›πš–πšŠπšπšŽπš—

  24. Pingback: FreeBSD Network Management with network.sh Script | πšŸπšŽπš›πš–πšŠπšπšŽπš—

  25. Byron

    Thank you very much for the openbox tutorial. I’m not sure how relevant this is, some of the listed packages can not be found via %pkg search: gfontview, qtconfig, recorder.

    Like

    Reply
    1. vermaden Post author

      Sorry for late response but I was out of town.

      … about ‘missing’ packages … the tutorial is more then on year old so some packages could have been removed or renamed. I will update the article to do not contain packages that do not exists.

      Regards.

      Like

      Reply
  26. vermaden Post author

    Yes, that is missing, sorry.

    Here is line for doas(1) config:

      permit nopass :operator as root cmd /home/vermaden/scripts/__openbox_cpufreq_dynamic.sh
    

    … and for sudo(8) is here:

      %operator ALL = NOPASSWD: /home/vermaden/scripts/__openbox_cpufreq_dynamic.sh *
    

    Change /home/vermaden to Your home directory.

    … assuming you are in the operator group.

    Like

    Reply
  27. paul

    Hi vermaden,
    i am trying to use your aero-snap script on my cwm setup but with no luck. Can you give me some hints to get the script working? I am new to bash…

    Like

    Reply
  28. Pingback: FreeBSD Desktop – Part 25 – Configuration – Random Terminal Theme | πšŸπšŽπš›πš–πšŠπšπšŽπš—

  29. Sam

    Thanks to the endless inspiration of Your Posts, I started using Openbox, but… I am still writing this from KDE (on FreeBSD 13.1). The reason is, I cannot properly manage my HiDPI screen, whose native pixel density is 140dpi.

    I have these settings in my ~/.xinitrc:

    export QT_AUTO_SCREEN_SCALE_FACTOR=0
    export QT_SCALE_FACTOR=1.5
    export QT_QPA_PLATFORMTHEME=qt5ct
    export QT_FONT_DPI=144
    
    xrandr --dpi 144
    
    exec openbox-session
    

    All looks fine, but the window decorations (like the top bar, scroll bar, buttons, etc) looks tiny, like the settings above were not “understood” by Openbox in doing for windows decorations .

    I tried everything, to no avail. Is there a place where I can learn more, on how to fix this “glitch” in my configuration?

    Like

    Reply
    1. vermaden Post author

      Hi,

      I do not (yet) have a HiDPI screen so I did not dig this topic too much.

      I am quite busy this week so for now I will just sent you the most valuable links I have found:

      https://morfikov.github.io/post/zmiana-dpi-w-openbox-xorg-dla-monitora-hidpi/ (Google Translator)
      https://thebadsleep.excus.eu/2022/05/16/openbox-hidpi-displays-and-scaling/
      https://bbs.archlinux.org/viewtopic.php?id=177660

      Let me know how it went with info from these and if it did not helped – please ping me next week.

      Regards,
      vermaden

      Like

      Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s