Created
May 3, 2020 15:16
-
-
Save floscr/f2de360fae7ad436d4cc6060a4459ae4 to your computer and use it in GitHub Desktop.
mkBinding
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
{ | |
utils.mkBinding "Super + @space" "rofi"; | |
} |
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
utils = { | |
mkBinding = {key, command}: { | |
my.home.xdg.configFile."sxhkd/sxhkdrc".text = '' | |
${key} | |
${command} | |
''; | |
my.home.xdg.configFile."my-custom-commands.txt".text = '' | |
${command}, ${key} | |
''; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment