waybar ricing and alacritty transparency
This commit is contained in:
parent
bd8fbdacd0
commit
f60f4bee7a
|
@ -8,7 +8,7 @@
|
|||
dimInactive = true;
|
||||
terminalColors = true;
|
||||
theme = "wave";
|
||||
transparent = false;
|
||||
transparent = true;
|
||||
undercurl = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
user = config.home.username;
|
||||
in
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
|
@ -38,10 +35,14 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
window.padding = {
|
||||
window = {
|
||||
padding = {
|
||||
x = 5;
|
||||
y = 5;
|
||||
};
|
||||
blur = true;
|
||||
opacity = 0.9;
|
||||
};
|
||||
|
||||
shell.program = "${pkgs.zsh}/bin/zsh";
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
{ lib
|
||||
, config
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
|
||||
imports = [
|
||||
|
@ -25,7 +24,8 @@
|
|||
monitor = "${toString (builtins.map (m: "monitor=${ m.name },${ toString( m.width ) }x${ toString( m.height ) }@${ toString( m.refreshRate ) },${ toString( m.x ) }x${ toString( m.y ) },${ toString( m.scale ) }\n") config.monitors)}";
|
||||
active = "rgba(${config.colorScheme.colors.base08}ee)";
|
||||
inactive = "rgba(${config.colorScheme.colors.base0C}ee)";
|
||||
in ''
|
||||
in
|
||||
''
|
||||
|
||||
${monitor}
|
||||
$terminal = alacritty
|
||||
|
@ -155,7 +155,7 @@
|
|||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
exec-once=bash ~/.config/hypr/start.sh
|
||||
exec-once=swww-wallpaper-changer
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,37 +1,19 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
systemd.user.services.wallpaper-changer = {
|
||||
Unit = {
|
||||
Description = "Script to change wallpaper using swww";
|
||||
PartOf = [ "hyprland-session.target" ];
|
||||
After = [ "hyprland-session.target" ]; # or "wayland.target", depending on your system setup
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "default.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = [ "simple" ];
|
||||
ExecStart = "${pkgs.writeShellScript "swww-wallpaper-changer" ''
|
||||
home.packages = with pkgs; [
|
||||
(writeShellScriptBin "swww-wallpaper-changer" ''
|
||||
export WAYLAND_DISPLAY="wayland-1"
|
||||
wallpaper_dir="$HOME/.local/share/bg/"
|
||||
[ -d "$wallpaper_dir" ] || mkdir -p "$wallpaper_dir"
|
||||
|
||||
# Allow some time for desktop to start
|
||||
sleep 3
|
||||
echo "starting daemon..."
|
||||
${pkgs.swww}/bin/swww-daemon &
|
||||
${swww}/bin/swww-daemon &
|
||||
|
||||
while true; do
|
||||
find "$wallpaper_dir" -type f -follow \( -iname \*.jpg -o -iname \*.png -o -iname \*.gif -o -iname \*.bmp \) | shuf | while read -r file; do
|
||||
${pkgs.swww}/bin/swww img "$file" --transition-step 10 --transition-fps 60
|
||||
[ $? != 0 ] && echo "swww failed, reloading daemon" && ${pkgs.swww}/bin/swww-daemon &
|
||||
${swww}/bin/swww img "$file" --transition-step 10 --transition-fps 60
|
||||
[ $? != 0 ] && echo "swww failed, exiting" && exit 1
|
||||
sleep 600
|
||||
done
|
||||
done
|
||||
''}";
|
||||
};
|
||||
};
|
||||
'')
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
{ lib
|
||||
, config
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
# Let it try to start a few more times
|
||||
systemd.user.services.waybar = {
|
||||
|
@ -20,10 +19,14 @@
|
|||
spacing = 5;
|
||||
modules-left = [
|
||||
"custom/menu"
|
||||
"wlr/workspaces"];
|
||||
"hyprland/workspaces"
|
||||
"hyprland/window"
|
||||
];
|
||||
|
||||
modules-center = [
|
||||
"clock"
|
||||
];
|
||||
|
||||
modules-right = [
|
||||
"cpu"
|
||||
"memory"
|
||||
|
@ -33,32 +36,40 @@
|
|||
"tray"
|
||||
"custom/exit"
|
||||
"custom/hostname"
|
||||
"custom/ip"
|
||||
];
|
||||
"wlr/workspaces" = {
|
||||
"format" = "{icon}";
|
||||
|
||||
"hyprland/window" = {
|
||||
"format" = "{}";
|
||||
"rewrite" = {
|
||||
"(.*) — Mozilla Firefox" = "$1";
|
||||
};
|
||||
"separate-outputs" = true;
|
||||
};
|
||||
|
||||
"hyprland/workspaces" = {
|
||||
"format" = "{name}";
|
||||
"on-click" = "activate";
|
||||
"format-icons" = {
|
||||
"1" = "";
|
||||
"2" = "";
|
||||
"3" = "";
|
||||
"4" = "";
|
||||
"5" = "";
|
||||
"urgent" = "";
|
||||
"active" = "";
|
||||
"default" = "";
|
||||
"urgent" = "";
|
||||
"active" = "";
|
||||
"default" = "";
|
||||
};
|
||||
};
|
||||
|
||||
"clock" = {
|
||||
"format" = "<span> </span>{:%m/%d %H:%M}";
|
||||
"format" = "<span> </span>{:%y-%m-%d %H:%M:%S}";
|
||||
"tooltip-format" = "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>";
|
||||
"on-click" = "calendar";
|
||||
};
|
||||
|
||||
"cpu" = {
|
||||
"interval" = 10;
|
||||
"format" = " {}%";
|
||||
"max-length" = 10;
|
||||
"on-click" = "";
|
||||
};
|
||||
|
||||
"memory" = {
|
||||
"interval" = 30;
|
||||
"format" = " {}%";
|
||||
|
@ -68,9 +79,8 @@
|
|||
|
||||
"network" = {
|
||||
"format-wifi" = "直 {signalStrength}%";
|
||||
"format-ethernet" = " wired";
|
||||
"format-ethernet" = " wired ({ipaddr})";
|
||||
"format-disconnected" = "睊";
|
||||
"on-click" = "bash ~/.config/waybar/scripts/rofi-wifi-menu.sh";
|
||||
};
|
||||
|
||||
"battery" = {
|
||||
|
@ -97,13 +107,13 @@
|
|||
};
|
||||
|
||||
"custom/menu" = {
|
||||
"format" = "";
|
||||
"on-click" = "rofi -show drun";
|
||||
"format" = " Nixos";
|
||||
"on-click" = "wofi --show drun";
|
||||
};
|
||||
|
||||
"custom/hostname" = {
|
||||
"exec" = "echo $USER@$(hostname)";
|
||||
"on-click" = "alacritty";
|
||||
"on-click" = "$TERMINAL";
|
||||
};
|
||||
|
||||
"custom/exit" = {
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
{ pkgs ? import <nixpkgs> { }, stdenv, fetchFromGitHub }:
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
{ pkgs ? import <nixpkgs> { }, fetchFromGitHub }:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "sddm-theme";
|
||||
version = "1.6";
|
||||
dontBuild = true;
|
||||
# nativeBuildInputs = with pkgs; [
|
||||
# sddm
|
||||
# ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/sddm/themes
|
||||
cp -aR $src $out/share/sddm/themes/sugar-candy
|
||||
touch $out/share/sddm/themes/balls
|
||||
'';
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Kangie";
|
||||
repo = "sddm-sugar-candy";
|
||||
|
|
Loading…
Reference in New Issue