Adding bottom theme
This commit is contained in:
parent
3d90068978
commit
e7c3802003
|
@ -27,7 +27,7 @@ fi
|
|||
IFS=';' read -ra arrThemes <<< "$themestyle"
|
||||
echo ${arrThemes[0]}
|
||||
|
||||
if [ ! -f ~/dotfiles/waybar/styles${arrThemes[1]}/style.css ]; then
|
||||
if [ ! -f ~/dotfiles/waybar/themes${arrThemes[1]}/style.css ]; then
|
||||
themestyle="/ml4w;/ml4w/light"
|
||||
fi
|
||||
|
||||
|
@ -36,7 +36,7 @@ fi
|
|||
# -----------------------------------------------------
|
||||
if [[ $USER = "raabe" ]]
|
||||
then
|
||||
waybar -c ~/dotfiles/waybar/styles${arrThemes[0]}/myconfig -s ~/dotfiles/waybar/styles${arrThemes[1]}/style.css &
|
||||
waybar -c ~/dotfiles/waybar/themes${arrThemes[0]}/myconfig -s ~/dotfiles/waybar/themes${arrThemes[1]}/style.css &
|
||||
else
|
||||
waybar -c ~/dotfiles/waybar/styles${arrThemes[0]}/config -s ~/dotfiles/waybar/styles${arrThemes[1]}/style.css &
|
||||
waybar -c ~/dotfiles/waybar/themes${arrThemes[0]}/config -s ~/dotfiles/waybar/themes${arrThemes[1]}/style.css &
|
||||
fi
|
||||
|
|
78
waybar/themes/ml4w-bottom/config
Normal file
78
waybar/themes/ml4w-bottom/config
Normal file
|
@ -0,0 +1,78 @@
|
|||
// __ __ _
|
||||
// \ \ / /_ _ _ _| |__ __ _ _ __
|
||||
// \ \ /\ / / _` | | | | '_ \ / _` | '__|
|
||||
// \ V V / (_| | |_| | |_) | (_| | |
|
||||
// \_/\_/ \__,_|\__, |_.__/ \__,_|_|
|
||||
// |___/
|
||||
//
|
||||
// by Stephan Raabe (2023)
|
||||
// -----------------------------------------------------
|
||||
//
|
||||
{
|
||||
// General Settings
|
||||
|
||||
// Position TOP
|
||||
// "layer": "top",
|
||||
// "margin-top": 14,
|
||||
// "margin-bottom": 0,
|
||||
|
||||
// Position BOTTOM
|
||||
"position": "bottom",
|
||||
"margin-top": 0,
|
||||
"margin-bottom": 14,
|
||||
|
||||
"layer": "top",
|
||||
"height": 16,
|
||||
"margin-left": 0,
|
||||
"margin-right": 0,
|
||||
"spacing": 0,
|
||||
|
||||
// Load Modules
|
||||
"include": ["~/dotfiles/waybar/modules.json"],
|
||||
|
||||
// Modules Left
|
||||
"modules-left": [
|
||||
"custom/appmenu",
|
||||
"custom/wallpaper",
|
||||
"wlr/taskbar",
|
||||
"group/quicklinks",
|
||||
"hyprland/window"
|
||||
],
|
||||
|
||||
// Modules Center
|
||||
"modules-center": [
|
||||
"hyprland/workspaces"
|
||||
],
|
||||
|
||||
// Modules Right
|
||||
"modules-right": [
|
||||
"custom/updates",
|
||||
"pulseaudio",
|
||||
"bluetooth",
|
||||
"battery",
|
||||
"group/hardware",
|
||||
"custom/cliphist",
|
||||
"network",
|
||||
"custom/exit",
|
||||
"clock"
|
||||
],
|
||||
|
||||
// Group Quicklinks
|
||||
"group/quicklinks": {
|
||||
"orientation": "horizontal",
|
||||
"modules": [
|
||||
"custom/filemanager",
|
||||
"custom/brave",
|
||||
]
|
||||
},
|
||||
|
||||
// Group Hardware
|
||||
"group/hardware": {
|
||||
"orientation": "horizontal",
|
||||
"modules": [
|
||||
"disk",
|
||||
"cpu",
|
||||
"memory"
|
||||
]
|
||||
}
|
||||
}
|
14
waybar/themes/ml4w-bottom/dark/style.css
Normal file
14
waybar/themes/ml4w-bottom/dark/style.css
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* -----------------------------------------------------
|
||||
* Import Pywal colors
|
||||
* ----------------------------------------------------- */
|
||||
@import '../../../../../.cache/wal/colors-waybar.css';
|
||||
|
||||
@define-color backgroundlight @color8;
|
||||
@define-color backgrounddark #FFFFFF;
|
||||
@define-color bordercolor @color8;
|
||||
@define-color textcolor1 @color8;
|
||||
@define-color textcolor2 #FFFFFF;
|
||||
@define-color textcolor3 #FFFFFF;
|
||||
@define-color iconcolor @color8;
|
||||
|
||||
@import '../../ml4w/style.css';
|
14
waybar/themes/ml4w-bottom/light/style.css
Normal file
14
waybar/themes/ml4w-bottom/light/style.css
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* -----------------------------------------------------
|
||||
* Import Pywal colors
|
||||
* ----------------------------------------------------- */
|
||||
@import '../../../../../.cache/wal/colors-waybar.css';
|
||||
|
||||
@define-color backgroundlight #FFFFFF;
|
||||
@define-color backgrounddark @color11;
|
||||
@define-color bordercolor #FFFFFF;
|
||||
@define-color textcolor1 #FFFFFF;
|
||||
@define-color textcolor2 @color11;
|
||||
@define-color textcolor3 #FFFFFF;
|
||||
@define-color iconcolor #FFFFFF;
|
||||
|
||||
@import '../../ml4w/style.css';
|
14
waybar/themes/ml4w-bottom/mixed/style.css
Normal file
14
waybar/themes/ml4w-bottom/mixed/style.css
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* -----------------------------------------------------
|
||||
* Import Pywal colors
|
||||
* ----------------------------------------------------- */
|
||||
@import '../../../../../.cache/wal/colors-waybar.css';
|
||||
|
||||
@define-color backgroundlight @color8;
|
||||
@define-color backgrounddark #FFFFFF;
|
||||
@define-color bordercolor @color8;
|
||||
@define-color textcolor1 @color8;
|
||||
@define-color textcolor2 #FFFFFF;
|
||||
@define-color textcolor3 #FFFFFF;
|
||||
@define-color iconcolor #FFFFFF;
|
||||
|
||||
@import '../../ml4w/style.css';
|
79
waybar/themes/ml4w-bottom/myconfig
Normal file
79
waybar/themes/ml4w-bottom/myconfig
Normal file
|
@ -0,0 +1,79 @@
|
|||
// __ __ _
|
||||
// \ \ / /_ _ _ _| |__ __ _ _ __
|
||||
// \ \ /\ / / _` | | | | '_ \ / _` | '__|
|
||||
// \ V V / (_| | |_| | |_) | (_| | |
|
||||
// \_/\_/ \__,_|\__, |_.__/ \__,_|_|
|
||||
// |___/
|
||||
//
|
||||
// by Stephan Raabe (2023)
|
||||
// -----------------------------------------------------
|
||||
//
|
||||
{
|
||||
// Position TOP
|
||||
// "position": "top",
|
||||
// "margin-top": 14,
|
||||
//"margin-bottom": 0,
|
||||
|
||||
// Position BOTTOM
|
||||
"position": "bottom",
|
||||
"margin-bottom": 14,
|
||||
"margin-top": 0,
|
||||
|
||||
// General Settings
|
||||
"layer": "top",
|
||||
"height": 16,
|
||||
"margin-left": 0,
|
||||
"margin-right": 0,
|
||||
"spacing": 0,
|
||||
|
||||
// Load Modules
|
||||
"include": ["~/dotfiles/waybar/modules.json"],
|
||||
|
||||
// Modules Left
|
||||
"modules-left": [
|
||||
"custom/appmenu",
|
||||
"custom/wallpaper",
|
||||
"wlr/taskbar",
|
||||
"group/quicklinks",
|
||||
"hyprland/window"
|
||||
],
|
||||
|
||||
// Modules Center
|
||||
"modules-center": [
|
||||
"hyprland/workspaces"
|
||||
],
|
||||
|
||||
// Modules Right
|
||||
"modules-right": [
|
||||
"custom/youtube",
|
||||
"custom/updates",
|
||||
"pulseaudio",
|
||||
"bluetooth",
|
||||
"battery",
|
||||
"group/hardware",
|
||||
"custom/cliphist",
|
||||
"network",
|
||||
"custom/exit",
|
||||
"clock"
|
||||
],
|
||||
|
||||
// Group Quicklinks
|
||||
"group/quicklinks": {
|
||||
"orientation": "horizontal",
|
||||
"modules": [
|
||||
"custom/filemanager",
|
||||
"custom/chatgpt",
|
||||
"custom/windowsvm"
|
||||
]
|
||||
},
|
||||
|
||||
// Group Hardware
|
||||
"group/hardware": {
|
||||
"orientation": "horizontal",
|
||||
"modules": [
|
||||
"disk",
|
||||
"cpu",
|
||||
"memory"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -302,7 +302,7 @@ window#waybar.empty #window {
|
|||
|
||||
#network.wifi {
|
||||
background-color: @backgroundlight;
|
||||
color: @textcolor1;
|
||||
color: @textcolor2;
|
||||
}
|
||||
|
||||
/* -----------------------------------------------------
|
|
@ -1,11 +1,11 @@
|
|||
#!/bin/bash
|
||||
options=$(find ~/dotfiles/waybar/styles/ -maxdepth 2 -type d)
|
||||
options=$(find ~/dotfiles/waybar/themes/ -maxdepth 2 -type d)
|
||||
listThemes=""
|
||||
for value in $options
|
||||
do
|
||||
if [ ! $value == "$HOME/dotfiles/waybar/styles/" ]; then
|
||||
if [ ! $value == "$HOME/dotfiles/waybar/themes/" ]; then
|
||||
if [ $(find $value -maxdepth 1 -type d | wc -l) = 1 ]; then
|
||||
result=$(echo $value | sed "s#$HOME/dotfiles/waybar/styles/#/#g")
|
||||
result=$(echo $value | sed "s#$HOME/dotfiles/waybar/themes/#/#g")
|
||||
IFS='/' read -ra arrThemes <<< "$result"
|
||||
echo $arrThemes
|
||||
listThemes+="/${arrThemes[1]};$result\n"
|
||||
|
@ -19,4 +19,4 @@ choice=$(echo -e "$listThemes" | rofi -dmenu -config ~/dotfiles/rofi/config-wall
|
|||
if [ "$choice" ]; then
|
||||
echo "$choice" > ~/.cache/.themestyle.sh
|
||||
~/dotfiles/waybar/launch.sh
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user