Compare commits
2 commits
85842b9060
...
b480353548
Author | SHA1 | Date | |
---|---|---|---|
b480353548 | |||
2b1ab1608d |
11 changed files with 150 additions and 25 deletions
|
@ -1,6 +1,6 @@
|
||||||
$darkbg: #0b0d16;
|
$darkbg: #0b0d16;
|
||||||
$bg: rgb(24, 27, 35); //rgba(69, 71, 90, 0.3); #0d0f18;
|
$bg: rgb(40, 42, 54); //rgba(69, 71, 90, 0.3); #0d0f18;
|
||||||
$contrastbg: #0f111a;
|
$contrastbg: rgba(189, 147, 249, 0.8);
|
||||||
$bgSecondary: #11131c;
|
$bgSecondary: #11131c;
|
||||||
$bgSecondaryAlt: #a5b6cf;
|
$bgSecondaryAlt: #a5b6cf;
|
||||||
$fg: #a5b6cf;
|
$fg: #a5b6cf;
|
||||||
|
|
|
@ -1,6 +1,13 @@
|
||||||
|
.osk-toggle {
|
||||||
|
font-size: 30px;
|
||||||
|
min-height: 26px;
|
||||||
|
min-width: 50px;
|
||||||
|
padding: 0px 0px 0px 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.notif-panel {
|
.notif-panel {
|
||||||
min-width: 50px;
|
min-width: 50px;
|
||||||
min-height: 16px;
|
min-height: 26px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
padding: 2px 25px 2px 35px;
|
padding: 2px 25px 2px 35px;
|
||||||
}
|
}
|
||||||
|
@ -15,7 +22,7 @@
|
||||||
transition: border-color 0.5s ease-in-out;
|
transition: border-color 0.5s ease-in-out;
|
||||||
color: #CBA6F7;
|
color: #CBA6F7;
|
||||||
border-radius: 80px;
|
border-radius: 80px;
|
||||||
border: 3px solid $contrastbg;
|
border: 2px solid #1b1b2b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toggle-off:hover {
|
.toggle-off:hover {
|
||||||
|
@ -28,7 +35,7 @@
|
||||||
transition: border-color 0.5s ease-in-out;
|
transition: border-color 0.5s ease-in-out;
|
||||||
color: #CBA6F7;
|
color: #CBA6F7;
|
||||||
border-radius: 80px;
|
border-radius: 80px;
|
||||||
border: 3px solid #CBA6F7;
|
border: 2px solid $contrastbg;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toggle-on:hover {
|
.toggle-on:hover {
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
(defvar osk-toggle-state false)
|
||||||
|
|
||||||
|
(defwidget osk-toggle []
|
||||||
|
(eventbox :class {osk-toggle-state ? "toggle-on" : "toggle-off"}
|
||||||
|
:onclick "$HYPR_PATH/osk-toggle.sh toggle &"
|
||||||
|
(box :class "osk-toggle"
|
||||||
|
:space-evenly true
|
||||||
|
:spacing 6
|
||||||
|
:orientation "h"
|
||||||
|
(label :text " ")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
(defwindow osk-toggle
|
||||||
|
:monitor 0
|
||||||
|
:stacking "overlay"
|
||||||
|
:exclusive "ignore"
|
||||||
|
:geometry (geometry :x "10px"
|
||||||
|
:y "9px"
|
||||||
|
:width "0px"
|
||||||
|
:height "0px"
|
||||||
|
:anchor "top left"
|
||||||
|
)
|
||||||
|
(osk-toggle)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(defvar toggle-state false)
|
(defvar toggle-state false)
|
||||||
|
|
||||||
(defwidget tablet-toggle []
|
(defwidget tablet-toggle []
|
||||||
|
@ -17,7 +46,7 @@
|
||||||
:monitor 0
|
:monitor 0
|
||||||
:stacking "overlay"
|
:stacking "overlay"
|
||||||
:exclusive "ignore"
|
:exclusive "ignore"
|
||||||
:geometry (geometry :x "66px"
|
:geometry (geometry :x "72px"
|
||||||
:y "9px"
|
:y "9px"
|
||||||
:width "0px"
|
:width "0px"
|
||||||
:height "0px"
|
:height "0px"
|
||||||
|
@ -26,6 +55,8 @@
|
||||||
(tablet-toggle)
|
(tablet-toggle)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(defvar notif-panel-state false)
|
(defvar notif-panel-state false)
|
||||||
|
|
||||||
(defwidget notif-panel []
|
(defwidget notif-panel []
|
||||||
|
@ -46,7 +77,7 @@
|
||||||
:stacking "overlay"
|
:stacking "overlay"
|
||||||
:exclusive "ignore"
|
:exclusive "ignore"
|
||||||
:geometry (geometry :x "50px"
|
:geometry (geometry :x "50px"
|
||||||
:y "10px"
|
:y "11px"
|
||||||
:width "0px"
|
:width "0px"
|
||||||
:height "0px"
|
:height "0px"
|
||||||
:anchor "top right"
|
:anchor "top right"
|
||||||
|
|
|
@ -26,6 +26,9 @@ exec-once = bash -c "sleep 7; GalaxyBudsClient /StartMinimized"
|
||||||
exec-once = eww daemon
|
exec-once = eww daemon
|
||||||
exec-once = eww open tablet-toggle
|
exec-once = eww open tablet-toggle
|
||||||
exec-once = eww open notif-panel
|
exec-once = eww open notif-panel
|
||||||
|
exec-once = eww open osk-toggle
|
||||||
|
# TODO: put this in eww configs?
|
||||||
|
exec-once = $HYPR_PATH/osk-toggle.sh getState
|
||||||
|
|
||||||
# sometimes waybar starts after and stops me from pressing eww buttons
|
# sometimes waybar starts after and stops me from pressing eww buttons
|
||||||
exec-once = bash -c "sleep 0.5; eww reload"
|
exec-once = bash -c "sleep 0.5; eww reload"
|
||||||
|
@ -158,6 +161,8 @@ windowrule = float,^(com.nextcloud.desktopclient.nextcloud)$
|
||||||
windowrule = move cursor 0 25,^(com.nextcloud.desktopclient.nextcloud)$
|
windowrule = move cursor 0 25,^(com.nextcloud.desktopclient.nextcloud)$
|
||||||
windowrule = size 400 581,^(com.nextcloud.desktopclient.nextcloud)$
|
windowrule = size 400 581,^(com.nextcloud.desktopclient.nextcloud)$
|
||||||
|
|
||||||
|
windowrule = tile,^(photoshop.exe)$
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
|
|
||||||
|
@ -217,6 +222,7 @@ bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
|
||||||
# Take a screenshot
|
# Take a screenshot
|
||||||
bind =, Print, exec, bash -c 'grim -g "$(slurp)" - | swappy -f -'
|
bind =, Print, exec, bash -c 'grim -g "$(slurp)" - | swappy -f -'
|
||||||
|
bind = $mainMod SHIFT, C, exec, wl-color-picker
|
||||||
|
|
||||||
# Volume control
|
# Volume control
|
||||||
binde =, XF86AudioRaiseVolume, exec, swayosd --output-volume raise
|
binde =, XF86AudioRaiseVolume, exec, swayosd --output-volume raise
|
||||||
|
|
|
@ -1,10 +1,35 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ $(busctl get-property --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible) == "b true" ]]
|
state () {
|
||||||
then
|
if [[ $(busctl get-property --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible) == "b true" ]]; then
|
||||||
echo "Running"
|
echo "Running"
|
||||||
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false
|
eww update osk-toggle-state=true
|
||||||
else
|
else
|
||||||
echo "Stopped"
|
echo "Stopped"
|
||||||
|
eww update osk-toggle-state=false
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
toggle () {
|
||||||
|
if [[ $(busctl get-property --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible) == "b true" ]]; then
|
||||||
|
echo "Running"
|
||||||
|
eww update osk-toggle-state=false
|
||||||
|
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false
|
||||||
|
else
|
||||||
|
echo "Stopped"
|
||||||
|
eww update osk-toggle-state=true
|
||||||
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
|
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ $1 == "getState" ]]; then
|
||||||
|
while true; do
|
||||||
|
sleep 0.2
|
||||||
|
state
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $1 == "toggle" ]];then
|
||||||
|
toggle
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "",
|
"label": "",
|
||||||
"command": "swaync-client -cp; sleep 1; eww open closer; $EWW_PATH/open.sh powermenu"
|
"command": "swaync-client -cp; sleep 0.9; eww open closer; $EWW_PATH/open.sh powermenu"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -324,7 +324,7 @@
|
||||||
|
|
||||||
.widget-volume {
|
.widget-volume {
|
||||||
background-color: @background;
|
background-color: @background;
|
||||||
padding: 4px 8px 8px 8px;
|
padding: 4px 16px 8px 8px;
|
||||||
margin: 0px 8px 8px 8px;
|
margin: 0px 8px 8px 8px;
|
||||||
font-size: x-large;
|
font-size: x-large;
|
||||||
border-bottom: 2px solid @accent;
|
border-bottom: 2px solid @accent;
|
||||||
|
@ -336,7 +336,7 @@
|
||||||
|
|
||||||
.widget-backlight {
|
.widget-backlight {
|
||||||
background-color: @background;
|
background-color: @background;
|
||||||
padding: 8px 8px 4px 8px;
|
padding: 8px 16px 4px 8px;
|
||||||
margin: 8px 8px 0px 8px;
|
margin: 8px 8px 0px 8px;
|
||||||
font-size: x-large;
|
font-size: x-large;
|
||||||
border-top: 2px solid @accent;
|
border-top: 2px solid @accent;
|
||||||
|
|
|
@ -37,8 +37,10 @@
|
||||||
|
|
||||||
plymouth = {
|
plymouth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
themePackages = [ pkgs.catppuccin-plymouth ];
|
#themePackages = [ pkgs.catppuccin-plymouth ];
|
||||||
theme = "catppuccin-macchiato";
|
#theme = "catppuccin-macchiato";
|
||||||
|
themePackages = [ (with import <nixpkgs> {}; callPackage ../overlays/dracula-plymouth.nix {}) ];
|
||||||
|
theme = "dracula";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{config, pkgs, ...}:
|
{config, pkgs, lib, ...}:
|
||||||
|
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
|
@ -6,12 +6,21 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
layout = "ca";
|
layout = "ca";
|
||||||
displayManager = {
|
displayManager = {
|
||||||
gdm = {
|
sddm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wayland = true;
|
settings = {
|
||||||
|
General = {
|
||||||
|
DisplayServer = "wayland";
|
||||||
|
InputMethod = "";
|
||||||
|
};
|
||||||
|
Wayland.CompositorCommand = "${pkgs.weston}/bin/weston --shell=fullscreen-shell.so";
|
||||||
|
Theme = {
|
||||||
|
Current = "Dracula";
|
||||||
|
ThemeDir = "${pkgs.dracula-theme}/share/sddm/themes";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
sessionPackages = [
|
sessionPackages = [
|
||||||
pkgs.gnome.gnome-session.sessions # gnome session needed to fix bugs
|
|
||||||
(builtins.getFlake "github:hyprwm/Hyprland").packages.x86_64-linux.default
|
(builtins.getFlake "github:hyprwm/Hyprland").packages.x86_64-linux.default
|
||||||
];
|
];
|
||||||
defaultSession = "hyprland";
|
defaultSession = "hyprland";
|
||||||
|
@ -39,6 +48,7 @@
|
||||||
"/nix/var/log/nix"
|
"/nix/var/log/nix"
|
||||||
"/proc"
|
"/proc"
|
||||||
"/run/user/1000"
|
"/run/user/1000"
|
||||||
|
"${pkgs.findutils}/" # doesn't work?
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -153,6 +163,8 @@
|
||||||
evtest
|
evtest
|
||||||
plasma5Packages.kio-admin
|
plasma5Packages.kio-admin
|
||||||
plasma5Packages.ksshaskpass
|
plasma5Packages.ksshaskpass
|
||||||
|
plasma5Packages.plasma-framework
|
||||||
|
plasma5Packages.plasma-workspace
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
(with python311Packages; [
|
(with python311Packages; [
|
||||||
python
|
python
|
||||||
pyclip
|
pyclip
|
||||||
|
gdown
|
||||||
|
|
||||||
]) ++
|
]) ++
|
||||||
(with plasma5Packages; [
|
(with plasma5Packages; [
|
||||||
|
@ -74,6 +75,8 @@
|
||||||
dracula-theme
|
dracula-theme
|
||||||
dracula-icon-theme
|
dracula-icon-theme
|
||||||
steam-run
|
steam-run
|
||||||
|
wineWowPackages.stable
|
||||||
|
cabextract
|
||||||
qt5.qtwayland
|
qt5.qtwayland
|
||||||
qt6.qtwayland
|
qt6.qtwayland
|
||||||
bottles-unwrapped
|
bottles-unwrapped
|
||||||
|
|
39
nixos/overlays/dracula-plymouth.nix
Normal file
39
nixos/overlays/dracula-plymouth.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pkgs
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "dracula-plymouth";
|
||||||
|
version = "unstable-2023-01-13";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
repo = "plymouth";
|
||||||
|
owner = "dracula";
|
||||||
|
rev = "37aa09b27ecee4a825b43d2c1d20b502e8f19c96";
|
||||||
|
hash = "sha256-7YwkBzkAND9lfH2ewuwna1zUkQStBBx4JHGw3/+svhA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontConfigure = true;
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/share/plymouth/themes
|
||||||
|
mv ./dracula $out/share/plymouth/themes/
|
||||||
|
|
||||||
|
sed -i "s@\/usr\/@$out\/@" $out/share/plymouth/themes/dracula/dracula.plymouth
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A dark theme for Plymouth";
|
||||||
|
homepage = "https://github.com/dracula/plymouth/tree/main";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ matt1432 ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue