PINE64
Swaywm on Pinebook Pro - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Pinebook Pro Tutorials (https://forum.pine64.org/forumdisplay.php?fid=117)
+--- Thread: Swaywm on Pinebook Pro (/showthread.php?tid=8321)

Pages: 1 2


Swaywm on Pinebook Pro - anjanmomi - 11-14-2019

I love swaywm and Im happy to report it runs great on the pinebook pro. Here are some things you can throw in your config for sway in order to get started quickly on the pinebook pro.

Please note: I am using the default Manjaro Preview Build 2

Code:
# setup brightness keys. Make sure you install light package from repo
bindsym XF86MonBrightnessUp exec --no-startup-id light -A 10
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 10

# set volume keys
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 1 +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 1 -5%
bindsym XF86AudioMute exec pactl set-sink-mute 1 toggle

# set keymap for iso keyboard on pinebook pro
input "9610:30:HAILUCK_CO.,LTD_USB_KEYBOARD_System_Control" xkb_model "pc105"
input * xkb_layout "mt(alt-gb)"

# set a cool wallpaper
output "*" bg /home/anjan/Pictures/Wallpapers/1446877031070.jpg fill

# when you press the screenshot function key, make a cursor appear asking you to select region for screenshot
# saves screenshot to /tmp/screenshot.png and copies to clipboard
# make sure you have installed grim, slurp, and wl-clipboard
bindsym Print exec grim -g "$(slurp)" - | tee /tmp/screenshot.png | wl-copy


# place the following line at the end of .config/sway/config
# if you have parts of your config specific to a specific host,
# you can make a file called .config/sway/`hostname` and sway
# will only run those lines when the host name matches
# the file's name. Makes version control easy.
include ~/.config/sway/`hostname`

my status command for my bar is:
Code:
  status_command sh ~/.config/sway/skybar.sh

skybar.sh contains the following lines to display the time and battery. You can extend this with your own needs. Smile
Code:
#!/usr/bin/sh

while
   { cat /sys/class/power_supply/rk-bat/capacity; echo "% "; date +'%Y-%m-%d %l:%M:%S %p'; } | tr "\n" " ";
do sleep 1;
done

Feel free to post these on the wiki.


RE: Swaywm on Pinebook Pro - kaylios - 11-14-2019

thanks
I m also a huge fan of sway.
I didn't put it yet on my PBP (will do it soon, but I have first to switch to Manjaro


RE: Swaywm on Pinebook Pro - stamper - 12-09-2019

I have no experience with Wayland & Sway, but have gotten Bemenu, Termite, and Firefox to work.
Unfortunately, I'm unsure about how to connect to wifi networks and am assuming that the KDE network manager doesn't run on Wayland.

Does anyone know a way to do this?

(Do you have to disable the kde network services and install something like wicd? If so what exactly needs to be done.)

Thank you


RE: Swaywm on Pinebook Pro - anjanmomi - 12-09-2019

(12-09-2019, 04:03 PM)stamper Wrote: I have no experience with Wayland & Sway, but have gotten Bemenu, Termite, and Firefox to work.
Unfortunately, I'm unsure about how to connect to wifi networks and am assuming that the KDE network manager doesn't run on Wayland.

Does anyone know a way to do this?

(Do you have to disable the kde network services and install something like wicd? If so what exactly needs to be done.)

Thank you
I usually use:
https://github.com/firecat53/networkmanager-dmenu

or switch to xfce interface, change wifi settings and change back to sway.


RE: Swaywm on Pinebook Pro - lispy - 12-10-2019

Thanks. This is really useful. But for me it doesn't work. What packages except light do I need to install?

Also, did anyone get some sort of screen temperature tool (e.g. Redshift) working for wayland?


RE: Swaywm on Pinebook Pro - abdel - 12-11-2019

(12-09-2019, 04:03 PM)stamper Wrote: I have no experience with Wayland & Sway, but have gotten Bemenu, Termite, and Firefox to work.
Unfortunately, I'm unsure about how to connect to wifi networks and am assuming that the KDE network manager doesn't run on Wayland.

Does anyone know a way to do this?

(Do you have to disable the kde network services and install something like wicd? If so what exactly needs to be done.)

Thank you

For now, as work around, I use this script:
> cat ~/bin/nmgui 
#!/bin/sh
nm-applet    2>&1 > /dev/null &
stalonetray  2>&1 > /dev/null
killall nm-applet


RE: Swaywm on Pinebook Pro - Thra11 - 12-16-2019

(12-09-2019, 04:03 PM)stamper Wrote: Unfortunately, I'm unsure about how to connect to wifi networks and am assuming that the KDE network manager doesn't run on Wayland.
I believe KDE network manager should run just fine on wayland. If not, it will still run on XWayland if it has to.

Does anyone know how to get the power button on the keyboard to show a confirmation dialog or similar with swaywm? When running KDE or other desktops, pressing it shows a dialog with options to logout/sleep/shutdown. With my current swaywm config, it immediately turns the laptop off.


RE: Swaywm on Pinebook Pro - tophneal - 12-17-2019

(12-10-2019, 03:13 AM)lispy Wrote: Also, did anyone get some sort of screen temperature tool (e.g. Redshift) working for wayland?

The Swaywm wiki advises using this package from the AUR.


RE: Swaywm on Pinebook Pro - xmixahlx - 01-28-2020

fancy finding this thread! i use sway and companion packages from git on debian sid arm64 as my main. with the latest panfrost driver from mesa-git this works perfectly.

helping to improve sway are the keyboard update, adding the function keys to the config (stolen from ARCH wiki entry), removing swaybar, adding waybar, using termit as xterm, uncommenting swayidle block, and launching waybar, termit, blueman-applet, nm-applet --indicator, and chromium at startup with exec.

thanks for you script and ideas.


RE: Swaywm on Pinebook Pro - xmixahlx - 01-29-2020

@abdel @lispy see my nm-applet comment ^