mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-01-11 15:08:13 +01:00
change config options and add wlogout
This commit is contained in:
parent
e4dc5144cd
commit
d44a098b7c
@ -15,6 +15,7 @@
|
||||
./rofi.nix
|
||||
./starship.nix
|
||||
./waybar.nix
|
||||
./wlogout.nix
|
||||
./swappy.nix
|
||||
./swaylock.nix
|
||||
./swaync.nix
|
||||
|
@ -53,6 +53,7 @@ in {
|
||||
enable = true;
|
||||
keymaps = {
|
||||
"<leader>ff" = "find_files";
|
||||
"<leader>lg" = "live_grep";
|
||||
};
|
||||
};
|
||||
neo-tree.enable = true;
|
||||
@ -68,22 +69,6 @@ in {
|
||||
enable = true;
|
||||
theme = "dashboard";
|
||||
};
|
||||
lint = {
|
||||
enable = true;
|
||||
lintersByFt = {
|
||||
text = ["vale"];
|
||||
json = ["jsonlint"];
|
||||
markdown = ["vale"];
|
||||
rst = ["vale"];
|
||||
ruby = ["ruby"];
|
||||
janet = ["janet"];
|
||||
inko = ["inko"];
|
||||
clojure = ["clj-kondo"];
|
||||
dockerfile = ["hadolint"];
|
||||
terraform = ["tflint"];
|
||||
typscriptreact = ["prettier_eslint"];
|
||||
};
|
||||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = {
|
||||
|
@ -24,6 +24,7 @@ in {
|
||||
(import ./../scripts/rofi-launcher.nix { inherit pkgs; })
|
||||
(import ./../scripts/screenshootin.nix { inherit pkgs; })
|
||||
(import ./../scripts/list-hypr-bindings.nix { inherit pkgs; })
|
||||
(import ./../scripts/logout-sys.nix { inherit pkgs; })
|
||||
];
|
||||
|
||||
programs.gh.enable = true;
|
||||
|
83
config/home/wlogout.nix
Normal file
83
config/home/wlogout.nix
Normal file
@ -0,0 +1,83 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
palette = config.colorScheme.palette;
|
||||
in {
|
||||
programs.wlogout = {
|
||||
enable = true;
|
||||
layout = [
|
||||
{
|
||||
label = "shutdown";
|
||||
action = "sleep 1; systemctl poweroff";
|
||||
text = "Shutdown";
|
||||
keybind = "s";
|
||||
}
|
||||
{
|
||||
"label" = "reboot";
|
||||
"action" = "sleep 1; systemctl reboot";
|
||||
"text" = "Reboot";
|
||||
"keybind" = "r";
|
||||
}
|
||||
{
|
||||
"label" = "logout";
|
||||
"action" = "logout-sys";
|
||||
"text" = "Exit";
|
||||
"keybind" = "e";
|
||||
}
|
||||
{
|
||||
"label" = "suspend";
|
||||
"action" = "sleep 1; systemctl suspend";
|
||||
"text" = "Suspend";
|
||||
"keybind" = "u";
|
||||
}
|
||||
];
|
||||
style = ''
|
||||
* {
|
||||
font-family: "JetBrainsMono NF", FontAwesome, sans-serif;
|
||||
background-image: none;
|
||||
transition: 20ms;
|
||||
}
|
||||
window {
|
||||
background-color: rgba(12, 12, 12, 0.1);
|
||||
}
|
||||
button {
|
||||
color: #${palette.base05};
|
||||
font-size:20px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 25%;
|
||||
border-style: solid;
|
||||
background-color: rgba(12, 12, 12, 0.3);
|
||||
border: 3px solid #${palette.base05};
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||
}
|
||||
button:focus,
|
||||
button:active,
|
||||
button:hover {
|
||||
color: #${palette.base0E};
|
||||
background-color: rgba(12, 12, 12, 0.5);
|
||||
border: 3px solid #${palette.base0E};
|
||||
}
|
||||
#logout {
|
||||
margin: 10px;
|
||||
border-radius: 20px;
|
||||
background-image: image(url("icons/logout.png"));
|
||||
}
|
||||
#suspend {
|
||||
margin: 10px;
|
||||
border-radius: 20px;
|
||||
background-image: image(url("icons/suspend.png"));
|
||||
}
|
||||
#shutdown {
|
||||
margin: 10px;
|
||||
border-radius: 20px;
|
||||
background-image: image(url("icons/shutdown.png"));
|
||||
}
|
||||
#reboot {
|
||||
margin: 10px;
|
||||
border-radius: 20px;
|
||||
background-image: image(url("icons/reboot.png"));
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
6
config/scripts/logout-sys.nix
Normal file
6
config/scripts/logout-sys.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ pkgs, username }:
|
||||
|
||||
pkgs.writeShellScriptBin "logout-sys" ''
|
||||
sleep 1
|
||||
killall -9 Hyprland sleep 2
|
||||
''
|
14
options.nix
14
options.nix
@ -8,14 +8,14 @@ let
|
||||
hostname = "hyprnix";
|
||||
userHome = "/home/${username}";
|
||||
flakeDir = "${userHome}/zaneyos";
|
||||
waybarStyle = "slickbar-num"; # simplebar, slickbar, slickbar-num, or default
|
||||
waybarStyle = "default"; # simplebar, slickbar, slickbar-num, or default
|
||||
in {
|
||||
# User Variables
|
||||
username = "${username}";
|
||||
hostname = "${hostname}";
|
||||
gitUsername = "Tyler Kelley";
|
||||
gitEmail = "tylerzanekelley@gmail.com";
|
||||
theme = "catppuccin-mocha";
|
||||
theme = "gigavolt";
|
||||
slickbar = if waybarStyle == "slickbar" then true else false;
|
||||
slickbar-num = if waybarStyle == "slickbar-num" then true else false;
|
||||
simplebar = if waybarStyle == "simplebar" then true else false;
|
||||
@ -28,7 +28,7 @@ in {
|
||||
flakeDir = "${flakeDir}";
|
||||
flakePrev = "${userHome}/.zaneyos-previous";
|
||||
flakeBackup = "${userHome}/.zaneyos-backup";
|
||||
terminal = "alacritty"; # This sets the terminal that is used by the hyprland terminal keybinding
|
||||
terminal = "wezterm"; # This sets the terminal that is used by the hyprland terminal keybinding
|
||||
|
||||
# System Settings
|
||||
clock24h = false;
|
||||
@ -38,8 +38,8 @@ in {
|
||||
theKBDVariant = "";
|
||||
theLCVariables = "en_US.UTF-8";
|
||||
theTimezone = "America/Chicago";
|
||||
theShell = "bash"; # Possible options: bash, zsh
|
||||
theKernel = "default"; # Possible options: default, latest, lqx, xanmod, zen
|
||||
theShell = "zsh"; # Possible options: bash, zsh
|
||||
theKernel = "zen"; # Possible options: default, latest, lqx, xanmod, zen
|
||||
sdl-videodriver = "x11"; # Either x11 or wayland ONLY. Games might require x11 set here
|
||||
# For Hybrid Systems intel-nvidia
|
||||
# Should Be Used As gpuType
|
||||
@ -76,8 +76,8 @@ in {
|
||||
|
||||
# Enable Terminals
|
||||
# If You Disable All You Get Kitty
|
||||
wezterm = false;
|
||||
alacritty = true;
|
||||
wezterm = true;
|
||||
alacritty = false;
|
||||
kitty = false;
|
||||
|
||||
# Enable Python & PyCharm
|
||||
|
Loading…
Reference in New Issue
Block a user