xserber
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
{ lib, pkgs, ... }:
|
||||
let
|
||||
pname = "prismlauncher";
|
||||
version = "11.0.2-1";
|
||||
version = "11.0.3";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/Diegiwg/PrismLauncher-Cracked/releases/download/${version}/PrismLauncher-Linux-x86_64.AppImage";
|
||||
hash = "sha256-P+6s4g8uCqXQx0p5rieJFpuDV7AquGVYrcTs9XWFAsA=";
|
||||
hash = "sha256:7559471672cbb36fb6e2159d894a96d9a56da563770dc74b982d84927ee56be0";
|
||||
};
|
||||
icon = pkgs.fetchurl {
|
||||
url = "https://upload.wikimedia.org/wikipedia/commons/7/74/Prism_Launcher_logo.svg";
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
xsession.windowManager.bspwm.enable = true;
|
||||
xsession.windowManager.bspwm.package = pkgs.bspwm-unstable;
|
||||
xsession.windowManager.bspwm.settings = {
|
||||
border_width = 2;
|
||||
focused_border_color = "#383838";
|
||||
normal_border_color = "#282828";
|
||||
window_gap = 10;
|
||||
split_ratiop = 0.5;
|
||||
smart_gap = true;
|
||||
focus_follows_pointer = false;
|
||||
click_to_focus = true;
|
||||
pointer_follows_monitor = true;
|
||||
remove_disabled_monitors = true;
|
||||
auto_cancel = true;
|
||||
auto_alternate = true;
|
||||
bottom_padding = 0;
|
||||
};
|
||||
xsession.windowManager.bspwm.extraConfig = ''
|
||||
pidb() {
|
||||
pgrep -x "$1" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
run() {
|
||||
proc="$1"
|
||||
cmd="$2"
|
||||
|
||||
if ! pidb "$proc"; then
|
||||
sh -c "$cmd" &
|
||||
fi
|
||||
}
|
||||
|
||||
### }}}
|
||||
|
||||
|
||||
### {{{ rerun/start processes
|
||||
|
||||
# piss
|
||||
run "piss" "piss"
|
||||
|
||||
# picom
|
||||
run "picom" "picom --backend glx"
|
||||
|
||||
# dunst
|
||||
# run "dunst" "dunst"
|
||||
|
||||
# bspbar
|
||||
# run "bspbar" "bspbar"
|
||||
|
||||
xwallpaper --center "$HOME/Wallpapers/nature2art.png"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user