1
0
forked from brl/citadel

Added recipes-sway for the Sway WM session.

This commit is contained in:
David McKinney 2018-03-11 16:57:48 -04:00
parent 1e7f143a63
commit 6185f752a7
9 changed files with 551 additions and 1 deletions

View File

@ -16,7 +16,8 @@ RDEPENDS_${PN} = "\
caribou \
networkmanager \
network-manager-applet \
clutter-1.0 \
networkmanager-nmtui \
clutter-1.0 \
gnome-desktop \
gnome-bluetooth \
gnome-control-center \
@ -81,4 +82,10 @@ RDEPENDS_${PN} = "\
citadel-rootfs \
citadel-appimg \
iproute2 \
sgmenu \
sgstatus \
wlc \
sway \
xcb-util-xrm \
rofi \
"

View File

@ -0,0 +1,18 @@
# Recipe created by recipetool
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=e326af0896de95c64d15bde1a2704cd1"
SRC_URI = "https://github.com/DaveDavenport/rofi/releases/download/${PV}/rofi-${PV}.tar.gz"
SRC_URI[md5sum] = "a60fa45011dc2803533ba7a5dca4c5b6"
SRC_URI[sha256sum] = "541de71ffe115951aeb3abe732c99d579f7a8711908e2768accf58e030470640"
DEPENDS = "cairo pango libcheck librsvg flex-native startup-notification bison-native glib-2.0-native libxkbcommon xcb-util xcb-util-wm xcb-util-image xcb-util-xrm"
# NOTE: if this software is not capable of being built in a separate build directory
# from the source, you should replace autotools with autotools-brokensep in the
# inherit line
inherit pkgconfig autotools
# Specify any options you want to pass to the configure script using EXTRA_OECONF:
EXTRA_OECONF += "--enable-drun"

View File

@ -0,0 +1,89 @@
# Auto-Generated by cargo-bitbake 0.3.10
#
inherit cargo
# If this is git based prefer versioned ones if they exist
# DEFAULT_PREFERENCE = "-1"
# how to get sgmenu could be as easy as but default to a git checkout:
# SRC_URI += "crate://crates.io/sgmenu/0.1.0"
SRC_URI += "git://github.com/subgraph/sgmenu;protocol=https"
SRCREV = "67b2105944771207b8735305bed9226136711467"
S = "${WORKDIR}/git"
CARGO_SRC_DIR=""
PV_append = ".AUTOINC+67b2105944"
# please note if you have entries that do not begin with crate://
# you must change them to how that package can be fetched
SRC_URI += " \
crate://crates.io/aho-corasick/0.6.4 \
crate://crates.io/atty/0.2.8 \
crate://crates.io/bitflags/1.0.1 \
crate://crates.io/c_vec/1.2.1 \
crate://crates.io/cairo-rs/0.3.0 \
crate://crates.io/cairo-sys-rs/0.5.0 \
crate://crates.io/cfg-if/0.1.2 \
crate://crates.io/env_logger/0.5.5 \
crate://crates.io/errno/0.1.8 \
crate://crates.io/gdk-pixbuf-sys/0.5.0 \
crate://crates.io/gdk-pixbuf/0.3.0 \
crate://crates.io/gdk-sys/0.5.0 \
crate://crates.io/gdk/0.7.0 \
crate://crates.io/getopts/0.2.17 \
crate://crates.io/gio-sys/0.5.0 \
crate://crates.io/gio/0.3.0 \
crate://crates.io/glib-sys/0.5.0 \
crate://crates.io/glib/0.4.1 \
crate://crates.io/gobject-sys/0.5.0 \
crate://crates.io/humantime/1.1.1 \
crate://crates.io/kernel32-sys/0.2.2 \
crate://crates.io/lazy_static/1.0.0 \
crate://crates.io/libc/0.2.36 \
crate://crates.io/log/0.4.1 \
crate://crates.io/memchr/2.0.1 \
crate://crates.io/pango-sys/0.5.0 \
crate://crates.io/pango/0.3.0 \
crate://crates.io/pkg-config/0.3.9 \
crate://crates.io/pty/0.2.2 \
crate://crates.io/quick-error/1.2.1 \
crate://crates.io/redox_syscall/0.1.37 \
crate://crates.io/redox_termios/0.1.1 \
crate://crates.io/regex-syntax/0.5.0 \
crate://crates.io/regex/0.2.7 \
crate://crates.io/termcolor/0.3.5 \
crate://crates.io/termion/1.5.1 \
crate://crates.io/thread_local/0.3.5 \
crate://crates.io/ucd-util/0.1.1 \
crate://crates.io/unreachable/1.0.0 \
crate://crates.io/utf8-ranges/1.0.0 \
crate://crates.io/void/1.0.2 \
crate://crates.io/winapi-build/0.1.1 \
crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi/0.2.8 \
crate://crates.io/winapi/0.3.4 \
crate://crates.io/wincolor/0.1.6 \
"
LIC_FILES_CHKSUM=" \
"
SUMMARY = "sgmenu"
HOMEPAGE = "https://github.com/subgraph/sgmenu"
LICENSE = "CLOSED"
DEPENDS += " glib-2.0-native cairo pango gdk-pixbuf gtk+3"
do_install() {
install -d ${D}${bindir}
install -m 755 ${B}/target/${CARGO_TARGET_SUBDIR}/sgmenu ${D}${bindir}
}
# includes this file if it exists but does not fail
# this is useful for anything you may want to override from
# what cargo-bitbake generates.
include sgmenu-${PV}.inc
include sgmenu.inc

View File

@ -0,0 +1,96 @@
# Auto-Generated by cargo-bitbake 0.3.10
#
inherit cargo
# If this is git based prefer versioned ones if they exist
# DEFAULT_PREFERENCE = "-1"
# how to get sgstatus could be as easy as but default to a git checkout:
# SRC_URI += "crate://crates.io/sgstatus/0.1.0"
SRC_URI += "git://github.com/subgraph/sgstatus;protocol=https"
SRCREV = "e166f472f58dbbe615e7d83032fadaf00a4b71be"
S = "${WORKDIR}/git"
CARGO_SRC_DIR=""
PV_append = ".AUTOINC+e166f472f5"
# please note if you have entries that do not begin with crate://
# you must change them to how that package can be fetched
SRC_URI += " \
crate://crates.io/aho-corasick/0.6.4 \
crate://crates.io/atty/0.2.6 \
crate://crates.io/bitflags/1.0.1 \
crate://crates.io/byteorder/1.2.1 \
crate://crates.io/bytes/0.4.6 \
crate://crates.io/cfg-if/0.1.2 \
crate://crates.io/dbus-tokio/0.2.1 \
crate://crates.io/dbus/0.6.1 \
crate://crates.io/env_logger/0.5.4 \
crate://crates.io/error-chain/0.10.0 \
crate://crates.io/fuchsia-zircon-sys/0.3.3 \
crate://crates.io/fuchsia-zircon/0.3.3 \
crate://crates.io/futures/0.1.18 \
crate://crates.io/humantime/1.1.1 \
crate://crates.io/iovec/0.1.2 \
crate://crates.io/kernel32-sys/0.2.2 \
crate://crates.io/lazy_static/1.0.0 \
crate://crates.io/lazycell/0.6.0 \
crate://crates.io/libc/0.2.37 \
crate://crates.io/libdbus-sys/0.1.2 \
crate://crates.io/libpulse-binding/1.0.3 \
crate://crates.io/libpulse-sys/1.0.2 \
crate://crates.io/log/0.3.9 \
crate://crates.io/log/0.4.1 \
crate://crates.io/memchr/2.0.1 \
crate://crates.io/metadeps/1.1.2 \
crate://crates.io/mio/0.6.13 \
crate://crates.io/miow/0.2.1 \
crate://crates.io/net2/0.2.32 \
crate://crates.io/pkg-config/0.3.9 \
crate://crates.io/quick-error/1.2.1 \
crate://crates.io/redox_syscall/0.1.37 \
crate://crates.io/redox_termios/0.1.1 \
crate://crates.io/regex-syntax/0.4.2 \
crate://crates.io/regex/0.2.6 \
crate://crates.io/scoped-tls/0.1.0 \
crate://crates.io/slab/0.3.0 \
crate://crates.io/slab/0.4.0 \
crate://crates.io/termcolor/0.3.5 \
crate://crates.io/termion/1.5.1 \
crate://crates.io/thread_local/0.3.5 \
crate://crates.io/tokio-core/0.1.12 \
crate://crates.io/tokio-io/0.1.5 \
crate://crates.io/tokio-timer/0.1.2 \
crate://crates.io/toml/0.2.1 \
crate://crates.io/unreachable/1.0.0 \
crate://crates.io/utf8-ranges/1.0.0 \
crate://crates.io/void/1.0.2 \
crate://crates.io/winapi-build/0.1.1 \
crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
crate://crates.io/winapi/0.2.8 \
crate://crates.io/winapi/0.3.4 \
crate://crates.io/wincolor/0.1.6 \
crate://crates.io/ws2_32-sys/0.2.1 \
"
LIC_FILES_CHKSUM=" \
"
SUMMARY = "sgstatus"
HOMEPAGE = "https://github.com/subgraph/sgstatus"
LICENSE = "CLOSED"
DEPENDS += " dbus pulseaudio"
do_install() {
install -d ${D}${libexecdir}
install -m 755 ${B}/target/${CARGO_TARGET_SUBDIR}/sgstatus ${D}${libexecdir}
}
# includes this file if it exists but does not fail
# this is useful for anything you may want to override from
# what cargo-bitbake generates.
include sgstatus-${PV}.inc
include sgstatus.inc

View File

@ -0,0 +1,248 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator - script command to appease pty requirement of machinectl
set $term /usr/bin/sgmenu -c '/run/appimg/run-in-image gnome-terminal'
set $citadelterm gnome-terminal
set $filemanager /usr/bin/sgmenu -c '/run/appimg/run-in-image nautilus'
set $lockscreen swaylock --scaling fill -i /usr/share/backgrounds/gnome/Dark_Ivy.jpg
# Your preferred application launcher
set $menu /usr/bin/sgmenu -d
### Output configuration
#
# Default wallpaper
output * bg /usr/share/backgrounds/gnome/Waterfalls.jpg fill
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Input configuration
#
# Example configuration:
#
# input "2:14:SynPS/2_Synaptics_TouchPad" {
# dwt enabled
# tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Basics:
#
# start a terminal
bindsym $mod+Return exec $term
bindsym $mod+Shift+Return exec $citadelterm
# start file manager
bindsym $mod+n exec $filemanager
# kill focused window
bindsym $mod+Shift+q kill
# start your launcher
bindsym $mod+d exec $menu
bindsym $mod+Shift+d exec $sgmenu
# lock screen
bindsym $mod+9 exec $lockscreen
# volume
bindsym X86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym X86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym X86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# reload the configuration file
bindsym $mod+Shift+c reload
# exit sway (logs you out of your wayland session)
bindsym $mod+Shift+e exit
#
# Moving around:
#
# Move your focus around
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# _move_ the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-8 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
bindsym $mod+b splith
bindsym $mod+v splitv
# Switch the current container between different layout styles
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle
# move focus to the parent container
bindsym $mod+a focus parent
#
# Rules:
#
for_window [class="Rofi"] floating enable
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $left resize shrink width 10 px or 10 ppt
bindsym $down resize grow height 10 px or 10 ppt
bindsym $up resize shrink height 10 px or 10 ppt
bindsym $right resize grow width 10 px or 10 ppt
# ditto, with arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
#
# Borders:
#
default_border pixel 1
default_floating_boarder normal
#
# Gaps:
#
gaps inner 10
gaps outer 4
smart_gaps on
#
# Startup Commands:
#
systemctl --user restart pulseaudio.service
exec /usr/bin/start-pulseaudio-x11
exec /usr/libexec/gsd-power
exec /usr/libexec/gsd-sound
exec /usr/libexec/gsd-xsettings
#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
position bottom
colors {
statusline #ffffff
background #00000000
inactive_workspace #32323200 #32323200 #5c5c5c
}
status_command /usr/libexec/sgstatus
icon_theme Paper
}
include /etc/sway/config.d/*

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=Sway
Comment=SirCmpwn's Wayland window manager
Exec=sway
TryExec=sway
Type=Application

View File

@ -0,0 +1,32 @@
# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional.
# (Feel free to remove these comments when editing.)
# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is
# your responsibility to verify that the values are complete and correct.
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=dfc67e5b1fa10ebb4b70eb0c0ca67bea"
SRC_URI = "https://github.com/swaywm/sway/archive/${PV}.tar.gz \
file://config \
"
SRC_URI[md5sum] = "ea770561a77ad3d6138f44673d491250"
SRC_URI[sha256sum] = "b4305581587b1072f5cb61387230aaf731ea9ea0d01fdf198856a757e2195149"
DEPENDS = "dbus cairo pango wlc libinput libxkbcommon wayland wayland-native libpam libcap json-c libpcre gdk-pixbuf"
inherit cmake
FILES_${PN} += "\
${datadir}/wayland-sessions/sway.desktop \
"
do_install_append() {
rm ${D}${sysconfdir}/sway/config
install -m 644 ${WORKDIR}/config ${D}${sysconfdir}/sway/config
}
# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
EXTRA_OECMAKE += "-Ddefault-wallpaper=no -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_SYSCONFDIR=/etc"

View File

@ -0,0 +1,39 @@
# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional.
# (Feel free to remove these comments when editing.)
# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is
# your responsibility to verify that the values are complete and correct.
#
# The following license files were not able to be identified and are
# represented as "Unknown" below, you will need to check them yourself:
# protos/wayland-protocols/COPYING
# lib/chck/LICENSE
#
# NOTE: multiple licenses have been detected; they have been separated with &
# in the LICENSE value for now since it is a reasonable assumption that all
# of the licenses apply. If instead there is a choice between the multiple
# licenses then you should change the value to separate the licenses with |
# instead of &. If there is any doubt, check the accompanying documentation
# to determine which situation is applicable.
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0424d0715413cefdd4fbd497e682a87c \
file://protos/wayland-protocols/COPYING;md5=c7b12b6702da38ca028ace54aae3d484 \
file://lib/chck/LICENSE;md5=8a56f5f1791f1100ec6d74f74bd847ca"
SRC_URI = "gitsm://github.com/Cloudef/wlc"
# Modify these as desired
PV = "1.0+git${SRCPV}"
SRCREV = "6542c16652df147523245fc547d2a5ff4088a0cb"
S = "${WORKDIR}/git"
# NOTE: unable to map the following CMake package dependencies: LibInput Math Elogind GBM WaylandProtocols GLESv2 Pixman Systemd Wayland XKBCommon Udev
DEPENDS = "libx11 libdrm dbus libxcb xcb-util-wm xcb-util-image virtual/egl mesa wayland wayland-native libxkbcommon libinput systemd pixman"
inherit cmake
# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
EXTRA_OECMAKE = ""

View File

@ -0,0 +1,15 @@
# Recipe created by recipetool
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=f70a3617a33510362b75a127f401e607"
SRC_URI = "https://github.com/Airblader/xcb-util-xrm/releases/download/v${PV}/xcb-util-xrm-${PV}.tar.gz"
SRC_URI[md5sum] = "c9c63ac728d19eefbf2319f0dad4c127"
SRC_URI[sha256sum] = "c4a1d64d4a6973c649e3b6e3c418242f11e39c65d4d227d555d48f6df0558567"
DEPENDS = "libx11 xcb-util"
inherit pkgconfig autotools
# Specify any options you want to pass to the configure script using EXTRA_OECONF:
EXTRA_OECONF = ""