11-14-2019, 03:52 AM
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
my status command for my bar is:
skybar.sh contains the following lines to display the time and battery. You can extend this with your own needs.
Feel free to post these on the wiki.
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.
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.