-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
086613d
commit d1aea9d
Showing
32 changed files
with
680 additions
and
2,460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,73 @@ | ||
-- _______ | ||
-- |_ _|.---.-.-----.-----. | ||
-- | | | _ | _ |__ --| | ||
-- |___| |___._|___ |_____| | ||
-- |_____| | ||
-- -------------------------------------------------------------------------- -- | ||
-- | ||
local tagswitch = Effects.request_effect("tagswitch") | ||
|
||
local tagswitch = effects.request_effect("tagswitch") | ||
|
||
awful.keyboard.append_global_keybindings({ | ||
awful.key({ | ||
modifiers = { modkey }, | ||
keygroup = "numrow", | ||
description = "only view tag", | ||
group = "Tags", | ||
on_press = function(index) | ||
local screen = awful.screen.focused() | ||
local tag = screen.tags[index] | ||
if tag then | ||
tag:view_only() | ||
end | ||
if tagswitch then | ||
local t = awful.screen.focused().selected_tag | ||
tagswitch.animate(tostring(t.index)) | ||
end | ||
collectgarbage("collect") | ||
end, | ||
}), | ||
-- -------------------------------------------------------------------------- -- | ||
-- | ||
awful.key({ | ||
modifiers = { modkey, "Control" }, | ||
keygroup = "numrow", | ||
description = "toggle tag", | ||
group = "Tags", | ||
on_press = function(index) | ||
local screen = awful.screen.focused() | ||
local tag = screen.tags[index] | ||
if tag then | ||
awful.tag.viewtoggle(tag) | ||
end | ||
collectgarbage("collect") | ||
end, | ||
}), | ||
-- -------------------------------------------------------------------------- -- | ||
-- | ||
awful.key({ | ||
modifiers = { modkey, "Shift" }, | ||
keygroup = "numrow", | ||
description = "move focused client to tag", | ||
group = "Tags", | ||
on_press = function(index) | ||
if client.focus then | ||
local tag = client.focus.screen.tags[index] | ||
if tag then | ||
client.focus:move_to_tag(tag) | ||
end | ||
end | ||
collectgarbage("collect") | ||
end, | ||
}), | ||
-- -------------------------------------------------------------------------- -- | ||
-- | ||
awful.key({ | ||
modifiers = { modkey, "Control", "Shift" }, | ||
keygroup = "numrow", | ||
description = "toggle focused client on tag", | ||
group = "Tags", | ||
on_press = function(index) | ||
if client.focus then | ||
local tag = client.focus.screen.tags[index] | ||
if tag then | ||
client.focus:toggle_tag(tag) | ||
end | ||
collectgarbage("collect") | ||
end | ||
end, | ||
}), | ||
awful.key({ | ||
modifiers = { modkey }, | ||
keygroup = "numrow", | ||
description = "only view tag", | ||
group = "Tags", | ||
on_press = function(index) | ||
local screen = awful.screen.focused() | ||
local tag = screen.tags[index] | ||
if tag then | ||
tag:view_only() | ||
end | ||
if tagswitch then | ||
local t = awful.screen.focused().selected_tag | ||
tagswitch.animate(tostring(t.index)) | ||
end | ||
collectgarbage("collect") | ||
end, | ||
}), | ||
-- -------------------------------------------------------------------------- -- | ||
-- | ||
awful.key({ | ||
modifiers = { modkey, "Control" }, | ||
keygroup = "numrow", | ||
description = "toggle tag", | ||
group = "Tags", | ||
on_press = function(index) | ||
local screen = awful.screen.focused() | ||
local tag = screen.tags[index] | ||
if tag then | ||
awful.tag.viewtoggle(tag) | ||
end | ||
collectgarbage("collect") | ||
end, | ||
}), | ||
-- -------------------------------------------------------------------------- -- | ||
-- | ||
awful.key({ | ||
modifiers = { modkey, "Shift" }, | ||
keygroup = "numrow", | ||
description = "move focused client to tag", | ||
group = "Tags", | ||
on_press = function(index) | ||
if client.focus then | ||
local tag = client.focus.screen.tags[index] | ||
if tag then | ||
client.focus:move_to_tag(tag) | ||
end | ||
end | ||
collectgarbage("collect") | ||
end, | ||
}), | ||
-- -------------------------------------------------------------------------- -- | ||
-- | ||
awful.key({ | ||
modifiers = { modkey, "Control", "Shift" }, | ||
keygroup = "numrow", | ||
description = "toggle focused client on tag", | ||
group = "Tags", | ||
on_press = function(index) | ||
if client.focus then | ||
local tag = client.focus.screen.tags[index] | ||
if tag then | ||
client.focus:toggle_tag(tag) | ||
end | ||
collectgarbage("collect") | ||
end | ||
end, | ||
}), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.