fix: forgot to add files to last commit
This commit is contained in:
parent
22ab0ff667
commit
36e307210b
12 changed files with 799 additions and 0 deletions
eww/traybuttons
29
eww/traybuttons/traybuttons.scss
Normal file
29
eww/traybuttons/traybuttons.scss
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*.tablet-toggle {
|
||||
background-color: $bg;
|
||||
color: $fg;
|
||||
font-family: Product Sans;
|
||||
border-radius: 30px;
|
||||
border: 5px solid $contrastbg;
|
||||
padding: 10px 18px;
|
||||
}*/
|
||||
|
||||
.toggle-off {
|
||||
background-color: $bg;
|
||||
color: #CBA6F7;
|
||||
font-size: 26px;
|
||||
border-radius: 80px;
|
||||
border: 3px solid $contrastbg;
|
||||
padding: 0px 6px 0px 12px;
|
||||
/* Add any other styles for the "off" state */
|
||||
}
|
||||
|
||||
.toggle-on {
|
||||
background-color: $bg;
|
||||
color: #CBA6F7;
|
||||
font-size: 26px;
|
||||
border-radius: 80px;
|
||||
border: 3px solid #CBA6F7;
|
||||
padding: 0px 6px 0px 12px;
|
||||
/* Add any other styles for the "on" state */
|
||||
}
|
||||
|
25
eww/traybuttons/traybuttons.yuck
Normal file
25
eww/traybuttons/traybuttons.yuck
Normal file
|
@ -0,0 +1,25 @@
|
|||
(defvar toggle-state false)
|
||||
|
||||
(defwidget tablet-toggle []
|
||||
(button :onclick {toggle-state ? "$HOME/.config/sway/scripts/tablet/laptop-mode.sh &" :
|
||||
"$HOME/.config/sway/scripts/tablet/tablet-mode.sh &"}
|
||||
(box :class {toggle-state ? "toggle-on" : "toggle-off"}
|
||||
:space-evenly true
|
||||
:spacing 6
|
||||
:orientation "h"
|
||||
(label :text " ")
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwindow tablet-toggle
|
||||
:monitor 0
|
||||
:exclusive "ignore"
|
||||
:geometry (geometry :x "78px"
|
||||
:y "8px"
|
||||
:width "0px"
|
||||
:height "0px"
|
||||
:anchor "top left"
|
||||
)
|
||||
(tablet-toggle)
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue