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:
ISnortPennies 2022-10-23 22:23:50 -04:00
parent 07b4757bde
commit d85d1e7bf0
8 changed files with 32 additions and 12 deletions

View file

@ -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";
@ -28,8 +27,11 @@
(final: prev: rec {
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)
];
};

View 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"
}
}

View file

@ -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";
};
};
}

View file

@ -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");

View file

@ -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

View file

@ -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) {

View file

@ -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) {

View file

@ -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