Update 2020-09-24
This commit is contained in:
parent
21e8582106
commit
ea3d643a06
|
@ -167,7 +167,7 @@ vicious.register(mymemusage, vicious.widgets.mem,
|
||||||
function (widget, args)
|
function (widget, args)
|
||||||
return (" MEM%03d%%"):format(args[1])
|
return (" MEM%03d%%"):format(args[1])
|
||||||
end, 2)
|
end, 2)
|
||||||
--
|
|
||||||
-- Create a battery widget
|
-- Create a battery widget
|
||||||
local mybattery_text = wibox.widget.textbox()
|
local mybattery_text = wibox.widget.textbox()
|
||||||
vicious.register(mybattery_text, vicious.widgets.bat,
|
vicious.register(mybattery_text, vicious.widgets.bat,
|
||||||
|
@ -477,6 +477,8 @@ local globalkeys = awful.util.table.join(
|
||||||
{description = "open Tor Browser", group = "launcher"}),
|
{description = "open Tor Browser", group = "launcher"}),
|
||||||
awful.key({modkey}, "t", spawner"thunderbird",
|
awful.key({modkey}, "t", spawner"thunderbird",
|
||||||
{description = "open Thunderbird", group = "launcher"}),
|
{description = "open Thunderbird", group = "launcher"}),
|
||||||
|
awful.key({modkey, "Shift"}, "t", spawner"transmission-gtk",
|
||||||
|
{description = "open Transmission", group = "launcher"}),
|
||||||
awful.key({modkey}, "m", spawner"nheko",
|
awful.key({modkey}, "m", spawner"nheko",
|
||||||
{description = "open nheko", group = "launcher"}),
|
{description = "open nheko", group = "launcher"}),
|
||||||
awful.key({modkey, "Shift"}, "g", spawner"gimp",
|
awful.key({modkey, "Shift"}, "g", spawner"gimp",
|
||||||
|
|
|
@ -48,6 +48,22 @@
|
||||||
# Note: When using rifle in ranger, there is an additional flag "c" for
|
# Note: When using rifle in ranger, there is an additional flag "c" for
|
||||||
# only running the current file even if you have marked multiple files.
|
# only running the current file even if you have marked multiple files.
|
||||||
|
|
||||||
|
#-------------------------------------------
|
||||||
|
# Misc
|
||||||
|
#-------------------------------------------
|
||||||
|
# Define the "editor" for text files as first action
|
||||||
|
mime ^text, label editor = $EDITOR -- "$@"
|
||||||
|
mime ^text, label pager = "$PAGER" -- "$@"
|
||||||
|
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@"
|
||||||
|
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
|
||||||
|
|
||||||
|
ext 1 = man "$1"
|
||||||
|
ext s[wmf]c, has zsnes, X = zsnes "$1"
|
||||||
|
ext s[wmf]c, has snes9x-gtk,X = snes9x-gtk "$1"
|
||||||
|
ext nes, has fceux, X = fceux "$1"
|
||||||
|
ext exe = wine "$1"
|
||||||
|
name ^[mM]akefile$ = make
|
||||||
|
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
# Websites
|
# Websites
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
|
@ -79,22 +95,6 @@ ext x?html?, has links, terminal = links "$@"
|
||||||
ext x?html?, has lynx, terminal = lynx -- "$@"
|
ext x?html?, has lynx, terminal = lynx -- "$@"
|
||||||
ext x?html?, has w3m, terminal = w3m "$@"
|
ext x?html?, has w3m, terminal = w3m "$@"
|
||||||
|
|
||||||
#-------------------------------------------
|
|
||||||
# Misc
|
|
||||||
#-------------------------------------------
|
|
||||||
# Define the "editor" for text files as first action
|
|
||||||
mime ^text, label editor = $EDITOR -- "$@"
|
|
||||||
mime ^text, label pager = "$PAGER" -- "$@"
|
|
||||||
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@"
|
|
||||||
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
|
|
||||||
|
|
||||||
ext 1 = man "$1"
|
|
||||||
ext s[wmf]c, has zsnes, X = zsnes "$1"
|
|
||||||
ext s[wmf]c, has snes9x-gtk,X = snes9x-gtk "$1"
|
|
||||||
ext nes, has fceux, X = fceux "$1"
|
|
||||||
ext exe = wine "$1"
|
|
||||||
name ^[mM]akefile$ = make
|
|
||||||
|
|
||||||
#--------------------------------------------
|
#--------------------------------------------
|
||||||
# Code
|
# Code
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
|
|
|
@ -22,7 +22,7 @@ augroup vimrc
|
||||||
autocmd BufNewFile,BufRead *.m setlocal filetype=octave
|
autocmd BufNewFile,BufRead *.m setlocal filetype=octave
|
||||||
autocmd FileType asm,c,h,go,glsl
|
autocmd FileType asm,c,h,go,glsl
|
||||||
\ setlocal cindent cinoptions=(0 noexpandtab shiftwidth=8
|
\ setlocal cindent cinoptions=(0 noexpandtab shiftwidth=8
|
||||||
autocmd FileType vim,sh,lua,tex,cmake,cpp,mysql,html,octave,pascal
|
autocmd FileType vim,sh,lua,tex,cmake,cpp,plantuml,mysql,html,octave,pascal
|
||||||
\ setlocal shiftwidth=2
|
\ setlocal shiftwidth=2
|
||||||
autocmd FileType rst setlocal shiftwidth=3
|
autocmd FileType rst setlocal shiftwidth=3
|
||||||
autocmd FileType java setlocal omnifunc=javacomplete#Complete
|
autocmd FileType java setlocal omnifunc=javacomplete#Complete
|
||||||
|
|
Loading…
Reference in New Issue