mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
started on dashboard
This commit is contained in:
parent
663d7cf50b
commit
a7d563b06c
8 changed files with 131 additions and 16 deletions
25
modules/ewwbar/eww-config/dashboard/dashboard.scss
Normal file
25
modules/ewwbar/eww-config/dashboard/dashboard.scss
Normal file
|
@ -0,0 +1,25 @@
|
|||
.dash_window {
|
||||
background-color: $bkgrnd;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.btn_logout, .btn_restart, .btn_shutdown, .btn_switch_windows {
|
||||
font-size: 40px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.btn_logout {
|
||||
color: #7a49a5;
|
||||
}
|
||||
|
||||
.btn_restart {
|
||||
color: #ffa500;
|
||||
}
|
||||
|
||||
.btn_shutdown {
|
||||
color: #4a8bad;
|
||||
}
|
||||
|
||||
.btn_switch_windows {
|
||||
color: #0dc5ff;
|
||||
}
|
79
modules/ewwbar/eww-config/dashboard/dashboard.yuck
Normal file
79
modules/ewwbar/eww-config/dashboard/dashboard.yuck
Normal file
|
@ -0,0 +1,79 @@
|
|||
|
||||
|
||||
(defwidget logout []
|
||||
(box :class "dash_window"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
(button :class "btn_logout"
|
||||
:onclick "hyprctl dispatch exit"
|
||||
"")))
|
||||
|
||||
(defwidget restart []
|
||||
(box :class "dash_window"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
(button :class "btn_restart"
|
||||
:onclick "systemctl reboot"
|
||||
"")))
|
||||
|
||||
(defwidget shutdown []
|
||||
(box :class "dash_window"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
(button :class "btn_shutdown"
|
||||
:onclick "systemctl poweroff"
|
||||
"")))
|
||||
|
||||
(defwidget reboot_windows []
|
||||
(box :class "dash_window"
|
||||
:vexpand "false"
|
||||
:hexpand "false"
|
||||
(button :class "btn_switch_windows"
|
||||
:onclick "kitty @ launch"
|
||||
;; :onclick "kitty --session /home/nixolas/.config/eww/scripts/switch-to-windows-kitty.conf -T switch-to-windows-elevation"
|
||||
"")))
|
||||
|
||||
;; Set up prompt window for sudo password
|
||||
;; that trigglers on reboot_windows,
|
||||
;; and runs the windows command
|
||||
|
||||
|
||||
(defwindow logout
|
||||
:stacking "bg"
|
||||
:focusable "false"
|
||||
:monitor 0
|
||||
:geometry (geometry :x 1400
|
||||
:y 200
|
||||
:width 75
|
||||
:height 75)
|
||||
(logout))
|
||||
|
||||
(defwindow restart
|
||||
:stacking "bg"
|
||||
:focusable "false"
|
||||
:monitor 0
|
||||
:geometry (geometry :x 1400
|
||||
:y 280
|
||||
:width 75
|
||||
:height 75)
|
||||
(restart))
|
||||
|
||||
(defwindow shutdown
|
||||
:stacking "bg"
|
||||
:focusable "false"
|
||||
:monitor 0
|
||||
:geometry (geometry :x 1400
|
||||
:y 360
|
||||
:width 75
|
||||
:height 75)
|
||||
(shutdown))
|
||||
|
||||
(defwindow reboot_windows
|
||||
:stacking "bg"
|
||||
:focusable "false"
|
||||
:monitor 0
|
||||
:geometry (geometry :x 1400
|
||||
:y 440
|
||||
:width 75
|
||||
:height 75)
|
||||
(reboot_windows))
|
|
@ -7,12 +7,13 @@ $light_bkgrnd: rgba(60, 60, 60, 0.8);
|
|||
|
||||
@import "./modules/center-clock.scss"
|
||||
@import "./modules/volume-osd.scss"
|
||||
@import "./dashboard/dashboard.scss"
|
||||
|
||||
//Global Styles
|
||||
.bar-main {
|
||||
background-color: $bkgrnd;
|
||||
color: #FFFFFF;
|
||||
border-radius: 10;
|
||||
border-radius: 10px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
@ -38,7 +39,7 @@ $light_bkgrnd: rgba(60, 60, 60, 0.8);
|
|||
|
||||
.active-workspace {
|
||||
background-color: rgba(150, 150, 150, 0.4);
|
||||
border-radius: 10;
|
||||
border-radius: 10px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
@ -46,7 +47,7 @@ $light_bkgrnd: rgba(60, 60, 60, 0.8);
|
|||
.side-stuff {
|
||||
background-color: $bkgrnd;
|
||||
color: #FFFFFF;
|
||||
border-radius: 10;
|
||||
border-radius: 10px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
font-size: 1.2rem;
|
||||
|
|
|
@ -160,3 +160,4 @@
|
|||
(defvar open_vol_osd false)
|
||||
(defvar ANIM_DURATION "500ms")
|
||||
(include "./modules/volume-osd.yuck")
|
||||
(include "./dashboard/dashboard.yuck")
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
launch echo "Elevation required to default to Grub entry 2 on reboot"; sudo grub-reboot 1; sudo reboot
|
|
@ -44,7 +44,7 @@ in
|
|||
|
||||
exec-once = [
|
||||
"${pkgs.swww}/bin/swww init & sleep 0.5 & ${pkgs.swww}/bin/swww /home/nixolas/Downloads/RecountERD.png"
|
||||
"eww open bar"
|
||||
"eww open bar;eww open logout;eww open restart;eww open shutdown;eww open reboot_windows"
|
||||
];
|
||||
|
||||
input = {
|
||||
|
|
|
@ -7,19 +7,26 @@ let
|
|||
in
|
||||
{
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
workspace = if (hostname == "NicksNixDesktop") then [
|
||||
"1,monitor:DP-3,default:true"
|
||||
"3,monitor:DP-3"
|
||||
"5,monitor:DP-3"
|
||||
"7,monitor:DP-3"
|
||||
"9,monitor:DP-3"
|
||||
|
||||
"2,monitor:DP-2,default:true"
|
||||
"4,monitor:DP-2"
|
||||
"6,monitor:DP-2"
|
||||
"8,monitor:DP-2"
|
||||
] else [
|
||||
windowrulev2 = [
|
||||
"float,class:^(kitty)$,title:^switch-to-windows-elevation"
|
||||
# "center,class:^(kitty)$,title:^switch-to-windows-elevation"
|
||||
# "size 40% 40%,class:^(kitty)$,title:^switch-to-windows-elevation"
|
||||
];
|
||||
|
||||
];
|
||||
workspace = if (hostname == "NicksNixDesktop") then [
|
||||
"1,monitor:DP-3,default:true"
|
||||
"3,monitor:DP-3"
|
||||
"5,monitor:DP-3"
|
||||
"7,monitor:DP-3"
|
||||
"9,monitor:DP-3"
|
||||
|
||||
"2,monitor:DP-2,default:true"
|
||||
"4,monitor:DP-2"
|
||||
"6,monitor:DP-2"
|
||||
"8,monitor:DP-2"
|
||||
] else [
|
||||
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ in
|
|||
# theme = "colbalt-neon";
|
||||
|
||||
settings = {
|
||||
allow_remote_control = true;
|
||||
shell = "zsh";
|
||||
background_blur = "4";
|
||||
background_opacity = "0.8";
|
||||
|
|
Loading…
Reference in a new issue