feat: workspaces

This commit is contained in:
hesam-init 2024-02-20 00:04:01 +03:30
parent ebf470e071
commit 0f7958ed08
6 changed files with 91 additions and 61 deletions

View 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;

View file

@ -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;
}

View 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;
}

View file

@ -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;
}

View file

@ -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
}

View file

@ -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]}\") \