misc: more configuration on looks and slight improvements
This commit is contained in:
parent
89af4e3b36
commit
07b5b7dc15
5 changed files with 101 additions and 72 deletions
52
eww/eww.scss
52
eww/eww.scss
|
|
@ -32,27 +32,26 @@ tooltip label {
|
||||||
/** Widgets **/
|
/** Widgets **/
|
||||||
|
|
||||||
.clock_time_sep {
|
.clock_time_sep {
|
||||||
font-size: 16;
|
font-size: 20;
|
||||||
color: #bfc9db;
|
color: #bfc9db;
|
||||||
margin: 0px 4px 1px 4px;
|
margin: 0px 0px 1px 0px;
|
||||||
}
|
}
|
||||||
.clock_time_class, .clock_minute_class {
|
.clock_time_class, .clock_minute_class {
|
||||||
font-size: 21;
|
font-size: 24;
|
||||||
}
|
}
|
||||||
.clock_date_class {
|
.clock_date_class {
|
||||||
font-size: 18;
|
font-size: 21;
|
||||||
margin: 0px 20px 0px -1px;
|
margin: 0px 5px 0px 5px;
|
||||||
color: #d7beda;
|
color: #d7beda;
|
||||||
}
|
}
|
||||||
.clock_minute_class {
|
.clock_minute_class {
|
||||||
margin: 0px 20px 0px 3px;
|
margin: 0px 5px 0px 2px;
|
||||||
color: #bfc9db;
|
color: #bfc9db;
|
||||||
}
|
}
|
||||||
|
|
||||||
.clock_time_class {
|
.clock_time_class {
|
||||||
color: #bfc9db;
|
color: #bfc9db;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 0px 3px 0px 0px;
|
margin: 0px 0px 0px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -74,23 +73,31 @@ tooltip label {
|
||||||
background-image: linear-gradient(to right, #afcee0 30%, #a1bdce 50%, #77a5bf 100% *50);
|
background-image: linear-gradient(to right, #afcee0 30%, #a1bdce 50%, #77a5bf 100% *50);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.module_app_text {
|
||||||
|
font-size: 23;
|
||||||
|
margin: 2px 0px 0px 0px;
|
||||||
|
}
|
||||||
|
.bright_icon {
|
||||||
|
font-size: 22;
|
||||||
|
color: #e4c9af;
|
||||||
|
margin: 0px 10px 0px 0px;
|
||||||
|
}
|
||||||
.volume_icon {
|
.volume_icon {
|
||||||
font-size: 22;
|
font-size: 22;
|
||||||
color: #a1bdce;
|
color: #a1bdce;
|
||||||
margin: 0px 10px 0px 10px;
|
margin: 0px 5px 0px 0px;
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.module_essid {
|
|
||||||
font-size: 18;
|
|
||||||
color: #a1bdce;
|
|
||||||
margin: 0px 10px 0px 0px;
|
|
||||||
}
|
}
|
||||||
.module-wif {
|
.module-wif {
|
||||||
font-size: 22;
|
font-size: 22;
|
||||||
color: #a1bdce;
|
color: #a1bdce;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
margin: 0px 10px 0px 5px;
|
margin: 0px 10px 0px 0px;
|
||||||
|
}
|
||||||
|
.module_essid {
|
||||||
|
font-size: 18;
|
||||||
|
color: #a1bdce;
|
||||||
|
margin: 0px 5px 0px -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.iconmem {
|
.iconmem {
|
||||||
|
|
@ -102,18 +109,13 @@ tooltip label {
|
||||||
font-size: 23;
|
font-size: 23;
|
||||||
color: #afbea2;
|
color: #afbea2;
|
||||||
}
|
}
|
||||||
.bright_icon {
|
|
||||||
font-size: 22;
|
|
||||||
color: #e4c9af;
|
|
||||||
margin: 0px 10px 0px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.separ {
|
.separ {
|
||||||
color: #3e424f;
|
color: #3e424f;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
margin: 0px 8px 0px 8px;
|
margin: 0px 0px 0px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mem_module {
|
.mem_module {
|
||||||
|
|
@ -141,7 +143,7 @@ scale trough {
|
||||||
.works {
|
.works {
|
||||||
font-size: 27px;
|
font-size: 27px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin: 5px 0px 0px 20px;
|
margin: 0px 0px 0px 15px;
|
||||||
background-color: #0f0f17;
|
background-color: #0f0f17;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -198,6 +200,7 @@ color: #3e424f;
|
||||||
}
|
}
|
||||||
// Calendar
|
// Calendar
|
||||||
.cal {
|
.cal {
|
||||||
|
border-radius: 10px;
|
||||||
background-color: #0f0f17;
|
background-color: #0f0f17;
|
||||||
font-family: JetBrainsMono Nerd Font;
|
font-family: JetBrainsMono Nerd Font;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
|
@ -269,6 +272,7 @@ color: #bfc9db;
|
||||||
margin: 30px;
|
margin: 30px;
|
||||||
}
|
}
|
||||||
.sys_win {
|
.sys_win {
|
||||||
|
border-radius: 10px;
|
||||||
background-color: #0f0f17;
|
background-color: #0f0f17;
|
||||||
}
|
}
|
||||||
.sys_bat {
|
.sys_bat {
|
||||||
|
|
|
||||||
35
eww/eww.yuck
35
eww/eww.yuck
|
|
@ -62,10 +62,7 @@
|
||||||
(revealer :transition "slideright"
|
(revealer :transition "slideright"
|
||||||
:reveal wifi_rev
|
:reveal wifi_rev
|
||||||
:duration "350ms"
|
:duration "350ms"
|
||||||
(label :class "module_essid"
|
(button :class "module_essid" :onclick "hyprctl dispatch exec 'alacritty -e nmtui'" :wrap "false" :limit-width 12 :style "color: ${COL_WLAN};" ESSID_WLAN)))))
|
||||||
:text ESSID_WLAN
|
|
||||||
:orientation "h"
|
|
||||||
)))))
|
|
||||||
|
|
||||||
(defwidget bluetooth []
|
(defwidget bluetooth []
|
||||||
(box :vexpand "false" :hexpand "false" :space-evenly "false"
|
(box :vexpand "false" :hexpand "false" :space-evenly "false"
|
||||||
|
|
@ -111,17 +108,17 @@
|
||||||
(defwidget clock_module []
|
(defwidget clock_module []
|
||||||
(eventbox :onhover "${eww} update time_rev=true"
|
(eventbox :onhover "${eww} update time_rev=true"
|
||||||
:onhoverlost "${eww} update time_rev=false"
|
:onhoverlost "${eww} update time_rev=false"
|
||||||
|
(button :onclick "scripts/pop calendar"
|
||||||
(box :class "module" :space-evenly "false" :orientation "h" :spacing "3"
|
(box :class "module" :space-evenly "false" :orientation "h" :spacing "3"
|
||||||
(label :text clock_time :class "clock_time_class" )
|
(label :text clock_time :class "clock_time_class" )
|
||||||
(label :text "" :class "clock_time_sep" )
|
(label :text "" :class "clock_time_sep" )
|
||||||
(label :text clock_minute :class "clock_minute_class")
|
(label :text clock_minute :class "clock_minute_class")
|
||||||
(revealer :transition "slideleft"
|
(revealer :class "clock_date_class"
|
||||||
|
:transition "slideleft"
|
||||||
:reveal time_rev
|
:reveal time_rev
|
||||||
:duration "350ms"
|
:duration "350ms"
|
||||||
(button :class "clock_date_class"
|
clock_date
|
||||||
:onclick "scripts/pop calendar" clock_date
|
)))))
|
||||||
)
|
|
||||||
))))
|
|
||||||
|
|
||||||
;; speaker and mic volume ;;
|
;; speaker and mic volume ;;
|
||||||
(defwidget volume []
|
(defwidget volume []
|
||||||
|
|
@ -158,6 +155,8 @@
|
||||||
|
|
||||||
;; audio volume widget ;;
|
;; audio volume widget ;;
|
||||||
(defwidget audio []
|
(defwidget audio []
|
||||||
|
(eventbox :onhover "scripts/pop hoverCreate"
|
||||||
|
:onhoverlost "scripts/pop hoverGet audio_ctl"
|
||||||
(box :class "audio-box" :orientation "v" :space-evenly "false" :vexpand "false" :hexpand "false"
|
(box :class "audio-box" :orientation "v" :space-evenly "false" :vexpand "false" :hexpand "false"
|
||||||
(box :halign "v" :space-evenly "false" :hexpand "false" :vexpand "false"
|
(box :halign "v" :space-evenly "false" :hexpand "false" :vexpand "false"
|
||||||
(box :class "speaker_icon" :orientation "v")
|
(box :class "speaker_icon" :orientation "v")
|
||||||
|
|
@ -183,7 +182,7 @@
|
||||||
:tooltip "mic on ${mic_percent}%"
|
:tooltip "mic on ${mic_percent}%"
|
||||||
:onchange "amixer -D pulse sset Capture {}%"
|
:onchange "amixer -D pulse sset Capture {}%"
|
||||||
:max 100
|
:max 100
|
||||||
:min 0))))))
|
:min 0)))))))
|
||||||
|
|
||||||
;; Music ;;
|
;; Music ;;
|
||||||
;;(defwidget music []
|
;;(defwidget music []
|
||||||
|
|
@ -205,11 +204,13 @@
|
||||||
|
|
||||||
;; calendar ;;
|
;; calendar ;;
|
||||||
(defwidget cal []
|
(defwidget cal []
|
||||||
|
(eventbox :onhover "scripts/pop hoverCreate"
|
||||||
|
:onhoverlost "scripts/pop hoverGet calendar"
|
||||||
(box :class "cal" :orientation "v"
|
(box :class "cal" :orientation "v"
|
||||||
(box :class "cal-in"
|
(box :class "cal-in"
|
||||||
(calendar :class "cal"
|
(calendar :class "cal"
|
||||||
:day calendar_day
|
:day calendar_day
|
||||||
:year calendar_year))))
|
:year calendar_year)))))
|
||||||
|
|
||||||
;; Music again.. ;;
|
;; Music again.. ;;
|
||||||
;;(defwidget music_pop []
|
;;(defwidget music_pop []
|
||||||
|
|
@ -227,6 +228,8 @@
|
||||||
|
|
||||||
|
|
||||||
(defwidget system []
|
(defwidget system []
|
||||||
|
(eventbox :onhover "scripts/pop hoverCreate"
|
||||||
|
:onhoverlost "scripts/pop hoverGet system"
|
||||||
(box :class "sys_win" :orientation "v" :space-evenly "false" :hexpand "false" :vexpand "false" :spacing 0
|
(box :class "sys_win" :orientation "v" :space-evenly "false" :hexpand "false" :vexpand "false" :spacing 0
|
||||||
(box :class "sys_bat_box" :orientation "h" :space-evenly "false"
|
(box :class "sys_bat_box" :orientation "h" :space-evenly "false"
|
||||||
(circular-progress :value battery-capacity
|
(circular-progress :value battery-capacity
|
||||||
|
|
@ -285,7 +288,7 @@
|
||||||
:class "sys_text_mem_sub"
|
:class "sys_text_mem_sub"
|
||||||
:limit-width 22
|
:limit-width 22
|
||||||
:show_truncated false
|
:show_truncated false
|
||||||
:wrap false)))))
|
:wrap false))))))
|
||||||
|
|
||||||
;; left side but displayed right? ;;
|
;; left side but displayed right? ;;
|
||||||
(defwidget left []
|
(defwidget left []
|
||||||
|
|
@ -334,7 +337,7 @@
|
||||||
(defwindow calendar
|
(defwindow calendar
|
||||||
:monitor 0
|
:monitor 0
|
||||||
:geometry (geometry :x "20px"
|
:geometry (geometry :x "20px"
|
||||||
:y "2%"
|
:y "2px"
|
||||||
:anchor "top right"
|
:anchor "top right"
|
||||||
:width "270px"
|
:width "270px"
|
||||||
:height "60px")
|
:height "60px")
|
||||||
|
|
@ -344,7 +347,7 @@
|
||||||
(defwindow audio_ctl
|
(defwindow audio_ctl
|
||||||
:monitor 0
|
:monitor 0
|
||||||
:geometry (geometry :x "250px"
|
:geometry (geometry :x "250px"
|
||||||
:y "2%"
|
:y "2px"
|
||||||
:anchor "top right"
|
:anchor "top right"
|
||||||
:width "280px"
|
:width "280px"
|
||||||
:height "60px")
|
:height "60px")
|
||||||
|
|
@ -359,7 +362,7 @@
|
||||||
(defwindow system
|
(defwindow system
|
||||||
:monitor 0
|
:monitor 0
|
||||||
:geometry (geometry :x "50px"
|
:geometry (geometry :x "50px"
|
||||||
:y "2%"
|
:y "2px"
|
||||||
:anchor "top right"
|
:anchor "top right"
|
||||||
:width "290px"
|
:width "290px"
|
||||||
:height "120px")
|
:height "120px")
|
||||||
|
|
@ -370,7 +373,7 @@
|
||||||
(defwindow bar
|
(defwindow bar
|
||||||
:monitor 0
|
:monitor 0
|
||||||
:geometry (geometry :x "0%"
|
:geometry (geometry :x "0%"
|
||||||
:y "3px"
|
:y "1px"
|
||||||
:width "99%"
|
:width "99%"
|
||||||
:height "20px"
|
:height "20px"
|
||||||
:anchor "top center")
|
:anchor "top center")
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
currentName() {
|
currentName() {
|
||||||
win=$(hyprctl activewindow | grep class | awk -F ':' '{print $2}' | tr -d ' ')
|
win=$(hyprctl activewindow | grep class | awk -F ':' '{print $2}' | tr -d ' ')
|
||||||
echo "(box :class \"module\" :space-evenly \"false\" :orientation \"h\" :spacing \"3\" (label :text \"$win\" :class \"clock_minute_class\"))"
|
echo "(box :class \"module_app_text\" :space-evenly \"false\" :orientation \"h\" :spacing \"3\" (label :text \"$win\"))"
|
||||||
}
|
}
|
||||||
currentName
|
currentName
|
||||||
tail -f /tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/hyprland.log | grep -E --line-buffered "focus to surface" | while read -r; do
|
tail -f /tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/hyprland.log | grep -E --line-buffered "focus to surface" | while read -r; do
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
calendar() {
|
calendar() {
|
||||||
LOCK_FILE="$HOME/.cache/eww-calendar.lock"
|
LOCK_FILE="$HOME/.cache/eww-calendar.lock"
|
||||||
EWW_BIN="$HOME/.local/bin/eww"
|
EWW_BIN="$HOME/.local/bin/eww"
|
||||||
|
|
@ -80,13 +81,35 @@ else
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hoverGet() {
|
||||||
|
NAME="$1"
|
||||||
|
EWW_BIN="$HOME/.local/bin/eww"
|
||||||
|
STORE="$HOME/.cache/cache.txt"
|
||||||
|
if [[ -f "$STORE" ]]; then
|
||||||
|
rm "$STORE"
|
||||||
|
${EWW_BIN} -c $HOME/.config/eww close "$NAME"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
hoverCreate() {
|
||||||
|
STORE="$HOME/.cache/cache.txt"
|
||||||
|
if [[ ! -f "$STORE" ]]; then
|
||||||
|
touch "$STORE"
|
||||||
|
else
|
||||||
|
echo "failure!"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
if [ "$1" = "calendar" ]; then
|
if [ "$1" = "calendar" ]; then
|
||||||
calendar
|
calendar
|
||||||
elif [ "$1" = "system" ]; then
|
elif [ "$1" = "system" ]; then
|
||||||
system
|
system
|
||||||
#elif [ "$1" = "music" ]; then
|
#elif [ "$1" = "music" ]; then
|
||||||
#music
|
#music
|
||||||
elif [ "$1" = "audio" ]; then
|
elif [ "$1" = "audio" ]; then
|
||||||
audio
|
audio
|
||||||
|
elif [ "$1" = "hoverGet" ]; then
|
||||||
|
hoverGet "$2"
|
||||||
|
elif [ "$1" = "hoverCreate" ]; then
|
||||||
|
hoverCreate
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,4 @@
|
||||||
|
|
||||||
########################################################################################
|
|
||||||
AUTOGENERATED HYPR CONFIG.
|
|
||||||
PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT,
|
|
||||||
OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
|
|
||||||
########################################################################################
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Please note not all available settings / options are set here.
|
|
||||||
# For a full list, see the wiki (basic and advanced configuring)
|
|
||||||
#
|
|
||||||
#
|
#
|
||||||
#fix the fucking portal
|
#fix the fucking portal
|
||||||
exec-once=systemctl --user import-environment
|
exec-once=systemctl --user import-environment
|
||||||
|
|
@ -21,7 +10,7 @@ autogenerated=0 # remove this line to get rid of the warning on top.
|
||||||
monitor=,preferred,auto,1
|
monitor=,preferred,auto,1
|
||||||
|
|
||||||
input {
|
input {
|
||||||
kb_file=
|
kb_file=/home/dashie/.config/keymap.xkb #us with dead_diaeresis on shift + ' to get ä ö ü
|
||||||
kb_layout=
|
kb_layout=
|
||||||
kb_variant=
|
kb_variant=
|
||||||
kb_model=
|
kb_model=
|
||||||
|
|
@ -58,7 +47,7 @@ decoration {
|
||||||
blur=1
|
blur=1
|
||||||
blur_size=3 # minimum 1
|
blur_size=3 # minimum 1
|
||||||
blur_passes=1 # minimum 1
|
blur_passes=1 # minimum 1
|
||||||
blur_new_optimizations=1
|
blur_new_optimizations=true
|
||||||
}
|
}
|
||||||
|
|
||||||
animations {
|
animations {
|
||||||
|
|
@ -70,6 +59,7 @@ animations {
|
||||||
}
|
}
|
||||||
|
|
||||||
dwindle {
|
dwindle {
|
||||||
|
preserve_split=true
|
||||||
pseudotile=0 # enable pseudotiling on dwindle
|
pseudotile=0 # enable pseudotiling on dwindle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -77,13 +67,17 @@ gestures {
|
||||||
workspace_swipe=yes
|
workspace_swipe=yes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
misc {
|
||||||
|
animate_manual_resizes=true
|
||||||
|
}
|
||||||
|
|
||||||
#reserve place for bar
|
#reserve place for bar
|
||||||
#monitor=eDP-1,addreserved,45,0,0,0
|
#monitor=eDP-1,addreserved,45,0,0,0
|
||||||
|
|
||||||
# example window rules
|
# example window rules
|
||||||
# for windows named/classed as abc and xyz
|
# for windows named/classed as abc and xyz
|
||||||
|
windowrule=tile,^(.*)(Spotify)(.*)$
|
||||||
windowrule=center,^(.*)$
|
windowrule=center,^(.*)$
|
||||||
#windowrule=size 420 69,abc
|
|
||||||
#windowrule=tile,xyz
|
#windowrule=tile,xyz
|
||||||
#windowrule=float,abc
|
#windowrule=float,abc
|
||||||
#windowrule=pseudo,abc
|
#windowrule=pseudo,abc
|
||||||
|
|
@ -98,13 +92,18 @@ bind=SUPER,M,exit,
|
||||||
bind=SUPER,E,exec,nautilus --new-window
|
bind=SUPER,E,exec,nautilus --new-window
|
||||||
bind=SUPER,V,togglefloating,
|
bind=SUPER,V,togglefloating,
|
||||||
bind=SUPER,R,exec,wofi --show drun -o DP-3
|
bind=SUPER,R,exec,wofi --show drun -o DP-3
|
||||||
bind=SUPER,P,exec,eww reload
|
bind=SUPER,C,togglesplit
|
||||||
bind=SUPER,B,exec,eww close-all
|
bind=SUPER,backslash,layoutmsg,cyclenext
|
||||||
|
|
||||||
bind=SUPER,left,movefocus,l
|
bind=SUPER,bracketleft,movefocus,l
|
||||||
bind=SUPER,right,movefocus,r
|
bind=SUPER,bracketright,movefocus,r
|
||||||
bind=SUPER,up,movefocus,u
|
bind=SUPER,semicolon,movefocus,u
|
||||||
bind=SUPER,down,movefocus,d
|
bind=SUPER,apostrophe,movefocus,d
|
||||||
|
|
||||||
|
bind=SUPER,left,movewindow,l
|
||||||
|
bind=SUPER,right,movewindow,r
|
||||||
|
bind=SUPER,up,movewindow,u
|
||||||
|
bind=SUPER,down,movewindow,d
|
||||||
|
|
||||||
bind=SUPER,1,workspace,1
|
bind=SUPER,1,workspace,1
|
||||||
bind=SUPER,2,workspace,2
|
bind=SUPER,2,workspace,2
|
||||||
|
|
@ -131,8 +130,8 @@ bind=ALT,0,movetoworkspace,10
|
||||||
bind=SUPER,mouse_down,workspace,e+1
|
bind=SUPER,mouse_down,workspace,e+1
|
||||||
bind=SUPER,mouse_up,workspace,e-1
|
bind=SUPER,mouse_up,workspace,e-1
|
||||||
|
|
||||||
bind=SUPER,I,resizeactive,-20 0
|
bind=SUPER,O,resizeactive,-20 0
|
||||||
bind=SUPER,O,resizeactive,20 0
|
bind=SUPER,P,resizeactive,20 0
|
||||||
bind=SUPER,K,resizeactive,0 -20
|
bind=SUPER,K,resizeactive,0 -20
|
||||||
bind=SUPER,L,resizeactive,0 20
|
bind=SUPER,L,resizeactive,0 20
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue