mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
switched from webcord to openasar
fixed dmenu quit-prompt having a random "-e" in it added screenshotting to clipboard keybindings
This commit is contained in:
parent
07b4757bde
commit
d85d1e7bf0
8 changed files with 32 additions and 12 deletions
16
flake.nix
16
flake.nix
|
|
@ -7,10 +7,9 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
spicetify-nix.url = "github:the-argus/spicetify-nix";
|
||||
webcord.url = "github:fufexan/webcord-flake";
|
||||
};
|
||||
|
||||
outputs = {self, nixpkgs, home-manager, spicetify-nix, webcord, ... }@inputs:
|
||||
outputs = {self, nixpkgs, home-manager, spicetify-nix, ... }@inputs:
|
||||
let
|
||||
username = "gerg";
|
||||
system = "x86_64-linux";
|
||||
|
|
@ -26,11 +25,14 @@
|
|||
};
|
||||
overlays = [
|
||||
(final: prev: rec {
|
||||
t-rex-miner = final.callPackage ./pkgs/t-rex-miner {};
|
||||
afk-cmds = final.callPackage ./pkgs/afk-cmds {};
|
||||
}
|
||||
)
|
||||
(import ./suckless)
|
||||
t-rex-miner = final.callPackage ./pkgs/t-rex-miner {};
|
||||
afk-cmds = final.callPackage ./pkgs/afk-cmds {};
|
||||
discord = prev.discord.override {
|
||||
withOpenASAR = true;
|
||||
nss = prev.nss_latest;
|
||||
};
|
||||
})
|
||||
(import ./suckless)
|
||||
];
|
||||
};
|
||||
lib = nixpkgs.lib;
|
||||
|
|
|
|||
15
home-manager/config/discord/settings.json
Normal file
15
home-manager/config/discord/settings.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"debugLogging": false,
|
||||
"IS_MAXIMIZED": false,
|
||||
"IS_MINIMIZED": false,
|
||||
"MIN_WIDTH": 0,
|
||||
"MIN_HEIGHT": 0,
|
||||
"OPEN_ON_STARTUP": false,
|
||||
"MINIMIZE_TO_TRAY": false,
|
||||
"openasar": {
|
||||
"setup": true,
|
||||
"noTyping": true,
|
||||
"quickstart": true,
|
||||
"css": "@import url(\"https://nyri5.github.io/Discolored/main.css\");\n@import url(\"https://luckfire.github.io/amoled-cord/src/support/compiled.css\");\n"
|
||||
}
|
||||
}
|
||||
|
|
@ -15,7 +15,9 @@
|
|||
"XF86MonBrightnessDown" = "brightnessctl s 20-";
|
||||
#screenshot stuff
|
||||
"Print" = "maim $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
|
||||
"Print + shift" = "maim | xclip -selection clipboard -t image/png";
|
||||
"super + Print" = "maim -s $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
|
||||
"super + Print + shift" = "maim -s | xclip -selection clipboard -t image/png";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
@import url("https://nyri4.github.io/Discolored/main.css");
|
||||
@import url("https://luckfire.github.io/amoled-cord/src/support/compiled.css");
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, callPackage, webcord, ... }:
|
||||
{ config, pkgs, callPackage, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
bottom #view tasks
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
bitwarden #store stuff
|
||||
gimp #edit stuff
|
||||
qbittorrent #steal stuff
|
||||
webcord.packages.${pkgs.system}.default # talk to people (gross)
|
||||
discord # talk to people (gross)
|
||||
spotify-tray # tray icons are nice
|
||||
feh #for wallpaper
|
||||
xfce.mousepad
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ index c77ed1b..7b4689a 100644
|
|||
+void
|
||||
+quitprompt(const Arg *arg)
|
||||
+{
|
||||
+ FILE *pp = popen("echo -e \"no\nrestart\nyes\" | dmenu -i -sb red -p \"Quit DWM?\"", "r");
|
||||
+ FILE *pp = popen("echo \"no\nrestart\nyes\" | dmenu -i -sb red -p \"Quit DWM?\"", "r");
|
||||
+ if(pp != NULL) {
|
||||
+ char buf[1024];
|
||||
+ if (fgets(buf, sizeof(buf), pp) == NULL) {
|
||||
|
|
|
|||
|
|
@ -1258,7 +1258,7 @@ quit(const Arg *arg)
|
|||
void
|
||||
quitprompt(const Arg *arg)
|
||||
{
|
||||
FILE *pp = popen("echo -e \"no\nrestart\nyes\" | dmenu -i -sb red -p \"Quit DWM?\"", "r");
|
||||
FILE *pp = popen("echo \"no\nrestart\nyes\" | dmenu -i -sb red -p \"Quit DWM?\"", "r");
|
||||
if(pp != NULL) {
|
||||
char buf[1024];
|
||||
if (fgets(buf, sizeof(buf), pp) == NULL) {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
hardware.cpu.amd.updateMicrocode = true;
|
||||
#end important stuff
|
||||
environment.systemPackages = with pkgs; [
|
||||
afk-cmds
|
||||
#afk-cmds
|
||||
xmrig
|
||||
t-rex-miner
|
||||
vscodium
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue