From bb0e55e6ed186a0f0b1b6a67b048e45e425ef8e9 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 1 Jun 2024 23:42:50 +0530 Subject: [PATCH] remove conky; add eww --- home/wm/addon/conky/conky.conf | 77 ------------------------------- home/wm/addon/conky/default.nix | 6 --- home/wm/addon/default.nix | 2 +- home/wm/addon/eww/config/eww.scss | 0 home/wm/addon/eww/config/eww.yuck | 11 +++++ home/wm/addon/eww/default.nix | 6 +++ 6 files changed, 18 insertions(+), 84 deletions(-) delete mode 100644 home/wm/addon/conky/conky.conf delete mode 100644 home/wm/addon/conky/default.nix create mode 100644 home/wm/addon/eww/config/eww.scss create mode 100644 home/wm/addon/eww/config/eww.yuck create mode 100644 home/wm/addon/eww/default.nix diff --git a/home/wm/addon/conky/conky.conf b/home/wm/addon/conky/conky.conf deleted file mode 100644 index b31af4d..0000000 --- a/home/wm/addon/conky/conky.conf +++ /dev/null @@ -1,77 +0,0 @@ -conky.config = { - alignment = 'top_right', - background = false, - border_width = 0, - border_inner_margin = 6, - border_outer_margin = 6, - cpu_avg_samples = 1, - default_color = 'white', - default_outline_color = 'black', - default_shade_color = 'black', - draw_borders = true, - draw_graph_borders = true, - draw_outline = true, - draw_shades = true, - use_xft = true, - font = 'FiraCode Nerd Font:size=12', - gap_x = 24, - gap_y = 48, - minimum_height = 9, - minimum_width = 16, - net_avg_samples = 2, - no_buffers = true, - out_to_console = false, - out_to_ncurses = false, - out_to_stderr = false, - out_to_x = false, - out_to_wayland = true, - extra_newline = false, - own_window = true, - own_window_argb_visual = true, - own_window_class = 'Conky', - own_window_transparent = false, - own_window_type = 'desktop', - own_window_argb_visual = true, - own_window_argb_value = 150, - stippled_borders = 0, - update_interval = 1.0, - uppercase = false, - use_spacer = 'none', - show_graph_scale = false, - show_graph_range = false, - double_buffer = true, -} - -conky.text = [[ -$hr -${font FiraCode Nerd Font Medium:size=16}System${font}$alignr$color$nodename ($machine) -${color grey}Distribution$alignr$color$distribution -${color grey}Kernel$alignr$color$sysname $kernel -$hr -${font FiraCode Nerd Font Medium:size=16}Battery${font}$alignr$color${battery_short} -${color grey}Full/Empty In$alignr$color$battery_time -${color grey}Uptime$alignr$color$uptime_short -$hr -${font FiraCode Nerd Font Medium:size=16}Resources${font} -${color grey}RAM${alignr}$color$mem ($memwithbuffers)${color grey} used of $color$memmax -${color grey}SWAP$alignr$color$swap${color grey} used of $color$swapmax -${color grey}CPU$alignr$color${cpu cpu0}% -${cpubar cpu1 6,100} ${cpubar cpu2 6,100} ${cpubar cpu3 6,100} ${cpubar cpu4 6,100} -${cpubar cpu5 6,100} ${cpubar cpu6 6,100} ${cpubar cpu7 6,100} ${cpubar cpu8 6,100} -$hr -${font FiraCode Nerd Font Medium:size=16}Storage${font} -${color grey}/boot$alignr$color${fs_free /boot}${color grey} free of $color${fs_size /boot} -${fs_bar 6 /boot} -${color grey}/mnt/system$alignr$color${fs_free /mnt/system}${color grey} free of $color${fs_size /mnt/system} -${fs_bar 6 /mnt/system} -$hr -${font FiraCode Nerd Font:size=14}I/O${font}$alignr${font FiraCode Nerd Font:size=8}(Read/Write)${font} -${color grey}/dev/nvme0n1 $alignr$color${diskio_read /dev/nvme0n1} / ${diskio_write /dev/nvme0n1} -$hr -${font FiraCode Nerd Font:size=14}Network${font}$alignr${font FiraCode Nerd Font:size=8}(Total/Rate)${font} -${color}WiFi -${color grey}Rx: ${alignr}$color${totaldown wlan0} (${downspeedf wlan0}KiB/s) -${color grey}Tx: ${alignr}$color${totalup wlan0} (${upspeedf wlan0}KiB/s) -$hr -]] - diff --git a/home/wm/addon/conky/default.nix b/home/wm/addon/conky/default.nix deleted file mode 100644 index c5449d6..0000000 --- a/home/wm/addon/conky/default.nix +++ /dev/null @@ -1,6 +0,0 @@ -_: { - services.conky = { - enable = true; - extraConfig = builtins.readFile ./conky.conf; - }; -} diff --git a/home/wm/addon/default.nix b/home/wm/addon/default.nix index e1ba0e4..a6b420e 100644 --- a/home/wm/addon/default.nix +++ b/home/wm/addon/default.nix @@ -1,6 +1,6 @@ { ... }: { imports = [ - ./conky + ./eww ./hyprlock ./rofi ./swaync diff --git a/home/wm/addon/eww/config/eww.scss b/home/wm/addon/eww/config/eww.scss new file mode 100644 index 0000000..e69de29 diff --git a/home/wm/addon/eww/config/eww.yuck b/home/wm/addon/eww/config/eww.yuck new file mode 100644 index 0000000..68fd6c2 --- /dev/null +++ b/home/wm/addon/eww/config/eww.yuck @@ -0,0 +1,11 @@ +(defwindow activate-notice + :monitor 0 + :geometry (geometry :x "20px" + :y "20px" + :width "200px" + :height "50px" + :anchor "bottom right") + :stacking "fg" + :exclusive false + :focusable false +"Test driving eww!") diff --git a/home/wm/addon/eww/default.nix b/home/wm/addon/eww/default.nix new file mode 100644 index 0000000..49d53f4 --- /dev/null +++ b/home/wm/addon/eww/default.nix @@ -0,0 +1,6 @@ +_: { + programs.eww = { + enable = true; + configDir = ./config; + }; +}