From 0b7c16ecab21ddcb61926159bce93d8a34fa7e4c Mon Sep 17 00:00:00 2001 From: Sunderland93 Date: Mon, 1 May 2023 10:08:25 +0400 Subject: [PATCH] Add foot config, initial styling for Waybar --- debian/files | 2 +- etc/skel/.config/foot/foot.ini | 142 ++++++++++++++++ etc/sway/variables | 2 +- etc/xdg/xdg-tileos/waybar/style.css | 241 ++++++++++++++++++++++++++++ 4 files changed, 385 insertions(+), 2 deletions(-) create mode 100644 etc/skel/.config/foot/foot.ini create mode 100644 etc/xdg/xdg-tileos/waybar/style.css diff --git a/debian/files b/debian/files index 7cb3a53..cd5be61 100644 --- a/debian/files +++ b/debian/files @@ -1 +1 @@ -tileos-settings-sway_0.5~tileos_source.buildinfo x11 optional +tileos-settings-sway_0.6~tileos_source.buildinfo x11 optional diff --git a/etc/skel/.config/foot/foot.ini b/etc/skel/.config/foot/foot.ini new file mode 100644 index 0000000..165bf89 --- /dev/null +++ b/etc/skel/.config/foot/foot.ini @@ -0,0 +1,142 @@ +# -*- conf -*- +term=foot +# login-shell=no + +font=Hack:size=10 +# font-bold= +# font-italic= +# font-bold-italic= +# line-height= +# letter-spacing=0 +# horizontal-letter-offset=0 +# vertical-letter-offset=0 +# underline-offset= +# box-drawings-uses-font-glyphs=no +# dpi-aware=yes + +# notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body} + +bold-text-in-bright=yes +# bell=none +word-delimiters=,│`|:"'()[]{}<> +# selection-target=primary +# workers= + +[bell] +# urgent=no +# notify=no +# command= +# command-focused=no + +[scrollback] +lines=10000 +# multiplier=3.0 +# indicator-position=relative +# indicator-format= + +[url] +launch=xdg-open ${url} +label-letters=sadfjklewcmpgh +osc8-underline=url-mode +protocols=http, https, ftp, ftps, file, gemini, gopher +uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[] + +[cursor] +# style=block +color= 141a1b eeeeee +# blink=no +# beam-thickness=1.5 +# underline-thickness= + +[mouse] +# hide-when-typing=no +# alternate-scroll-mode=yes + +[colors] +# alpha=1.0 +# foreground=ffffff +# background=2f2f2f +regular0=141a1B # black +regular1=cd3f45 # red +regular2=9fca56 # green +regular3=e6cd69 # yellow +regular4=55b5db # cyan +regular5=a074c4 # magenta +regular6=16a085 # blue +regular7=d6d6d6 # white +bright0=41535B # bright black +bright1=cd3f45 # red +bright2=9fca56 # green +bright3=e6cd69 # yellow +bright4=55b5db # cyan +bright5=a074c4 # magenta +bright6=16a085 # blue +bright7=ffffff # bright white + +[csd] +# preferred=server +# size=26 +# color= +# button-width=26 +# button-color= +# button-minimize-color= +# button-maximize-color= +# button-close-color= + +[key-bindings] +# scrollback-up-page=Shift+Page_Up +# scrollback-up-half-page=none +# scrollback-up-line=none +# scrollback-down-page=Shift+Page_Down +# scrollback-down-half-page=none +# scrollback-down-line=none +# clipboard-copy=Control+Shift+c +# clipboard-paste=Control+Shift+v +# primary-paste=Shift+Insert +# search-start=Control+Shift+r +# font-increase=Control+plus Control+equal Control+KP_Add +# font-decrease=Control+minus Control+KP_Subtract +# font-reset=Control+0 Control+KP_0 +# spawn-terminal=Control+Shift+n +# minimize=none +# maximize=none +# fullscreen=none +# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none +# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none +# pipe-selected=[xargs -r firefox] none +# show-urls-launch=Control+Shift+u +# show-urls-copy=none + +[search-bindings] +# cancel=Control+g Escape +# commit=Return +# find-prev=Control+r +# find-next=Control+s +# cursor-left=Left Control+b +# cursor-left-word=Control+Left Mod1+b +# cursor-right=Right Control+f +# cursor-right-word=Control+Right Mod1+f +# cursor-home=Home Control+a +# cursor-end=End Control+e +# delete-prev=BackSpace +# delete-prev-word=Mod1+BackSpace Control+BackSpace +# delete-next=Delete +# delete-next-word=Mod1+d Control+Delete +# extend-to-word-boundary=Control+w +# extend-to-next-whitespace=Control+Shift+w +# clipboard-paste=Control+v Control+y +# primary-paste=Shift+Insert + +[url-bindings] +# cancel=Control+g Control+d Escape +# toggle-url-visible=t + +[mouse-bindings] +# primary-paste=BTN_MIDDLE +# select-begin=BTN_LEFT +# select-begin-block=Control+BTN_LEFT +# select-extend=BTN_RIGHT +# select-extend-character-wise=Control+BTN_RIGHT +# select-word=BTN_LEFT-2 +# select-word-whitespace=Control+BTN_LEFT-2 +# select-row=BTN_LEFT-3 diff --git a/etc/sway/variables b/etc/sway/variables index fa1736f..548dabb 100644 --- a/etc/sway/variables +++ b/etc/sway/variables @@ -52,7 +52,7 @@ set $screenshot_selection $pipe_selection | $swappy && $notify_paste set $screenshot_active $pipe_active | $swappy && $notify_paste # PolicyKit agent -set $polkit_agent /usr/bin/mate-polkit +set $polkit_agent /usr/bin/mate-polkit & # Autotiling script set $autotiling '[ -x "$(command -v autotiling)" ] && autotiling -w 1 3 5 7 9' diff --git a/etc/xdg/xdg-tileos/waybar/style.css b/etc/xdg/xdg-tileos/waybar/style.css new file mode 100644 index 0000000..f41aa04 --- /dev/null +++ b/etc/xdg/xdg-tileos/waybar/style.css @@ -0,0 +1,241 @@ +@keyframes blink-warning { + 70% { + color: @wm_icon_bg; + } + + to { + color: @wm_icon_bg; + background-color: @warning_color; + } +} + +@keyframes blink-critical { + 70% { + color: @wm_icon_bg; + } + + to { + color: @wm_icon_bg; + background-color: @error_color; + } +} + +/* Reset all styles */ +* { + border: none; + border-radius: 4; + min-height: 0; + margin: 0; + padding: 0; +} + +/* The whole bar */ +#waybar { + background: @theme_bg_color; + color: @theme_fg_color; + font-family: "Ubuntu", "Font Awesome 6 Free", "Font Awesome"; + font-size: 14px; +} + +#window { + margin-left: 10px; +} + +window#waybar { + margin-left: 10px; + border-radius: 0; +} + +window#waybar.hidden { + opacity: 0.2; +} + +#workspaces button { + /* To compensate for the top border and still have vertical centering */ + padding: 0 0.5em; + margin: 4px 3px; + color: @wm_icon_bg; +} + +#workspaces button.focused { + border-color: @theme_selected_bg_color; + color: @wm_icon_bg; + background-color: @theme_selected_bg_color; +} + +#workspaces button.urgent { + border-color: @error_color; + color: @error_color; +} + +#mode { + background: @background_color; +} + +#clock, +#custom-playerctl, +#custom-power, +#custom-scratchpad, +#custom-weather, +#custom-wlsunset, +#custom-clipboard, +#custom-menu, +#custom-dnd, +#battery, +#cpu, +#language, +#memory, +#network, +#bluetooth, +#pulseaudio, +#tray, +#mode, +#idle_inhibitor { + padding-left: 10px; + padding-right: 10px; + margin: 4px 3px; +} + +#clock { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#custom-weather { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#custom-wlsunset { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#custom-playerctl { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#custom-power { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#custom-scratchpad { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#custom-clipboard { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#custom-menu { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#custom-dnd { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#battery { + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-direction: alternate; + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#battery.warning { + color: @warning_color; +} + +#battery.critical { + color: @error_color; +} + +#battery.warning.discharging { + animation-name: blink-warning; + animation-duration: 3s; +} + +#battery.critical.discharging { + animation-name: blink-critical; + animation-duration: 2s; +} + +label:focus { + background-color: #000000; +} + +#cpu { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#language { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#memory { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#custom-gpu-usage { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#network { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#bluetooth { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#bluetooth.disabled { + background: @theme_bg_color; + color: @wm_icon_bg; +} + +#network.disconnected { + background: @theme_bg_color; + color: @wm_icon_bg +} + +#pulseaudio { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +} + +#pulseaudio.muted { + background: @theme_bg_color; + color: @wm_icon_bg; +} + +#custom-wf-recorder { + color: @error_color; + padding-right: 10px; +} + +#tray { + padding-left: 10px; + padding-right: 10px; +} + +#idle_inhibitor { + background: @theme_selected_bg_color; +} + +#idle_inhibitor.activated { + background: @theme_selected_bg_color; + color: @theme_selected_fg_color; +}