How to rotate widgets in awesome window manager?

Hi! I would like to know how to rotate widgets in Awesome window manager. For example I've got a checkbox widget in the shape of an arrow pointing north. How do I change the direction?
I have tried https://awesomewm.org/apidoc/widget_containers/wibox.container.rotate.html. But I still can't figure out exactly how to type, because I still don't master the syntax. So please tell me exactly word by word how to type.

Thanks in advance!
anonymous1.

System:    Host: lars-pc Kernel: 4.19.69-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.1.0 Desktop: 
Awesome 4.3 
           Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: ASUSTeK model: P7P55D DELUXE v: Rev 1.xx serial: <filter> BIOS: American Megatrends v: 2003 
           date: 12/14/2010 
CPU:       Topology: Quad Core model: Intel Core i7 860 bits: 64 type: MT MCP arch: Nehalem rev: 5 L2 cache: 8192 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 44954 
           Speed: 1204 MHz min/max: 1200/2801 MHz Core speeds (MHz): 1: 1204 2: 1204 3: 1204 4: 1204 5: 1208 6: 1204 7: 1204 
           8: 1204 
Graphics:  Device-1: NVIDIA GK104 [GeForce GTX 670] vendor: Micro-Star MSI driver: nvidia v: 430.40 bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.5 driver: nvidia resolution: 1680x1050~60Hz 
           OpenGL: renderer: GeForce GTX 670/PCIe/SSE2 v: 4.6.0 NVIDIA 430.40 direct render: Yes 
Audio:     Device-1: Intel 5 Series/3400 Series High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 00:1b.0 
           Device-2: NVIDIA GK104 HDMI Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 01:00.1 
           Sound Server: ALSA v: k4.19.69-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK M4A785/P7P55 driver: r8168 
           v: 8.047.02-NAPI port: c800 bus ID: 02:00.0 
           IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
           Device-2: Realtek RTL-8110SC/8169SC Gigabit Ethernet vendor: ASUSTeK driver: N/A port: e800 bus ID: 07:04.0 
Drives:    Local Storage: total: 2.50 TiB used: 39.78 GiB (1.6%) 
           ID-1: /dev/sda vendor: Western Digital model: WD7500AADS-00M2B0 size: 698.64 GiB 
           ID-2: /dev/sdb vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB 
           ID-3: /dev/sdd vendor: Western Digital model: WD7501AALS-00J7B1 size: 698.64 GiB 
           ID-4: /dev/sde vendor: Western Digital model: WD10EZRZ-00HTKB0 size: 931.51 GiB 
Partition: ID-1: / size: 143.19 GiB used: 39.78 GiB (27.8%) fs: ext4 dev: /dev/sdb1 
           ID-2: swap-1 size: 8.80 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdb3 
Sensors:   System Temperatures: cpu: 38.0 C mobo: N/A gpu: nvidia temp: 33 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 30% 
Info:      Processes: 199 Uptime: 5h 48m Memory: 3.85 GiB used: 847.5 MiB (21.5%) Init: systemd Compilers: gcc: 9.1.0 
           Shell: bash v: 5.0.9 inxi: 3.0.36

Can you show us the code of that widget you want to rotate?

Here it is...

larscheckbox = wibox.widget {
    checked       = true,
    color         = '#00ff00',
    paddings      = 2,
    forced_width  = 24,
    shape         = gears.shape.arrow,
    widget        = wibox.widget.checkbox,
    }

Should be easiest to use the declarative syntax:

    larscheckbox = wibox.widget {
      {
        checked       = true,
        color         = '#00ff00',
        paddings      = 2,
        forced_width  = 24,
        shape         = gears.shape.arrow,
        widget        = wibox.widget.checkbox
      },
      direction='south',
      widget=wibox.container.rotate
    }

You can change direction to south,east,west,north

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by