Merge branch 'avoid-digga' of github.com:aciceri/fleet into avoid-digga
This commit is contained in:
commit
55ead06206
13 changed files with 65 additions and 12 deletions
|
@ -111,7 +111,7 @@
|
|||
:os
|
||||
(:if IS-MAC macos) ; improve compatibility with macOS
|
||||
tty ; improve the terminal Emacs experience
|
||||
exwm
|
||||
(exwm +status +xim)
|
||||
|
||||
:lang
|
||||
;;agda ; types of types of types of types...
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
(setq exwm-input-global-keys
|
||||
`(([?\s-r] . exwm-reset)
|
||||
([?\s-w] . exwm-workspace-switch)
|
||||
([?\s-&] . (lambda (command)
|
||||
([?\s-d] . (lambda (command)
|
||||
(interactive (list (read-shell-command "$ ")))
|
||||
(start-process-shell-command command nil command)))
|
||||
,@(mapcar (lambda (i)
|
||||
|
@ -52,6 +52,20 @@
|
|||
;; of visible buffers.
|
||||
(advice-add #'exwm--update-utf8-title :around #'exwm--update-utf8-title-advice)
|
||||
|
||||
(defun exwm-rename-buffer ()
|
||||
(interactive)
|
||||
(exwm-workspace-rename-buffer
|
||||
(concat exwm-class-name " :: "
|
||||
(if (<= (length exwm-title) 50) exwm-title
|
||||
(concat (substring exwm-title 0 49) "...")))))
|
||||
|
||||
;; Add these hooks in a suitable place (e.g., as done in exwm-config-default)
|
||||
(add-hook 'exwm-update-class-hook 'exwm-rename-buffer)
|
||||
(add-hook 'exwm-update-title-hook 'exwm-rename-buffer)
|
||||
|
||||
(require 'exwm-systemtray)
|
||||
(exwm-systemtray-enable)
|
||||
|
||||
;; Enable the window manager.
|
||||
(exwm-enable))
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
doomEmacs,
|
||||
} @ inputs: let
|
||||
utils = (import ./utils) inputs;
|
||||
inherit (utils) lib mkConfigurations mkVmApps checkFormatting formatApp mkDevShell;
|
||||
inherit (utils) lib mkConfigurations mkVmApps checkFormatting formatter formatApp mkDevShell;
|
||||
in {
|
||||
nixosConfigurations = mkConfigurations;
|
||||
|
||||
|
@ -32,5 +32,7 @@
|
|||
checks = checkFormatting ./.;
|
||||
|
||||
devShells = mkDevShell;
|
||||
|
||||
inherit formatter;
|
||||
};
|
||||
}
|
||||
|
|
6
hmModules/chrome/default.nix
Normal file
6
hmModules/chrome/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{pkgs, ...}: {
|
||||
programs.chromium = {
|
||||
enable = true;
|
||||
package = pkgs.google-chrome;
|
||||
};
|
||||
}
|
3
hmModules/element/default.nix
Normal file
3
hmModules/element/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = [pkgs.element-desktop];
|
||||
}
|
|
@ -29,6 +29,7 @@
|
|||
"-c"
|
||||
];
|
||||
content.pdfjs = true;
|
||||
tabs.tabs_are_windows = true;
|
||||
};
|
||||
};
|
||||
home.packages = [
|
||||
|
|
3
hmModules/slack/default.nix
Normal file
3
hmModules/slack/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = [pkgs.slack];
|
||||
}
|
7
hmModules/udiskie/default.nix
Normal file
7
hmModules/udiskie/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
services.udiskie = {
|
||||
enable = true;
|
||||
automount = true;
|
||||
tray = "never";
|
||||
};
|
||||
}
|
8
hmModules/vscode/default.nix
Normal file
8
hmModules/vscode/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
# For a few reasons sometimes I'm forced to use VSCode and I don't have time to nixifiy even its configuration.
|
||||
# This is why I'm using the FHS version. Purity gods, forgive me!
|
||||
package = pkgs.vscode-fhs;
|
||||
};
|
||||
}
|
|
@ -40,6 +40,11 @@
|
|||
"git"
|
||||
"gpg"
|
||||
"password-store"
|
||||
"slack"
|
||||
"chrome"
|
||||
"vscode"
|
||||
"element"
|
||||
"udiskie"
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
];
|
||||
|
|
|
@ -13,4 +13,6 @@
|
|||
users.mutableUsers = false;
|
||||
users.users.root.password = "password";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
||||
|
|
|
@ -22,15 +22,15 @@
|
|||
xset r rate 200 60
|
||||
|
||||
# Uncomment the following block to use the exwm-xim module.
|
||||
#export XMODIFIERS=@im=exwm-xim
|
||||
#export GTK_IM_MODULE=xim
|
||||
#export QT_IM_MODULE=xim
|
||||
#export CLUTTER_IM_MODULE=xim
|
||||
export XMODIFIERS=@im=exwm-xim
|
||||
export GTK_IM_MODULE=xim
|
||||
export QT_IM_MODULE=xim
|
||||
export CLUTTER_IM_MODULE=xim
|
||||
|
||||
# Lockscreen
|
||||
exec ${pkgs.xss-lock}/bin/xss-lock -- ${pkgs.i3lock-blur}/bin/i3lock-blur &
|
||||
exec ${pkgs.xss-lock}/bin/xss-lock -- ${pkgs.i3lock-blur}/bin/i3lock-color &
|
||||
|
||||
# Finally start Emacs
|
||||
exec emacsclient --eval "(exwm-init)" --create-frame -F "((fullscreen . fullboth))"
|
||||
exec dbus-launch emacsclient --eval "(exwm-init)" --create-frame -F "((fullscreen . fullboth))"
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -45,8 +45,8 @@
|
|||
};
|
||||
|
||||
mkConfigurations = {
|
||||
thinkpad = mkConfiguration {
|
||||
name = "thinkpad";
|
||||
pc = mkConfiguration {
|
||||
name = "pc";
|
||||
system = supportedSystems.x86_64-linux;
|
||||
modules = [];
|
||||
};
|
||||
|
@ -69,6 +69,8 @@
|
|||
mkVmApp system configurations.${configurationName}
|
||||
));
|
||||
|
||||
formatter = lib.perSystem (system: pkgsFor.${system}.alejandra);
|
||||
|
||||
formatApp = lib.perSystem (
|
||||
system: {
|
||||
format = {
|
||||
|
@ -102,5 +104,5 @@
|
|||
};
|
||||
});
|
||||
in {
|
||||
inherit lib mkConfigurations mkVmApps supportedSystems formatApp mkDevShell checkFormatting;
|
||||
inherit lib mkConfigurations mkVmApps supportedSystems formatApp formatter mkDevShell checkFormatting;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue