mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-24 17:22:23 +00:00
Compare commits
4 Commits
fecd66465d
...
a15c05491e
Author | SHA1 | Date | |
---|---|---|---|
|
a15c05491e | ||
|
82f7da5858 | ||
|
5d34ed5a68 | ||
|
f73c52e2b7 |
@ -38,6 +38,12 @@ in {
|
|||||||
push = { autoSetupRemote = "true"; };
|
push = { autoSetupRemote = "true"; };
|
||||||
init = { defaultBranch = "master"; };
|
init = { defaultBranch = "master"; };
|
||||||
rebase = { autosquash = "true"; };
|
rebase = { autosquash = "true"; };
|
||||||
|
gpg = {
|
||||||
|
format = "ssh";
|
||||||
|
ssh.allowedSignersFile = "~/.config/git/allowed-signers";
|
||||||
|
};
|
||||||
|
commit.gpgsign = true;
|
||||||
|
tag.gpgsign = true;
|
||||||
};
|
};
|
||||||
ignores = [ ".direnv/**" "result" ];
|
ignores = [ ".direnv/**" "result" ];
|
||||||
includes = [{
|
includes = [{
|
||||||
@ -52,6 +58,11 @@ in {
|
|||||||
[user]
|
[user]
|
||||||
name = "${config.fullName}"
|
name = "${config.fullName}"
|
||||||
email = "7386960+nmasur@users.noreply.github.com"
|
email = "7386960+nmasur@users.noreply.github.com"
|
||||||
|
signingkey = ~/.ssh/id_ed25519
|
||||||
|
'';
|
||||||
|
|
||||||
|
xdg.configFile."git/allowed-signers".text = ''
|
||||||
|
7386960+nmasur@users.noreply.github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.fish.shellAbbrs = {
|
programs.fish.shellAbbrs = {
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
ldap_dc_2 = "t${magic_number}";
|
ldap_dc_2 = "t${magic_number}";
|
||||||
ldap_dc_3 = magic_end_seq;
|
ldap_dc_3 = magic_end_seq;
|
||||||
ldap_script = pkgs.writeShellScriptBin "ldap" ''
|
ldap_script = pkgs.writeShellScriptBin "ldap" ''
|
||||||
|
# if ! [ "$LDAP_HOST" ]; then
|
||||||
|
# echo "No LDAP_HOST specified!"
|
||||||
|
# exit 1
|
||||||
|
# fi
|
||||||
SEARCH_FILTER="$@"
|
SEARCH_FILTER="$@"
|
||||||
ldapsearch -LLL \
|
ldapsearch -LLL \
|
||||||
-B -o ldif-wrap=no \
|
-B -o ldif-wrap=no \
|
||||||
|
@ -10,6 +10,19 @@ obj.license = "MIT - https://opensource.org/licenses/MIT"
|
|||||||
|
|
||||||
local screen = hs.screen.primaryScreen()
|
local screen = hs.screen.primaryScreen()
|
||||||
local switcherWidth = 500
|
local switcherWidth = 500
|
||||||
|
|
||||||
|
function obj:init()
|
||||||
|
-- Begin launcher mode
|
||||||
|
if self.launcher == nil then
|
||||||
|
self.launcher = hs.hotkey.modal.new("ctrl", "space")
|
||||||
|
|
||||||
|
print(self.canvas)
|
||||||
|
print(obj.canvas)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Behaviors on enter
|
||||||
|
function self.launcher:entered()
|
||||||
|
-- hs.alert("Entered mode")
|
||||||
obj.canvas = hs.canvas.new({
|
obj.canvas = hs.canvas.new({
|
||||||
x = (screen:fullFrame().x + screen:fullFrame().w) / 2 - switcherWidth / 2,
|
x = (screen:fullFrame().x + screen:fullFrame().w) / 2 - switcherWidth / 2,
|
||||||
y = 1,
|
y = 1,
|
||||||
@ -26,26 +39,13 @@ obj.canvas[#obj.canvas + 1] = {
|
|||||||
fillColor = { alpha = 1, red = 0.8, green = 0.6, blue = 0.3 },
|
fillColor = { alpha = 1, red = 0.8, green = 0.6, blue = 0.3 },
|
||||||
action = "fill",
|
action = "fill",
|
||||||
}
|
}
|
||||||
|
|
||||||
function obj:init()
|
|
||||||
-- Begin launcher mode
|
|
||||||
if self.launcher == nil then
|
|
||||||
self.launcher = hs.hotkey.modal.new("ctrl", "space")
|
|
||||||
|
|
||||||
print(self.canvas)
|
|
||||||
print(obj.canvas)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Behaviors on enter
|
|
||||||
function self.launcher:entered()
|
|
||||||
-- hs.alert("Entered mode")
|
|
||||||
obj.canvas:show()
|
obj.canvas:show()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Behaviors on exit
|
-- Behaviors on exit
|
||||||
function self.launcher:exited()
|
function self.launcher:exited()
|
||||||
-- hs.alert("Exited mode")
|
-- hs.alert("Exited mode")
|
||||||
obj.canvas:hide()
|
obj.canvas:delete(0.2)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Use escape to exit launcher mode
|
-- Use escape to exit launcher mode
|
||||||
|
@ -88,6 +88,21 @@
|
|||||||
orientation = "bottom";
|
orientation = "bottom";
|
||||||
show-recents = false;
|
show-recents = false;
|
||||||
tilesize = 44;
|
tilesize = 44;
|
||||||
|
|
||||||
|
persistent-apps = [
|
||||||
|
"/Applications/1Password.app"
|
||||||
|
"${pkgs.slack}/Applications/Slack.app"
|
||||||
|
"/System/Applications/Calendar.app"
|
||||||
|
"${pkgs.firefox-bin}/Applications/Firefox.app"
|
||||||
|
"/System/Applications/Messages.app"
|
||||||
|
"/System/Applications/Mail.app"
|
||||||
|
"/Applications/zoom.us.app"
|
||||||
|
"${pkgs.discord}/Applications/Discord.app"
|
||||||
|
"${pkgs.obsidian}/Applications/Obsidian.app"
|
||||||
|
"${pkgs.kitty}/Applications/kitty.app"
|
||||||
|
"/System/Applications/System Settings.app"
|
||||||
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
finder = {
|
finder = {
|
||||||
@ -130,19 +145,6 @@
|
|||||||
"com.apple.dock" = {
|
"com.apple.dock" = {
|
||||||
magnification = true;
|
magnification = true;
|
||||||
largesize = 48;
|
largesize = 48;
|
||||||
persistent-apps = [
|
|
||||||
"/Applications/1Password.app"
|
|
||||||
"${pkgs.slack}/Applications/Slack.app"
|
|
||||||
"/System/Applications/Calendar.app"
|
|
||||||
"${pkgs.firefox-bin}/Applications/Firefox.app"
|
|
||||||
"/System/Applications/Messages.app"
|
|
||||||
"/System/Applications/Mail.app"
|
|
||||||
"/Applications/zoom.us.app"
|
|
||||||
"${pkgs.discord}/Applications/Discord.app"
|
|
||||||
"${pkgs.obsidian}/Applications/Obsidian.app"
|
|
||||||
"${pkgs.kitty}/Applications/kitty.app"
|
|
||||||
"/System/Applications/System Settings.app"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
# Require password immediately after screen saver begins
|
# Require password immediately after screen saver begins
|
||||||
"com.apple.screensaver" = {
|
"com.apple.screensaver" = {
|
||||||
@ -189,16 +191,10 @@
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
# User-level settings
|
# User-level settings
|
||||||
activationScripts.postUserActivation.text = let
|
activationScripts.postUserActivation.text = ''
|
||||||
persistentApps = lib.concatMapStrings (x: ''"'' + x + ''" '')
|
|
||||||
config.system.defaults.CustomUserPreferences."com.apple.dock".persistent-apps;
|
|
||||||
in ''
|
|
||||||
echo "Show the ~/Library folder"
|
echo "Show the ~/Library folder"
|
||||||
chflags nohidden ~/Library
|
chflags nohidden ~/Library
|
||||||
|
|
||||||
echo "Choose and order dock icons"
|
|
||||||
defaults write com.apple.dock persistent-apps -array ${persistentApps}
|
|
||||||
|
|
||||||
echo "Reduce Menu Bar padding"
|
echo "Reduce Menu Bar padding"
|
||||||
defaults write -globalDomain NSStatusItemSelectionPadding -int 6
|
defaults write -globalDomain NSStatusItemSelectionPadding -int 6
|
||||||
defaults write -globalDomain NSStatusItemSpacing -int 6
|
defaults write -globalDomain NSStatusItemSpacing -int 6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user