Swaywm on Pinebook Pro
#1
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.


Messages In This Thread
Swaywm on Pinebook Pro - by anjanmomi - 11-14-2019, 03:52 AM
RE: Swaywm on Pinebook Pro - by kaylios - 11-14-2019, 02:24 PM
RE: Swaywm on Pinebook Pro - by stamper - 12-09-2019, 04:03 PM
RE: Swaywm on Pinebook Pro - by anjanmomi - 12-09-2019, 04:10 PM
RE: Swaywm on Pinebook Pro - by abdel - 12-11-2019, 01:25 AM
RE: Swaywm on Pinebook Pro - by lispy - 12-10-2019, 03:13 AM
RE: Swaywm on Pinebook Pro - by tophneal - 12-17-2019, 07:49 AM
RE: Swaywm on Pinebook Pro - by Thra11 - 12-16-2019, 04:05 PM
RE: Swaywm on Pinebook Pro - by xmixahlx - 01-28-2020, 02:38 PM
RE: Swaywm on Pinebook Pro - by xmixahlx - 01-29-2020, 10:11 PM
RE: Swaywm on Pinebook Pro - by xmixahlx - 02-06-2020, 11:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinebook Pro Recovery with Void Linux (xbps) bds 0 525 01-14-2024, 10:21 PM
Last Post: bds
  Write SD cards with Etcher for Pinebook Pro futurejones 17 29,842 03-19-2021, 12:52 AM
Last Post: Alex007
  [GUIDE] ArchLinuxARM on Pinebook Pro hku2 10 19,440 12-25-2020, 05:44 AM
Last Post: boteium
  Program SPI NOR Flash on Pinebook Pro with u-boot on micro SD Card hmuller 0 3,444 09-21-2020, 10:02 AM
Last Post: hmuller
  Installing Docker on Pinebook Pro - update 1/18/20 SuperXkoodA 4 7,582 03-24-2020, 03:19 PM
Last Post: chaoskampf
  Quick Guide to installing Ubuntu Unity on your Pinebook Pro andybleaden@gmail.com 19 23,446 02-03-2020, 11:17 AM
Last Post: MIchael
  Installing Wine i386 on Pinebook Pro wrzomar 0 3,257 01-31-2020, 03:52 PM
Last Post: wrzomar
  Hardening your Pinebook Pro software Arwen 4 7,440 12-11-2019, 09:53 AM
Last Post: hdk

Forum Jump:


Users browsing this thread: 1 Guest(s)