1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2025-08-02 14:11:19 +02:00

add tofi + icons

This commit is contained in:
DanyLE
2023-07-27 12:40:46 +02:00
parent ff4f319acd
commit 991a5393d4
7 changed files with 446 additions and 13 deletions

View File

@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg fill="#5651a4" height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve" stroke="#5651a4">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>

After

Width:  |  Height:  |  Size: 1011 B

View File

@ -23,6 +23,54 @@ function("ToggleMaximize") {
[Maximized] UnMaximize
}
function("ShowDesktopSaveFocus") {
[Focused] UserState "2:on"
[!Focused] UserState "2:off"
}
function("ShowdesktopMinimize") {
[!Minimized] UserState "on"
[Minimized] UserState "off"
[!Minimized] Minimize
}
function("ShowDesktopRestore") {
[UserState] UnMinimize
}
function("ShowDesktopRestoreFocus") {
[UserState2] Focus
}
function("ShowDesktopCheckWindow") {
[!Minimized] UserState "target","2:on"
}
function("ShowDesktopReminimize")
{
[!Minimized] UserState "on"
[!Minimized] Minimize
}
function("ShowDesktopUnminimized") {
[UserState2 | Children] Function "ShowDesktopSaveFocus"
[UserState2 | Children] Function "ShowDesktopReminimize"
[!UserState2 | Children] Function "ShowDesktopRestore"
[!UserState2 | Children] Function "ShowDesktopRestoreFocus"
[!UserState2] UserState "off"
[UserState2] UserState "on"
}
function("ShowDesktop") {
[!UserState | Children] Function "ShowDesktopSaveFocus"
[!UserState | Children] Function "ShowDesktopMinimize"
[UserState] UserState "2:off"
[UserState| Children ] Function "ShowDesktopCheckWindow"
[UserState] Function "target","ShowDesktopUnminimized"
[!UserState] UserState "on"
}
menu("winops") {
item("focus", Focus );
item("close", Close );
@ -33,16 +81,30 @@ menu("winops") {
# Panel layout
layout {
button {
style = "launcher"
value = "/usr/share/icons/hicolor/scalable/apps/tofi.svg"
tooltip = "Quick menu"
action = Exec "bash -c \"`tofi-drun`\""
}
button {
value = "/usr/share/icons/hicolor/scalable/actions/show-desktop.svg"
style = "launcher"
tooltip = "Show Desktop"
action = Function "target", "ShowDesktop"
}
button {
style = "launcher"
value = $Term
tooltip = "Terminal"
action = Exec $Term
}
taskbar {
taskbar "target" {
rows = 1
css = "* { -GtkWidget-hexpand: false; }" # stretch horizontally
icons = true
group = false
sort = false
labels = true
action[3] = Menu "winops"
action[2] = Close
@ -55,14 +117,14 @@ layout {
#CSS
button#launcher, button#module{
padding: 0px 5px 0px 5px;
padding: 0px 2px 0px 2px;
background: none;
border-style:none;
box-shadow: none;
}
window {
-GtkWidget-direction: bottom;
-GtkWidget-direction: top;
background-color: rgba(0,0,0,0.6);
border-color: rgba(0,0,0,0.3);
}
@ -77,7 +139,7 @@ button#taskbar_normal grid {
margin-right: 0px;
}
button#taskbar_normal image, button#taskbar_active image, button#taskbar_normal:hover image {
button#launcher image, button#taskbar_normal image, button#taskbar_active image, button#taskbar_normal:hover image {
-GtkWidget-vexpand: true;
box-shadow: none;
border: none;
@ -103,21 +165,23 @@ button#taskbar_normal , button#taskbar_active , button#taskbar_normal:hover {
padding-top: 0.5mm;
padding-bottom: 0.5mm;
background-image: none;
border-radius: 4px;
border-radius: 0;
border-image: none;
-GtkWidget-hexpand: false;
-GtkWidget-vexpand: true;
background-color: rgba(119,119,119,0.2);
border-color: rgba(119,119,119,0.3);
border: none;
/*border-color: rgba(119,119,119,0.3);*/
box-shadow: none;
}
button#taskbar_active {
background-color: rgba(255,255,255,0.2);
border-color: rgba(255,255,255,0.4);
/* background-color: rgba(255,255,255,0.2);
border-color: rgba(255,255,255,0.4); */
border-bottom:3px solid #116cd6;
}
button#taskbar_normal:hover , button#taskbar_active:hover {
/* button#taskbar_active:hover*/
button#taskbar_normal:hover {
background-color: rgba(176,176,176,0.22);
border-color: rgba(234,234,234,0.44);
}

View File

@ -10,7 +10,7 @@ DEPENDS = "gtk+3 gtk-layer-shell json-c wayland-native"
SRCREV = "${AUTOREV}"
SRC_URI = "git://github.com/LBCrion/sfwbar.git;protocol=https;branch=main"
SRC_URI += " file://sfwbar.config "
SRC_URI += " file://sfwbar.config file://icon.svg "
S="${WORKDIR}/git"
@ -21,6 +21,13 @@ EXTRA_OEMESON += "--buildtype release"
do_install:append () {
install -d ${D}/${sysconfdir}/sfwbar/
install -m 0755 ${WORKDIR}/sfwbar.config ${D}/${sysconfdir}/sfwbar/
install -d ${D}/usr/share
install -d ${D}/usr/share/icons
install -d ${D}/usr/share/icons/hicolor
install -d ${D}/usr/share/icons/hicolor/scalable
install -d ${D}/usr/share/icons/hicolor/scalable/actions/
install -m 0755 ${WORKDIR}/icon.svg ${D}/usr/share/icons/hicolor/scalable/actions/show-desktop.svg
}
FILES:${PN} += "/usr/share/icons/*"