mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-04-25 13:06:54 +02:00
feat: workspaces
This commit is contained in:
parent
ebf470e071
commit
0f7958ed08
6 changed files with 91 additions and 61 deletions
21
eww/.config/eww/bar/assets/scss/colors.scss
Normal file
21
eww/.config/eww/bar/assets/scss/colors.scss
Normal file
|
@ -0,0 +1,21 @@
|
|||
$background-bar: rgb(68, 47, 173);
|
||||
$background: rgba(11, 10, 16, 1);
|
||||
$widget-background: rgba(17, 16, 25, 1);
|
||||
$shadow: rgba(0, 0, 0, 0.3);
|
||||
$grey: rgba(105, 101, 124, 0.7);
|
||||
|
||||
$black: #282A36;
|
||||
$red: #f1a7b3;
|
||||
$green: #AAC5A0;
|
||||
$yellow: #f6d6b3;
|
||||
$orange: #f2c798;
|
||||
$blue: #A8C5E6;
|
||||
$blue2: #e1eefd;
|
||||
$purple: #f1a7e2;
|
||||
$purple2: #ecdbee;
|
||||
$teal: #72B69C;
|
||||
$white: #eae9f0;
|
||||
|
||||
$primary: #d3e8ff;
|
||||
$secondary: #f1a7e2;
|
||||
$tertiary: #93f0e2;
|
|
@ -1,5 +1,57 @@
|
|||
* {
|
||||
.bar {
|
||||
padding: 0.1rem;
|
||||
}
|
||||
|
||||
.works {
|
||||
font-size: 12px;
|
||||
font-weight: normal;
|
||||
margin: 5px 0px 0px 20px;
|
||||
background-color: #0f0f17;
|
||||
}
|
||||
|
||||
.sidestuff slider {
|
||||
all: unset;
|
||||
font-family: feather;
|
||||
font-family: mononoki Nerd Font;
|
||||
color: #ffd5cd;
|
||||
}
|
||||
|
||||
.metric scale trough highlight {
|
||||
all: unset;
|
||||
background-color: #D35D6E;
|
||||
color: #000000;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.metric scale trough {
|
||||
all: unset;
|
||||
background-color: #4e4e4e;
|
||||
border-radius: 50px;
|
||||
min-height: 3px;
|
||||
min-width: 50px;
|
||||
margin-left: 10px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.metric scale trough highlight {
|
||||
all: unset;
|
||||
background-color: #D35D6E;
|
||||
color: #000000;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.metric scale trough {
|
||||
all: unset;
|
||||
background-color: #4e4e4e;
|
||||
border-radius: 50px;
|
||||
min-height: 3px;
|
||||
min-width: 50px;
|
||||
margin-left: 10px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.label-ram {
|
||||
font-size: large;
|
||||
}
|
||||
|
||||
.workspaces button:hover {
|
||||
color: #D35D6E;
|
||||
}
|
9
eww/.config/eww/bar/assets/scss/widgets/workspaces.scss
Normal file
9
eww/.config/eww/bar/assets/scss/widgets/workspaces.scss
Normal file
|
@ -0,0 +1,9 @@
|
|||
.works {
|
||||
font-size: 18px;
|
||||
// margin: 10px 0px 0px 10px;
|
||||
background-color: rgba(00, 00, 00, 0.0);
|
||||
}
|
||||
|
||||
.ws-btn {
|
||||
margin: 0px 7px 0px 0px;
|
||||
}
|
|
@ -1,54 +1,7 @@
|
|||
@import "./assets/scss/main.scss";
|
||||
@import "assets/scss/colors.scss";
|
||||
@import "assets/scss/index.scss";
|
||||
@import "assets/scss/widgets/workspaces.scss";
|
||||
|
||||
.bar {
|
||||
background-color: #0f0f17;
|
||||
padding: 0.5rem;
|
||||
border-radius: 0.8rem;
|
||||
}
|
||||
|
||||
.sidestuff slider {
|
||||
* {
|
||||
all: unset;
|
||||
color: #ffd5cd;
|
||||
}
|
||||
|
||||
.metric scale trough highlight {
|
||||
all: unset;
|
||||
background-color: #D35D6E;
|
||||
color: #000000;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.metric scale trough {
|
||||
all: unset;
|
||||
background-color: #4e4e4e;
|
||||
border-radius: 50px;
|
||||
min-height: 3px;
|
||||
min-width: 50px;
|
||||
margin-left: 10px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.metric scale trough highlight {
|
||||
all: unset;
|
||||
background-color: #D35D6E;
|
||||
color: #000000;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.metric scale trough {
|
||||
all: unset;
|
||||
background-color: #4e4e4e;
|
||||
border-radius: 50px;
|
||||
min-height: 3px;
|
||||
min-width: 50px;
|
||||
margin-left: 10px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.label-ram {
|
||||
font-size: large;
|
||||
}
|
||||
|
||||
.workspaces button:hover {
|
||||
color: #D35D6E;
|
||||
}
|
|
@ -2,11 +2,6 @@
|
|||
|
||||
EWW="eww -c $HOME/.config/eww/bar"
|
||||
|
||||
if [[ ! $(pidof eww) ]]; then
|
||||
eww daemon
|
||||
sleep 1
|
||||
fi
|
||||
|
||||
run_eww() {
|
||||
${EWW} open bar
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#! /bin/bash
|
||||
|
||||
#define icons for workspaces 1-9
|
||||
ic=(0 輸 " " " " )
|
||||
ic=( 輸)
|
||||
# ic=(0 1 2 3 4 5 6 7 8 9)
|
||||
# ic=(0 一 二 三 四 五 六 七 八 九 〇)
|
||||
|
||||
|
@ -49,8 +49,8 @@ workspaces() {
|
|||
unset -v o"$num"
|
||||
fi
|
||||
}
|
||||
|
||||
module() {
|
||||
#output eww widget
|
||||
echo "(eventbox :onscroll \"echo {} | sed -e 's/up/-1/g' -e 's/down/+1/g' | xargs hyprctl dispatch workspace\" \
|
||||
(box :class \"works\" :orientation \"h\" :spacing 5 :space-evenly \"false\" :valign \"center\" \
|
||||
(button :onclick \"hyprctl dispatch exec \'~/.config/hypr/themes/winter/scripts/workspace 1\'\" :onrightclick \"hyprctl dispatch workspace 1 && $HOME/.config/hypr/themes/winter/scripts/default_app\" :class \"ws-btn 0$o1$f1\" \"${ic[1]}\") \
|
||||
|
|
Loading…
Add table
Reference in a new issue