Skip to content

Commit

Permalink
Support for english layout
Browse files Browse the repository at this point in the history
  • Loading branch information
heussd committed Jan 19, 2025
1 parent 3e43b00 commit 12b605a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .hammerspoon/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ require('vim-cursor')
require('window-management')
require('window-management-next-window-fix')

require("global-mute")
--require("global-mute")
require('menubar')

require('sleep-hooks')
require('playground')
--require('playground')
require('spoons')
5 changes: 2 additions & 3 deletions .hammerspoon/menubar.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local bar = hs.menubar.new()
-- bar:setTitle(hs.host:localizedName())
bar:setTitle("")
bar:setTitle("CW " .. string.format("%u", os.date( "%V")))


function test()
Expand Down Expand Up @@ -86,7 +86,6 @@ function generate_menu()
{title = "-" },
{title = "MoCkInG SPoNgE TYpE CLiPbOaRd", fn = spongeTypeClipboard},
{title = "-" },
{title = globalmute.muted and "Microphone is MUTED" or "Microphone is OPEN", fn = toggleMic,},
{
title = hs.caffeinate.get("displayIdle") and "Display stays AWAKE" or "Display will sleep",
checked = hs.caffeinate.get("displayIdle"),
Expand All @@ -101,4 +100,4 @@ function generate_menu()
end


generate_menu()
generate_menu()
4 changes: 2 additions & 2 deletions .hammerspoon/window-management-next-window-fix.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ function switchToPreviousWindowOfSameApp()
end
end

hs.hotkey.bind('cmd', '<', switchToNextWindowOfSameApp)
hs.hotkey.bind({'cmd', '>'}, '=', switchToPreviousWindowOfSameApp)
hs.hotkey.bind('cmd', '`', switchToNextWindowOfSameApp)
hs.hotkey.bind({'cmd', '`'}, '=', switchToPreviousWindowOfSameApp)
1 change: 1 addition & 0 deletions .hammerspoon/window-management.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ end


hyper:bind({}, "y", move_to_next_screen)
hyper:bind({}, "z", move_to_next_screen)

hyper:bind({}, "x", maximize_current_window)

Expand Down

0 comments on commit 12b605a

Please sign in to comment.