-credit to nedroid for strange art

  • 2 Posts
  • 9 Comments
Joined 2 years ago
cake
Cake day: June 10th, 2023

help-circle




  • As someone who hasn’t yet moved to Wayland, how good is support these days for alternate keyboard mappings? Is this something that each individual window manager needs to support, or does Wayland itself manage them?

    Not just “international keyboard” support, but truly arbitrary keyboard/symbol mapping support. I muddle in programming with APL, which needs its own key mapping with Unicode symbols.

    I recall KDE had its own mapping support which used some system APL layout but I’d rather not have key mappings tied to a specific window manager.



  • Arghblarg@lemmy.catoSelfhosted@lemmy.worldSelf host websites
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 month ago

    If you’re in Canada, Rogers (nee Shaw) and Telus small business plans both offer ‘static’ IPs (Shaw’s residential plans aren’t officially static, but they rarely change on a residential modem unless you are always switching out hardware). Telus business fibre 1GB plan offers up to 5 static IP addresses.

    Then you must purchase one or more domain names and assign them to your IP address… depending on your business’s needs even small consumer hardware can run a web server just fine.

    Have a backup strategy though! And be sure you actually test the restore procedure on a periodic basis!

    Linux backups can range from home-grown ‘rsync’ scripts and hot-plug external drives as backup, to more fancy ‘Time Machine’ like backup things (I honestly forget what’s out there for Linux right now, I have my own rsync scripts to back up to external drives).

    My home server is my own, but if money is on the line you want proper backup and failover even. Most Linux distributions are easy-peasy to set up with Apache or nginx web servers but if you’ve never set those up you’ll need to study lots of tutorials and manual pages.

    If you don’t want to tend to security and backups yourself though, it might be best to find a hosting service.



  • NEW METHOD which avoids the udev ‘event storm’ caused by docking/undocking the keyboard


    [/usr/local/bin/asusUX8406_kbdwatch]

    #!/bin/bash
    
    me=$(basename "$0")
    laststate=2
    
    while true; do
      sleep 3
      output=$(lsusb -d 0b05:1b2c)
      stat=$?
      if [ $stat == 1 ] && [ $laststate != 1 ]; then
        ## kbd removed, enable lower display
        laststate=1
        logger -p user.info "${me} KEYBOARD REMOVED"
        xrandr --auto && xrandr --output eDP-2 --below eDP-1
      elif [ $stat == 0 ] && [ $laststate != 0 ]; then
        ## kbd replaced, disable lower display
        laststate=0
        logger -p user.info "${me} KEYBOARD DOCKED"
        xrandr --output eDP-2 --off
      fi
    done
    

    Hook this up to your init system, or run from a nohup session redirected to /dev/null on login or session startup … for example, on my system I am member of group video, so installing it to /usr/local/bin and setting ownership to root:video and sudo chmod ug+rx allows it to be run on session login automatically.