Skip to content

Commit

Permalink
chore: updated configs
Browse files Browse the repository at this point in the history
  • Loading branch information
fbosch committed Jul 16, 2024
1 parent 942fc68 commit 6eb9601
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .config/fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if test (uname) = Linux
end

function fish_greeting
if test (uname) = Darwin && test "$PWD" = "$HOME" && test (wezterm cli list | count) -eq 2
if test (uname) = Darwin
first_login_of_the_day --silent &
end
end
Expand Down
1 change: 0 additions & 1 deletion .config/fish/scripts.fish
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ function fzfcd
end
end


function toggle_proxy
set current_status (networksetup -getwebproxy "Wi-Fi" | grep Enabled | cut -d " " -f 2 | head -1)
if test "$current_status" = No
Expand Down
1 change: 1 addition & 0 deletions .config/nvim/lua/plugins/editor/copilot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ return {
{
"supermaven-inc/supermaven-nvim",
event = "InsertEnter",
enabled = false,
opts = {
keymaps = {
accept_suggestion = "<Tab>",
Expand Down
6 changes: 3 additions & 3 deletions .config/nvim/lua/plugins/interface/which-key.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ return {
suggestions = 20,
},
},
-- window = {
-- border = "rounded",
-- },
win = {
border = "rounded",
},
})
end,
}
1 change: 1 addition & 0 deletions .config/nvim/spell/en.utf-8.add
Original file line number Diff line number Diff line change
Expand Up @@ -1211,3 +1211,4 @@ validateMode
viteFinal
vmImage
ubuntu-latest
rules-of-hooks
Binary file modified .config/nvim/spell/en.utf-8.add.spl
Binary file not shown.
23 changes: 12 additions & 11 deletions .wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ if not is_windows then
if wday ~= 1 or wday ~= 7 then
local first_login = pane:get_user_vars().first_login
local calculated_hours = calculate_hour_difference(first_login, wezterm.strftime("%H:%M:%S"))
local hours_worked = calculated_hours and math.ceil(calculated_hours * 2) / 2 or 0
print(calculated_hours)
local hours_worked = calculated_hours and math.ceil(calculated_hours) or 0

if hours_worked > 0 and hours_worked < 10 then
local icon = ""
Expand Down Expand Up @@ -247,52 +248,52 @@ config.keys = {
-- TODO: find better keys for splitting panes
{
key = "v",
mods = "CMD",
mods = "CMD|SHIFT",
action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }),
},
{
key = "s",
mods = "CMD",
mods = "CMD|SHIFT",
action = wezterm.action.SplitVertical({ domain = "CurrentPaneDomain" }),
},
{
key = "l",
mods = "CMD",
mods = "CMD|SHIFT",
action = wezterm.action.ActivatePaneDirection("Right"),
},
{
key = "h",
mods = "CMD",
mods = "CMD|SHIFT",
action = wezterm.action.ActivatePaneDirection("Left"),
},
{
key = "j",
mods = "CMD",
mods = "CMD|SHIFT",
action = wezterm.action.ActivatePaneDirection("Down"),
},
{
key = "k",
mods = "CMD",
mods = "CMD|SHIFT",
action = wezterm.action.ActivatePaneDirection("Up"),
},
{
key = "RightArrow",
mods = "CMD",
mods = "CMD|SHIFT",
action = wezterm.action.AdjustPaneSize({ "Right", 5 }),
},
{
key = "LeftArrow",
mods = "CMD",
mods = "CMD|SHIFT",
action = wezterm.action.AdjustPaneSize({ "Left", 5 }),
},
{
key = "UpArrow",
mods = "CMD",
mods = "CMD|SHIFT",
action = wezterm.action.AdjustPaneSize({ "Up", 5 }),
},
{
key = "DownArrow",
mods = "CMD",
mods = "CMD|SHIFT",
action = wezterm.action.AdjustPaneSize({ "Down", 5 }),
},
{
Expand Down

0 comments on commit 6eb9601

Please sign in to comment.